[tor-commits] [tor/release-0.2.3] Fixed creating _tor user in RPM-based installs.

nickm at torproject.org nickm at torproject.org
Fri Aug 3 17:41:56 UTC 2012


commit a7fc797edffc3ae6c2813ae354be35a1cd3c175e
Author: Ondrej Mikle <ondrej.mikle at gmail.com>
Date:   Sat Jun 16 22:41:59 2012 +0200

    Fixed creating _tor user in RPM-based installs.
---
 tor.spec.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tor.spec.in b/tor.spec.in
index 127bf36..5605586 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





More information about the tor-commits mailing list