2011-01-10 13:34:31 -05:00
|
|
|
$OpenBSD: patch-spectrumctl_spectrum_env_py,v 1.2 2011/01/10 18:34:31 sebastia Exp $
|
2010-09-13 12:41:16 -04:00
|
|
|
|
|
|
|
Use the default OpenBSD _spectrum user
|
|
|
|
|
2011-01-10 13:34:31 -05:00
|
|
|
--- spectrumctl/spectrum/env.py.orig Fri Oct 8 09:15:22 2010
|
|
|
|
+++ spectrumctl/spectrum/env.py Thu Jan 6 17:12:20 2011
|
|
|
|
@@ -39,7 +39,7 @@ def get_uid():
|
2010-09-13 12:41:16 -04:00
|
|
|
username = os.environ['SPECTRUM_USER']
|
|
|
|
except KeyError:
|
|
|
|
# otherwise we default to spectrum:
|
|
|
|
- username = 'spectrum'
|
|
|
|
+ username = '_spectrum'
|
|
|
|
try:
|
|
|
|
return pwd.getpwnam( username ).pw_uid
|
|
|
|
except KeyError:
|