[PATCH] Fix install-exec-hook to check whether wall and write were built

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Kirill Elagin <kirelagin@xxxxxxxxx>
---
 term-utils/Makefile.am |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/term-utils/Makefile.am b/term-utils/Makefile.am
index 5e03560..8ab9d0b 100644
--- a/term-utils/Makefile.am
+++ b/term-utils/Makefile.am
@@ -66,9 +66,15 @@ endif

 if USE_TTY_GROUP
 if MAKEINSTALL_DO_CHOWN
+if BUILD_WALL
 install-exec-hook::
-   chgrp tty $(DESTDIR)$(usrbin_execdir)/wall $(DESTDIR)$(usrbin_execdir)/write
-   chmod g+s $(DESTDIR)$(usrbin_execdir)/wall $(DESTDIR)$(usrbin_execdir)/write
-
+   chgrp tty $(DESTDIR)$(usrbin_execdir)/wall
+   chmod g+s $(DESTDIR)$(usrbin_execdir)/wall
+endif
+if BUILD_WRITE
+install-exec-hook::
+   chgrp tty $(DESTDIR)$(usrbin_execdir)/write
+   chmod g+s $(DESTDIR)$(usrbin_execdir)/write
+endif
 endif
 endif
--
1.7.3.4
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux