Comment 0 for bug 266387

Revision history for this message
Chris-ress (chris-ress) wrote :

bin/CheckFixUid.py is created by bin/check_perms_grsecurity.py. It has a
syntax error that keeps mailman from starting up.

Reproducable: always

Steps to reproduce:
1. run bin/check_perms_grsecurity.py -f
2. run bin/mailmanctl start

The error:
NameError: name 'uid' is not defined
Traceback (most recent call last):
  File "/usr/local/mailman/bin/qrunner", line 80, in ?
    import CheckFixUid
  File "/usr/local/mailman/bin/CheckFixUid.py", line 6, in ?
    class CheckFixUid:
  File "/usr/local/mailman/bin/CheckFixUid.py", line 12, in CheckFixUid
    if os.geteuid() != uid:

A proposed fix is attached.

[http://sourceforge.net/tracker/index.php?func=detail&aid=1660666&group_id=103&atid=100103]