diff options
author | fanf <fanf@FreeBSD.org> | 2002-09-03 19:37:23 +0000 |
---|---|---|
committer | fanf <fanf@FreeBSD.org> | 2002-09-03 19:37:23 +0000 |
commit | e442c885fb4bdbcf04a0b73dfb0e3cb0257ead2b (patch) | |
tree | 1f99df9d048417a266a35e4b03c234792df809a5 /usr.bin/uudecode | |
parent | be9bc90646cb7fad588b79ce606f1a1df806ed10 (diff) | |
download | FreeBSD-src-e442c885fb4bdbcf04a0b73dfb0e3cb0257ead2b.zip FreeBSD-src-e442c885fb4bdbcf04a0b73dfb0e3cb0257ead2b.tar.gz |
Don't try (and fail) to fchmod /dev/stdout. Revert the manual page
to suggest the portable alternative to -p.
PR: 42356
Submitted by: Kimura Fuyuki <fuyuki@hadaly.org>
MFC after: 1 week
Diffstat (limited to 'usr.bin/uudecode')
-rw-r--r-- | usr.bin/uudecode/uudecode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/uudecode/uudecode.c b/usr.bin/uudecode/uudecode.c index e4290b8..270d055 100644 --- a/usr.bin/uudecode/uudecode.c +++ b/usr.bin/uudecode/uudecode.c @@ -96,6 +96,8 @@ main(int argc, char *argv[]) oflag = 1; /* output to the specified file */ sflag = 1; /* do not strip pathnames for output */ outfile = optarg; /* set the output filename */ + if (strcmp(outfile, "/dev/stdout") == 0) + pflag = 1; break; case 'p': if (oflag) |