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
This commit is contained in:
Tony Finch 2002-09-03 19:37:23 +00:00
parent 1519d15caa
commit 23a4f59e03
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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 ,