Skip to content

Commit 56fa8fb

Browse files
author
Alexander Smishlajev
committed
fix: setuid called when run by non-root
1 parent 79971ad commit 56fa8fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

roundup/scripts/roundup_server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
"""Command-line script that runs a server over roundup.cgi.client.
1919
20-
$Id: roundup_server.py,v 1.83 2006-04-27 04:59:37 richard Exp $
20+
$Id: roundup_server.py,v 1.84 2006-10-29 05:01:15 a1s Exp $
2121
"""
2222
__docformat__ = 'restructuredtext'
2323

@@ -324,6 +324,7 @@ def setuid(user):
324324

325325
if os.getuid():
326326
print _('WARNING: ignoring "-u" argument, not root')
327+
return
327328

328329
try:
329330
import pwd

0 commit comments

Comments
 (0)