diff options
author | Tony Finch <fanf@FreeBSD.org> | 2002-09-03 19:37:23 +0000 |
---|---|---|
committer | Tony Finch <fanf@FreeBSD.org> | 2002-09-03 19:37:23 +0000 |
commit | 23a4f59e03f11ab7184b8f8fde251b7718112f3d (patch) | |
tree | 1f99df9d048417a266a35e4b03c234792df809a5 /usr.bin/uudecode | |
parent | 1519d15caacf1706864d33f2f81c063611d65b23 (diff) | |
download | src-23a4f59e03f11ab7184b8f8fde251b7718112f3d.tar.gz src-23a4f59e03f11ab7184b8f8fde251b7718112f3d.zip |
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
Notes
Notes:
svn path=/head/; revision=102910
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 e4290b825900..270d0557f17e 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) |