Blame SOURCES/0090-BUILD-Make-chown-of-files-to-sssd-user-non-fatal.patch

905b4d
From f716f3b0876edfd94be6f46f6390d7286fcf8443 Mon Sep 17 00:00:00 2001
905b4d
From: Jakub Hrozek <jhrozek@redhat.com>
905b4d
Date: Tue, 11 Nov 2014 15:39:57 +0100
905b4d
Subject: [PATCH 90/92] BUILD: Make chown of files to sssd user non-fatal
905b4d
MIME-Version: 1.0
905b4d
Content-Type: text/plain; charset=UTF-8
905b4d
Content-Transfer-Encoding: 8bit
905b4d
905b4d
In build environments, we can't assume the sssd user will be created
905b4d
prior to installing the package, so we can't chown the files.
905b4d
905b4d
RPM will own the files instead in this case.
905b4d
905b4d
Related:
905b4d
https://fedorahosted.org/sssd/ticket/2370
905b4d
905b4d
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
905b4d
---
905b4d
 Makefile.am | 6 +++---
905b4d
 1 file changed, 3 insertions(+), 3 deletions(-)
905b4d
905b4d
diff --git a/Makefile.am b/Makefile.am
905b4d
index 6ce3a42f3833fc9041efd908c2e3de4a85193d42..d58fcb9501c44ccf0d5814e1f2070cd82fa8be61 100644
905b4d
--- a/Makefile.am
905b4d
+++ b/Makefile.am
905b4d
@@ -2884,12 +2884,12 @@ else
905b4d
 endif
905b4d
 
905b4d
 if SSSD_USER
905b4d
-	chgrp $(SSSD_USER) $(sssdlibexecdir)/ldap_child
905b4d
+	-chgrp $(SSSD_USER) $(sssdlibexecdir)/ldap_child
905b4d
 	chmod 4750 $(sssdlibexecdir)/ldap_child
905b4d
-	chgrp $(SSSD_USER) $(sssdlibexecdir)/krb5_child
905b4d
+	-chgrp $(SSSD_USER) $(sssdlibexecdir)/krb5_child
905b4d
 	chmod 4750 $(sssdlibexecdir)/krb5_child
905b4d
 if BUILD_SEMANAGE
905b4d
-	chgrp $(SSSD_USER) $(sssdlibexecdir)/selinux_child
905b4d
+	-chgrp $(SSSD_USER) $(sssdlibexecdir)/selinux_child
905b4d
 	chmod 4750 $(sssdlibexecdir)/selinux_child
905b4d
 endif
905b4d
 endif
905b4d
-- 
905b4d
1.9.3
905b4d