summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Mikle <ondrej.mikle@gmail.com>2012-06-16 22:41:59 +0200
committerNick Mathewson <nickm@torproject.org>2012-07-31 11:41:40 -0400
commita7fc797edffc3ae6c2813ae354be35a1cd3c175e (patch)
treef352ba2d101c60324031a6beb71dfbe11efbe2c8
parent0e778ac6044f991bdd144a36258df341aa969554 (diff)
downloadtor-a7fc797edffc3ae6c2813ae354be35a1cd3c175e.tar.gz
tor-a7fc797edffc3ae6c2813ae354be35a1cd3c175e.zip
Fixed creating _tor user in RPM-based installs.
-rw-r--r--tor.spec.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/tor.spec.in b/tor.spec.in
index 127bf361d7..5605586323 100644
--- a/tor.spec.in
+++ b/tor.spec.in
@@ -213,7 +213,7 @@ if [ ! -n "`/usr/bin/id -u %{toruser} 2>/dev/null`" ]; then
# One would also like to default the UID, but doing that properly would
# also require thought.
if [ -x %{_sbindir}/nologin ]; then
- %{_sbindir}/useradd -r -g %{torgroup} -d% {_localstatedir}/lib/%{name} -s %{_sbindir}/nologin %{toruser} 2> /dev/null
+ %{_sbindir}/useradd -r -g %{torgroup} -d %{_localstatedir}/lib/%{name} -s %{_sbindir}/nologin %{toruser} 2> /dev/null
else
%{_sbindir}/useradd -r -g %{torgroup} -d %{_localstatedir}/lib/%{name} -s /bin/false %{toruser} 2> /dev/null
fi