diff options
author | Mark Sapiro <mark@msapiro.net> | 2009-08-10 10:28:49 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2009-08-10 10:28:49 -0700 |
commit | 63e8a3d992325a1c500d73dadc2f270d04c4af78 (patch) | |
tree | 9287479b14e22f8e3761862b7d818db8d52bb6b6 /contrib | |
parent | 53c029cab91af334c58ac725ea0445d392e7aa4d (diff) | |
download | mailman2-63e8a3d992325a1c500d73dadc2f270d04c4af78.tar.gz mailman2-63e8a3d992325a1c500d73dadc2f270d04c4af78.tar.xz mailman2-63e8a3d992325a1c500d73dadc2f270d04c4af78.zip |
Fixed some paths in contrib/check_perms_grsecurity.py. Bug #411192.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/check_perms_grsecurity.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/check_perms_grsecurity.py b/contrib/check_perms_grsecurity.py index 3d0b66e1..0a4ece1e 100644 --- a/contrib/check_perms_grsecurity.py +++ b/contrib/check_perms_grsecurity.py @@ -1,6 +1,6 @@ #! @PYTHON@ # -# Copyright (C) 1998-2007 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2009 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -87,7 +87,7 @@ def main(argv): print - file = paths.prefix + '/data/last_mailman_version' + file = mm_cfg.VAR_PREFIX + '/data/last_mailman_version' print "Making" + file + "owned by mailman (not root)" uid = pwd.getpwnam(MAILMAN_USER)[2] gid = grp.getgrnam(MAILMAN_GROUP)[2] @@ -133,8 +133,8 @@ class CheckFixUid: print file print "\nEnsuring that all config.db/pck files are owned by Mailman" - cdbs = glob.glob(paths.prefix + '/lists/*/config.db*') - cpcks = glob.glob(paths.prefix + '/lists/*/config.pck*') + cdbs = glob.glob(mm_cfg.VAR_PREFIX + '/lists/*/config.db*') + cpcks = glob.glob(mm_cfg.VAR_PREFIX + '/lists/*/config.pck*') for file in cdbs + cpcks: stat = os.stat(file) |