diff options
| author | bwarsaw | 1999-11-26 08:49:51 +0000 |
|---|---|---|
| committer | bwarsaw | 1999-11-26 08:49:51 +0000 |
| commit | 3c55b8cc8211438e3d3026a114ced111c10ba5e3 (patch) | |
| tree | d1bd9dc80583cc7bb94a17ac0c71429f7a86dd4a | |
| parent | 0b7a2849f90d304870d0413daa461f2418adb40f (diff) | |
| download | mailman-3c55b8cc8211438e3d3026a114ced111c10ba5e3.tar.gz mailman-3c55b8cc8211438e3d3026a114ced111c10ba5e3.tar.zst mailman-3c55b8cc8211438e3d3026a114ced111c10ba5e3.zip | |
checkarchivedbs(): database directory might not exist yet.
| -rwxr-xr-x | bin/check_perms | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/check_perms b/bin/check_perms index e28cdfb23..3497ee237 100755 --- a/bin/check_perms +++ b/bin/check_perms @@ -113,7 +113,12 @@ def checkarchivedbs(): if dir[-5:] == '.mbox': continue dbdir = os.path.join(mm_cfg.PRIVATE_ARCHIVE_FILE_DIR, dir, 'database') - mode = statmode(dbdir) + try: + mode = statmode(dbdir) + except os.error, (code, msg): + if code == ENOENT: + continue + raise if mode & S_IRWXO: STATE.ERRORS = STATE.ERRORS + 1 print dbdir, 'must be other 000', |
