[uucp] fix the cut&paste issue in the uucp user creation (#980669), use soft static uid allocation

Ondrej Vasik ovasik at fedoraproject.org
Wed Jul 3 07:54:02 UTC 2013


commit dd0170999a093eb82ab3e68656d82fef95898cba
Author: Ondřej Vašík <ovasik at redhat.com>
Date:   Wed Jul 3 09:53:42 2013 +0200

    fix the cut&paste issue in the uucp user creation (#980669), use soft static uid allocation

 uucp.spec |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/uucp.spec b/uucp.spec
index db30f78..97106e1 100644
--- a/uucp.spec
+++ b/uucp.spec
@@ -20,7 +20,7 @@
 Summary: A set of utilities for operations between systems
 Name: uucp
 Version: 1.07
-Release: 37%{?dist}
+Release: 38%{?dist}
 License: GPLv2+
 Group: Applications/Communications
 Url: http://www.airs.com/ian/uucp.html
@@ -147,9 +147,13 @@ EOF
 
 %pre
 getent group uucp >/dev/null || groupadd -g 14 -r uucp
-getent passwd uucp >/dev/null || \
-useradd -r -u 10 -g uucp -d /var/spool/uucp  \
--c "Uucp user" news
+if ! getent passwd uucp >/dev/null ; then
+  if ! getent passwd 10 >/dev/null ; then
+     useradd -r -u 10 -g uucp -d /var/spool/uucp  -c "Uucp user" uucp
+  else
+     useradd -r -g uucp -d /var/spool/uucp  -c "Uucp user" uucp
+  fi
+fi
 exit 0
 
 
@@ -254,6 +258,10 @@ fi
 %attr(755,uucp,uucp) /var/spool/uucp
 
 %changelog
+* Wed Jul 03 2013 Ondrej Vasik <ovasik at redhat.com> - 1.07-38
+- fix the typo in the uucp user creation (#980669)
+- use soft static uid allocation
+
 * Tue May 21 2013 Nils Philippsen <nils at redhat.com> - 1.07-37
 - enable hardening because uucp contains setuid binaries (#965467)
 


More information about the scm-commits mailing list