[Pkg-shadow-devel] [PATCH] Do not call chmod on non-existant files

Alexander Stein alexander.stein at systec-electronic.com
Tue Aug 11 08:16:15 UTC 2015


From: Denis Marc Windisch <denismarc.windisch at sca-solutions.com>

newuidmap newgidmap are only created if ENABLE_SUBIDS is set.

Signed-off-by: Denis Marc Windisch <denismarc.windisch at sca-solutions.com>
Signed-off-by: Alexander Stein <alexander.stein at systec-electronic.com>
---
 src/Makefile.am | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 25e288d3f00c..606ae9a7cc66 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -52,7 +52,10 @@ usbin_PROGRAMS = \
 noinst_PROGRAMS = id sulogin
 
 suidbins       = su
-suidubins      = chage chfn chsh expiry gpasswd newgrp passwd newuidmap newgidmap
+suidubins      = chage chfn chsh expiry gpasswd newgrp passwd
+if ENABLE_SUBIDS
+	suidubins += newuidmap newgidmap
+endif
 if ACCT_TOOLS_SETUID
 	suidubins += chage chgpasswd chpasswd groupadd groupdel groupmod newusers useradd userdel usermod
 endif



More information about the Pkg-shadow-devel mailing list