diff options
author | Salikh Zakirov <Salikh.Zakirov@Intel.com> | 2006-05-27 21:57:29 +0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-30 21:46:03 -0700 |
commit | 347f1d2608471cbc64f1cf25943f8d6f89256d2c (patch) | |
tree | 1f6080362de4943beaa8e1c460f4edcf1c4640f1 | |
parent | 481176f752f204316ec570c8ab3fdf0c297b3259 (diff) | |
download | git-347f1d2608471cbc64f1cf25943f8d6f89256d2c.tar.gz git-347f1d2608471cbc64f1cf25943f8d6f89256d2c.tar.xz |
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>
-rw-r--r-- | mailsplit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mailsplit.c b/mailsplit.c index c529e2d06..70a569c12 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 ) |