hush: fix umask: umask(022) was setting umask(755)
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 7 Oct 2015 14:56:20 +0000 (16:56 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 7 Oct 2015 14:56:20 +0000 (16:56 +0200)
commit6283f9828320ef5e0be0b060b7f26522b529ed42
tree9b11416a3cdd3655f2854debe868e4c19d232a88
parent9c5410023a9d1920c336ed4d9ceaad586ce43328
hush: fix umask: umask(022) was setting umask(755)

Based on the patch by Rich Felker <dalias@libc.org>

function                                             old     new   delta
builtin_umask                                        121     161     +40
umaskcmd                                             318     279     -39

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c
shell/hush.c