Signed-off-by: Karel Zak <kzak@redhat.com>
if HAVE_SELINUX
vipw_LDADD += -lselinux
endif
-install-exec-hook::
- cd $(DESTDIR)$(usrsbin_execdir) && ln -sf vipw vigr
endif # BUILD_VIPW
test_logindefs_SOURCES = logindefs.c logindefs.h
test_logindefs_CPPFLAGS = -DTEST_PROGRAM $(AM_CPPFLAGS)
+
+
+install-exec-hook:
+if BUILD_SU
+if MAKEINSTALL_DO_SETUID
+ chmod 4755 $(DESTDIR)$(bindir)/su
+endif
+endif
+if BUILD_VIPW
+ cd $(DESTDIR)$(usrsbin_execdir) && ln -sf vipw vigr
+endif