Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 34345 Details for
Bug 53533
Mailman check_perm fails because of .keep file
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to 'check_perm' script to make it ignore '.keep' files
mailman-2.1.5-gentoo-check_perm.patch (text/plain), 1.76 KB, created by
Jim Ramsay (lack) (RETIRED)
on 2004-06-28 12:00:24 UTC
(
hide
)
Description:
Patch to 'check_perm' script to make it ignore '.keep' files
Filename:
MIME Type:
Creator:
Jim Ramsay (lack) (RETIRED)
Created:
2004-06-28 12:00:24 UTC
Size:
1.76 KB
patch
obsolete
>--- check_perms.orig 2004-06-10 09:26:22.717024396 -0600 >+++ check_perms 2004-06-09 16:27:49.000000000 -0600 >@@ -313,23 +313,24 @@ > print _('checking permissions on list data') > # BAW: This needs to be converted to the Site module abstraction > for dir in os.listdir(mm_cfg.LIST_DATA_DIR): >- for file in checkfiles: >- path = os.path.join(mm_cfg.LIST_DATA_DIR, dir, file) >- if STATE.VERBOSE: >- print _(' checking permissions on: %(path)s') >- try: >- mode = statmode(path) >- except OSError, e: >- if e.errno <> errno.ENOENT: raise >- continue >- if (mode & targetmode) <> targetmode: >- STATE.ERRORS += 1 >- print _('file permissions must be at least 660: %(path)s'), >- if STATE.FIX: >- print _('(fixing)') >- os.chmod(path, mode | targetmode) >- else: >- print >+ if dir != '.keep': >+ for file in checkfiles: >+ path = os.path.join(mm_cfg.LIST_DATA_DIR, dir, file) >+ if STATE.VERBOSE: >+ print _(' checking permissions on: %(path)s') >+ try: >+ mode = statmode(path) >+ except OSError, e: >+ if e.errno <> errno.ENOENT: raise >+ continue >+ if (mode & targetmode) <> targetmode: >+ STATE.ERRORS += 1 >+ print _('file permissions must be at least 660: %(path)s'), >+ if STATE.FIX: >+ print _('(fixing)') >+ os.chmod(path, mode | targetmode) >+ else: >+ print
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 53533
: 34345 |
35893
|
35923