summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 481176f)
raw | patch | inline | side by side (parent: 481176f)
author | Salikh Zakirov <Salikh.Zakirov@Intel.com> | |
Sat, 27 May 2006 17:57:29 +0000 (21:57 +0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 31 May 2006 04:46:03 +0000 (21:46 -0700) |
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>
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>
mailsplit.c | patch | blob | history |
diff --git a/mailsplit.c b/mailsplit.c
index c529e2d060b610d8f0dd80464634a954c4d058e8..70a569c12a9435627e5b61e887ea4f8d3ccfe7dd 100644 (file)
--- a/mailsplit.c
+++ b/mailsplit.c
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 )