mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-10-01 08:25:45 -04:00
comment
This commit is contained in:
parent
7c3da38bd5
commit
1fe83d683f
@ -34,7 +34,8 @@ undo_all() {
|
||||
stat -c "%n %a %U %G" "$file_name" || true
|
||||
|
||||
chown "${owner}:${group}" "$file_name" || exit_code=202
|
||||
## chmod need to be run after chown since chown would remove suid.
|
||||
## chmod need to be run after chown since chown removes suid.
|
||||
## https://unix.stackexchange.com/questions/53665/chown-removes-setuid-bit-bug-or-feature
|
||||
chmod "$mode" "$file_name" || exit_code=203
|
||||
|
||||
stat -c "%n %a %U %G" "$file_name" || true
|
||||
|
Loading…
Reference in New Issue
Block a user