From 63e8a3d992325a1c500d73dadc2f270d04c4af78 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Mon, 10 Aug 2009 10:28:49 -0700 Subject: Fixed some paths in contrib/check_perms_grsecurity.py. Bug #411192. --- contrib/check_perms_grsecurity.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'contrib') 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) -- cgit v1.2.3