diff options
author | ache <ache@FreeBSD.org> | 1996-04-25 14:49:40 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1996-04-25 14:49:40 +0000 |
commit | 46774261d1898c39c2883cb9d872302cbeb265b3 (patch) | |
tree | f8ec0ef7dc02eade09fd82e2f6e51fad4c69f1e6 /usr.bin/uudecode | |
parent | 826192f359864f220bbbd7f0ccee114a0d867b8b (diff) | |
download | FreeBSD-src-46774261d1898c39c2883cb9d872302cbeb265b3.zip FreeBSD-src-46774261d1898c39c2883cb9d872302cbeb265b3.tar.gz |
Treat ^end<EOF> as valid terminator (like ^end\n), some encoders (f.e. Eudora)
produce such things.
Diffstat (limited to 'usr.bin/uudecode')
-rw-r--r-- | usr.bin/uudecode/uudecode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/uudecode/uudecode.c b/usr.bin/uudecode/uudecode.c index af87847..17de537 100644 --- a/usr.bin/uudecode/uudecode.c +++ b/usr.bin/uudecode/uudecode.c @@ -172,7 +172,7 @@ decode() } } } - if (!fgets(buf, sizeof(buf), stdin) || strcmp(buf, "end\n")) { + if (!fgets(buf, sizeof(buf), stdin) || strcmp(buf, "end") || (buf[3] && buf[3] != '\n')) { (void)fprintf(stderr, "uudecode: %s: no \"end\" line.\n", filename); return(1); |