Modify ↓
Opened 18 years ago
Closed 18 years ago
#810 closed defect (fixed)
setgid() in run_email2trac doesn't work because it happens after setuid() call
Reported by: | anonymous | Owned by: | anonymous |
---|---|---|---|
Priority: | high | Component: | EmailtoTracScript |
Severity: | major | Keywords: | |
Cc: | Trac Release: | 0.9 |
Description
Switch the order of the two calls. Per the documentation (on freebsd at least) for setgid():
The setgid() function is permitted if the specified ID is equal to the real group ID or the effective group ID of the process, or if the effective user ID is that of the super user.
So if you call setgid() first, the uid of the proc is still root and it will work. I noticed this b/c I own my project dir, but have it group www-data writeable and that wasn't working.
Attachments (0)
Change History (2)
comment:1 Changed 18 years ago by
Owner: | changed from Bas van der Vlies to anonymous |
---|---|
Status: | new → assigned |
comment:2 Changed 18 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed in 0.8.2 version. Hope i can close it now ;-)
Note: See
TracTickets for help on using
tickets.
Thanks it is fixed in the trunk version