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 | |
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
-rw-r--r-- | usr.bin/uudecode/uudecode.c | 2 | ||||
-rw-r--r-- | usr.bin/uuencode/uuencode.1 | 2 |
2 files changed, 3 insertions, 1 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) diff --git a/usr.bin/uuencode/uuencode.1 b/usr.bin/uuencode/uuencode.1 index 4ffd48ce9985..0fe44cdd0a57 100644 --- a/usr.bin/uuencode/uuencode.1 +++ b/usr.bin/uuencode/uuencode.1 @@ -179,7 +179,7 @@ The following example extract a compress'ed tar archive from your mailbox .Pp .Bd -literal -offset indent -compact -uudecode -p < $MAIL | zcat | tar xfv - +uudecode -o /dev/stdout < $MAIL | zcat | tar xfv - .Ed .Sh SEE ALSO .Xr basename 1 , |