mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-10-01 08:25:45 -04:00
code simplification
This commit is contained in:
parent
01dd567f8b
commit
706dba104d
@ -97,7 +97,11 @@ set_file_perms() {
|
||||
continue
|
||||
fi
|
||||
|
||||
if [ ! "$mode_from_config" = "nosuid" ]; then
|
||||
if [ "$mode_from_config" = "nosuid" ]; then
|
||||
## If mode_from_config is "nosuid" the config does not set owner and
|
||||
## group. Therefore do not enforce owner/group check.
|
||||
true OK
|
||||
else
|
||||
if ! getent passwd | grep -q "^${owner}:"; then
|
||||
echo "ERROR: User '$owner' does not exist!" >&2
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user