summaryrefslogtreecommitdiff
path: root/chat/spectrum/patches/patch-spectrumctl_spectrum_env.py
blob: e40021f2e32b6571de12d4a877aa37cfa344096a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-spectrumctl_spectrum_env.py,v 1.1.1.1 2011/02/07 06:31:22 schnoebe Exp $

#
# allow the spectrum user to be substituted in.
#

--- spectrumctl/spectrum/env.py.orig	2010-07-13 17:38:39.000000000 +0000
+++ spectrumctl/spectrum/env.py
@@ -18,7 +18,7 @@ def get_uid():
 		username = os.environ['SPECTRUM_USER']
 	except KeyError:
 		# otherwise we default to spectrum:
-		username = 'spectrum'
+		username = '@SPECTRUM_USER@'
 	try:
 		return pwd.getpwnam( username ).pw_uid
 	except KeyError: