[lightdm/f16] comply with guidelines concerning user and group handling

brummbq brummbq at fedoraproject.org
Sun Jul 15 18:10:09 UTC 2012


commit b6c7ed2ba5238ef09ea96d5c3305ce88a9109441
Author: Gregor Tätzner <gregor at freenet.de>
Date:   Sun Jul 15 18:21:40 2012 +0200

    comply with guidelines concerning user and group handling

 lightdm.spec |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/lightdm.spec b/lightdm.spec
index 4f8131d..600c818 100644
--- a/lightdm.spec
+++ b/lightdm.spec
@@ -1,7 +1,7 @@
 Name:    lightdm
 Summary: Lightweight Display Manager
 Version: 1.2.2
-Release: 15%{?dist}
+Release: 16%{?dist}
 
 # library/bindings are LGPLv3, the rest GPLv3+
 License: LGPLv3+ and GPLv3+
@@ -152,8 +152,9 @@ mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}
 
 
 %pre
+getent group lightdm >/dev/null || groupadd -r lightdm
 getent passwd lightdm >/dev/null || \
-  /usr/sbin/useradd -M -u 43 -d /var/log/lightdm -s /sbin/nologin -r lightdm > /dev/null 2>&1
+  /usr/sbin/useradd -g lightdm -M -d /var/log/lightdm -s /sbin/nologin -r lightdm > /dev/null 2>&1
 ## ignore errors, as we can't disambiguate between lightdm already existed
 ## and couldn't create account with the current adduser.
 exit 0
@@ -211,6 +212,9 @@ exit 0
 
 
 %changelog
+* Sun Jul 15 2012 Gregor Tätzner <brummbq at fedoraproject.org> - 1.2.2-16
+- comply with guidelines concerning user and group handling
+
 * Fri Jun 15 2012 Rex Dieter <rdieter at fedoraproject.org> 1.2.2-15
 - default to alternatives-provided greeter
 


More information about the scm-commits mailing list