diff options
author | Ron Yorston <rmy@pobox.com> | 2022-04-19 14:34:18 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2022-04-19 15:31:29 +0100 |
commit | 3cbe64df41eb408740a59145c6318b71f47c4f6d (patch) | |
tree | f931319c8c8f706c2222875284acfb588ccc806a /arch | |
parent | 8bf13fbd83137c34fd3da0f8d9b47b19dc1899ac (diff) | |
download | busybox-w32-3cbe64df41eb408740a59145c6318b71f47c4f6d.tar.gz busybox-w32-3cbe64df41eb408740a59145c6318b71f47c4f6d.tar.bz2 busybox-w32-3cbe64df41eb408740a59145c6318b71f47c4f6d.zip |
win32: minor adjustments to file permissions
Mask the file permission bits in mingw_umask(), not when it's
called from run_applet_no_and_exit().
Rather than hardcode write permissions for group and other in
file_attr_to_st_mode() and mingw_fstat() make them respect the
current umask setting.
In mingw_fstat() there's no need to check the mode using S_ISDIR():
the hardcoded mode doesn't set S_IFDIR. The compiler had already
figured this out so there's no reduction in bloat.
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions