diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2010-04-27 13:16:54 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2010-04-27 13:16:54 +0000 |
commit | fecf21145fba5edc5ef437f77934476315e1e698 (patch) | |
tree | 704dd48dc247e668ab45961b8cb0302cf178e5f0 | |
parent | ea5fd666da77a077c59e86f3dfbbe5cc44b0d806 (diff) | |
download | msec-fecf21145fba5edc5ef437f77934476315e1e698.tar msec-fecf21145fba5edc5ef437f77934476315e1e698.tar.gz msec-fecf21145fba5edc5ef437f77934476315e1e698.tar.bz2 msec-fecf21145fba5edc5ef437f77934476315e1e698.tar.xz msec-fecf21145fba5edc5ef437f77934476315e1e698.zip |
Do not abord on empty user/group names.
-rwxr-xr-x | src/msec/libmsec.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/msec/libmsec.py b/src/msec/libmsec.py index f43ee4c..a70893c 100755 --- a/src/msec/libmsec.py +++ b/src/msec/libmsec.py @@ -937,13 +937,13 @@ class PERMS: continue # user - if user_s == 'current': + if user_s == 'current' or not user_s: user = -1 else: user = self.get_user_id(user_s) # group - if group_s == 'current': + if group_s == 'current' or not group_s: group = -1 else: group = self.get_group_id(group_s) |