aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-01-13 21:30:39 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-01-13 21:30:39 +0000
commita009986d58b4c7c25aa416fdb8076b85b82cc29f (patch)
tree50cfc13969d382f11d8e02bb90aa5ddc80e1915a
parentc8d5c2ae81c190e91ce65f2b8af91d7f8080400e (diff)
downloadmsec-a009986d58b4c7c25aa416fdb8076b85b82cc29f.tar
msec-a009986d58b4c7c25aa416fdb8076b85b82cc29f.tar.gz
msec-a009986d58b4c7c25aa416fdb8076b85b82cc29f.tar.bz2
msec-a009986d58b4c7c25aa416fdb8076b85b82cc29f.tar.xz
msec-a009986d58b4c7c25aa416fdb8076b85b82cc29f.zip
More informative wrong permission message.
-rwxr-xr-xsrc/msec/libmsec.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/msec/libmsec.py b/src/msec/libmsec.py
index 118e17a..69c8aa3 100755
--- a/src/msec/libmsec.py
+++ b/src/msec/libmsec.py
@@ -1661,7 +1661,7 @@ class PERMS:
except:
self.log.error(_("Error changing user on %s: %s") % (file, sys.exc_value))
else:
- self.log.warn(_("Bad owner of %s: should be %s") % (file, self.get_user_name(newuser)))
+ self.log.warn(_("Wrong owner of %s: should be %s") % (file, self.get_user_name(newuser)))
if newgroup != None:
if force and really_commit:
self.log.warn(_("Enforcing group on %s to %s") % (file, self.get_group_name(newgroup)))
@@ -1670,7 +1670,7 @@ class PERMS:
except:
self.log.error(_("Error changing group on %s: %s") % (file, sys.exc_value))
else:
- self.log.warn(_("Bad group of %s: should be %s") % (file, self.get_group_name(newgroup)))
+ self.log.warn(_("Wrong group of %s: should be %s") % (file, self.get_group_name(newgroup)))
# permissions should be last, as chown resets them
# on suid files
if newperm != None:
@@ -1681,7 +1681,7 @@ class PERMS:
except:
self.log.error(_("Error changing permissions on %s: %s") % (file, sys.exc_value))
else:
- self.log.warn(_("Bad permissions of %s: should be %o") % (file, newperm))
+ self.log.warn(_("Wrong permissions of %s: should be %o") % (file, newperm))
def check_perms(self, perms):