diff options
| author | bwarsaw | 1999-07-07 21:55:51 +0000 |
|---|---|---|
| committer | bwarsaw | 1999-07-07 21:55:51 +0000 |
| commit | f83fae3c6ec3e0515f73c6e74b412d4985e291b5 (patch) | |
| tree | 28213bc087bc1bcc4191c7ffd3e52b038c6d72e0 | |
| parent | 4243d9d8178176021e7bdc96d5dbb4f1358b62bb (diff) | |
| download | mailman-f83fae3c6ec3e0515f73c6e74b412d4985e291b5.tar.gz mailman-f83fae3c6ec3e0515f73c6e74b412d4985e291b5.tar.zst mailman-f83fae3c6ec3e0515f73c6e74b412d4985e291b5.zip | |
Use stat's symbolic names for list indices.
| -rwxr-xr-x | bin/check_perms | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/check_perms b/bin/check_perms index 58b57305b..6918ab39c 100755 --- a/bin/check_perms +++ b/bin/check_perms @@ -25,6 +25,7 @@ PREFIX = Mailman.mm_cfg.PREFIX PROGRAM = sys.argv[0] + class State: FIX = 0 @@ -36,11 +37,11 @@ STATE = State() def statmode(path): - return os.stat(path)[0] + return os.stat(path)[ST_MODE] def statgidmode(path): stat = os.stat(path) - return stat[0], stat[5] + return stat[ST_MODE], stat[ST_GID] def checkwalk(arg, dirname, names): for name in names: |
