Incorrectly checks gid against uid
Status: Abandoned
Brought to you by:
henning
In init.py, there is a check to make sure that the
files being written to match up to the gid and uid that
bobomail is running under, however, it is actually
comparing both the gid and uid against the uid. here's
the code snippet.
def checkfile(fn, perm):
global found_error
try: st = os.stat(fn)
except: return
mode = stat.S_IMODE(st[stat.ST_MODE])
owner = st[stat.ST_UID]
user = os.getuid()
group = os.getuid()
if mode != perm or owner != user:
The group = line should be changed to
group = os.getgid()
this is on line 25 in the init.py file.
bobomail kept giving me sporatic errors until I fixed
this, because I didn't use the same id number for my
group and user that apache runs under.