Mercurial > p > roundup > code
comparison roundup/scripts/roundup_server.py @ 3283:4fe232899be8 maint-0.8
merge from HEAD
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 13 Apr 2005 06:19:54 +0000 |
| parents | ca122bc16277 |
| children |
comparison
equal
deleted
inserted
replaced
| 3278:ca122bc16277 | 3283:4fe232899be8 |
|---|---|
| 15 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 15 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 16 # | 16 # |
| 17 | 17 |
| 18 """Command-line script that runs a server over roundup.cgi.client. | 18 """Command-line script that runs a server over roundup.cgi.client. |
| 19 | 19 |
| 20 $Id: roundup_server.py,v 1.74.2.4 2005-04-13 06:11:15 richard Exp $ | 20 $Id: roundup_server.py,v 1.74.2.5 2005-04-13 06:12:02 richard Exp $ |
| 21 """ | 21 """ |
| 22 __docformat__ = 'restructuredtext' | 22 __docformat__ = 'restructuredtext' |
| 23 | 23 |
| 24 import errno, cgi, getopt, os, socket, sys, traceback, urllib, time | 24 import errno, cgi, getopt, os, socket, sys, traceback, urllib, time |
| 25 import ConfigParser, BaseHTTPServer, SocketServer, StringIO | 25 import ConfigParser, BaseHTTPServer, SocketServer, StringIO |
| 261 return | 261 return |
| 262 if not hasattr(os, 'setgid'): | 262 if not hasattr(os, 'setgid'): |
| 263 return | 263 return |
| 264 | 264 |
| 265 # if root, setgid to the running user | 265 # if root, setgid to the running user |
| 266 if not os.getuid(): | 266 if os.getuid(): |
| 267 print _('WARNING: ignoring "-g" argument, not root') | 267 print _('WARNING: ignoring "-g" argument, not root') |
| 268 return | 268 return |
| 269 | 269 |
| 270 try: | 270 try: |
| 271 import grp | 271 import grp |
