@matheusbsbs / matheus-bagliano / commits / 347f1d2608
Fork 0

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>

Salikh Zakirov committed May 27, 2006 at 21:57 UTC 347f1d2608471cbc64f1cf25943f8d6f89256d2c
1 file changed +1 -1
mailsplit.c
+1 -1
@@ -162,7 +162,7 @@ int main(int argc, const char **argv)
162
163 while (*argp) {
164 const char *file = *argp++;
165 - FILE *f = !strcmp(file, "-") ? stdin : fopen(file, "rt");
165 + FILE *f = !strcmp(file, "-") ? stdin : fopen(file, "r");
166 int file_done = 0;
167
168 if ( !f )