summaryrefslogtreecommitdiffhomepage
path: root/coreutils/uuencode.c
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2001-07-29 06:04:26 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2001-07-29 06:04:26 +0000
commitb6071b6341f200ef1aed4e3e827f3c300b27ebf5 (patch)
tree989c51f09d4d05fe102e5053051989e06406e661 /coreutils/uuencode.c
parenteba260587ad880535f8beee9402e05a11735c7a5 (diff)
Fix permisions when reading from stdin
Diffstat (limited to 'coreutils/uuencode.c')
-rw-r--r--coreutils/uuencode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/uuencode.c b/coreutils/uuencode.c
index 1789aefbb..fc037403a 100644
--- a/coreutils/uuencode.c
+++ b/coreutils/uuencode.c
@@ -117,7 +117,7 @@ int uuencode_main(int argc, char **argv)
}
break;
case 1:
- mode = umask(0666);
+ mode = 0666 & ~umask(0666);
break;
default:
show_usage();