summaryrefslogtreecommitdiffstats
path: root/usr.bin/uudecode
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/uudecode')
-rw-r--r--usr.bin/uudecode/uudecode.c2
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)
OpenPOWER on IntegriCloud