summaryrefslogtreecommitdiffstats
path: root/usr.bin/uudecode
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1996-04-25 14:49:40 +0000
committerache <ache@FreeBSD.org>1996-04-25 14:49:40 +0000
commit46774261d1898c39c2883cb9d872302cbeb265b3 (patch)
treef8ec0ef7dc02eade09fd82e2f6e51fad4c69f1e6 /usr.bin/uudecode
parent826192f359864f220bbbd7f0ccee114a0d867b8b (diff)
downloadFreeBSD-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.c2
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);
OpenPOWER on IntegriCloud