Fix permisions when reading from stdin

This commit is contained in:
Glenn L McGrath 2001-07-29 06:04:26 +00:00
parent eba260587a
commit b6071b6341
2 changed files with 2 additions and 2 deletions

View File

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

View File

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