This commit is contained in:
Patrick Schleizer 2019-12-21 07:42:25 -05:00
parent 9050058bc2
commit 7c3da38bd5
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -34,6 +34,7 @@ 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 "$mode" "$file_name" || exit_code=203
stat -c "%n %a %U %G" "$file_name" || true