dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone
Blob Blame History Raw
From f716f3b0876edfd94be6f46f6390d7286fcf8443 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek@redhat.com>
Date: Tue, 11 Nov 2014 15:39:57 +0100
Subject: [PATCH 90/92] BUILD: Make chown of files to sssd user non-fatal
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

In build environments, we can't assume the sssd user will be created
prior to installing the package, so we can't chown the files.

RPM will own the files instead in this case.

Related:
https://fedorahosted.org/sssd/ticket/2370

Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
---
 Makefile.am | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 6ce3a42f3833fc9041efd908c2e3de4a85193d42..d58fcb9501c44ccf0d5814e1f2070cd82fa8be61 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2884,12 +2884,12 @@ else
 endif
 
 if SSSD_USER
-	chgrp $(SSSD_USER) $(sssdlibexecdir)/ldap_child
+	-chgrp $(SSSD_USER) $(sssdlibexecdir)/ldap_child
 	chmod 4750 $(sssdlibexecdir)/ldap_child
-	chgrp $(SSSD_USER) $(sssdlibexecdir)/krb5_child
+	-chgrp $(SSSD_USER) $(sssdlibexecdir)/krb5_child
 	chmod 4750 $(sssdlibexecdir)/krb5_child
 if BUILD_SEMANAGE
-	chgrp $(SSSD_USER) $(sssdlibexecdir)/selinux_child
+	-chgrp $(SSSD_USER) $(sssdlibexecdir)/selinux_child
 	chmod 4750 $(sssdlibexecdir)/selinux_child
 endif
 endif
-- 
1.9.3