The hush umask command is backwards; umask 022 sets the umask to 0755.
Attached patch should fix it.

Rich
diff --git a/shell/hush.c b/shell/hush.c
index 96c739f..58c8dab 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -8956,9 +8956,7 @@ static int FAST_FUNC builtin_umask(char **argv)
        if (argv[0]) {
                mode_t old_mask = mask;
 
-               mask ^= 0777;
                rc = bb_parse_mode(argv[0], &mask);
-               mask ^= 0777;
                if (rc == 0) {
                        mask = old_mask;
                        /* bash messages:
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to