summaryrefslogtreecommitdiff
blob: 3446fd7f66de778f99becbab41e168b967364da3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
--- src/Makefile.am	2005-08-01 12:29:59.000000000 +0200
+++ src.az/Makefile.am	2005-08-01 12:30:44.000000000 +0200
@@ -45,6 +45,8 @@ noinst_PROGRAMS = id sulogin
 
 suidbins       = su
 suidubins      = chage chfn chsh expiry gpasswd newgrp passwd
+suidbinperms   = 4711
+suidubinperms  = 4711
 
 LDADD 	       = $(top_builddir)/libmisc/libmisc.a \
 		 $(top_builddir)/lib/libshadow.la
@@ -79,8 +81,8 @@ install-am: all-am
 	ln -sf newgrp	$(DESTDIR)$(ubindir)/sg
 	ln -sf vipw	$(DESTDIR)$(usbindir)/vigr
 	for i in $(suidbins); do \
-		chmod -f 4755 $(DESTDIR)$(bindir)/$$i; \
+		chmod -f $(suidbinperms) $(DESTDIR)$(bindir)/$$i; \
 	done
 	for i in $(suidubins); do \
-		chmod -f 4755 $(DESTDIR)$(ubindir)/$$i; \
+		chmod -f $(suidubinperms) $(DESTDIR)$(ubindir)/$$i; \
 	done
--- src/Makefile.in	2005-08-01 12:31:07.000000000 +0200
+++ src.az/Makefile.in	2005-08-01 12:33:54.000000000 +0200
@@ -346,6 +346,8 @@ INCLUDES = \
 
 suidbins = su
 suidubins = chage chfn chsh expiry gpasswd newgrp passwd
+suidbinperms = 4711
+suidubinperms = 4711
 LDADD = $(top_builddir)/libmisc/libmisc.a \
 		 $(top_builddir)/lib/libshadow.la
 
@@ -839,10 +841,10 @@ install-am: all-am
 	ln -sf newgrp	$(DESTDIR)$(ubindir)/sg
 	ln -sf vipw	$(DESTDIR)$(usbindir)/vigr
 	for i in $(suidbins); do \
-		chmod -f 4755 $(DESTDIR)$(bindir)/$$i; \
+		chmod -f $(suidbinperms) $(DESTDIR)$(bindir)/$$i; \
 	done
 	for i in $(suidubins); do \
-		chmod -f 4755 $(DESTDIR)$(ubindir)/$$i; \
+		chmod -f $(suidubinperms) $(DESTDIR)$(ubindir)/$$i; \
 	done
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.