summaryrefslogtreecommitdiff
path: root/mailsplit.c
diff options
context:
space:
mode:
authorSalikh Zakirov <Salikh.Zakirov@Intel.com>2006-05-27 17:57:29 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-05-31 04:46:03 (GMT)
commit347f1d2608471cbc64f1cf25943f8d6f89256d2c (patch)
tree1f6080362de4943beaa8e1c460f4edcf1c4640f1 /mailsplit.c
parent481176f752f204316ec570c8ab3fdf0c297b3259 (diff)
downloadgit-347f1d2608471cbc64f1cf25943f8d6f89256d2c.zip
git-347f1d2608471cbc64f1cf25943f8d6f89256d2c.tar.gz
git-347f1d2608471cbc64f1cf25943f8d6f89256d2c.tar.bz2
Fixed Cygwin CR-munging problem in mailsplit
Do not open mailbox file as fopen(..., "rt") as this strips CR characters from the diff, thus breaking the patch context for changes in CRLF files. Signed-off-by: Salikh Zakirov <Salikh.Zakirov@Intel.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'mailsplit.c')
-rw-r--r--mailsplit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mailsplit.c b/mailsplit.c
index c529e2d..70a569c 100644
--- a/mailsplit.c
+++ b/mailsplit.c
@@ -162,7 +162,7 @@ int main(int argc, const char **argv)
while (*argp) {
const char *file = *argp++;
- FILE *f = !strcmp(file, "-") ? stdin : fopen(file, "rt");
+ FILE *f = !strcmp(file, "-") ? stdin : fopen(file, "r");
int file_done = 0;
if ( !f )