Check that we're not root before running. Not for security issues, but just because it causes so many problems with user databases and whatnot.

This commit is contained in:
Jeremy Fincher 2004-02-22 09:09:40 +00:00
parent af442c8313
commit a8554a0ea3

View File

@ -1,12 +1,17 @@
#!/usr/bin/env python
import os
import sys
if os.name == 'posix':
if os.getuid() == 0 or os.geteuid() == 0:
sys.stderr.write('Please, don\'t run this as root.\n')
import supybot
import fix
import os
import re
import sys
import sets
import pydoc
import pprint