From: Glenn L McGrath Date: Sun, 29 Jul 2001 06:04:26 +0000 (-0000) Subject: Fix permisions when reading from stdin X-Git-Tag: 0_60_0~34 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b6071b6341f200ef1aed4e3e827f3c300b27ebf5;p=oweals%2Fbusybox.git Fix permisions when reading from stdin --- 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(); diff --git a/uuencode.c b/uuencode.c index 1789aefbb..fc037403a 100644 --- a/uuencode.c +++ b/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();