[hackers] [utmp] Setting the setgid bit at the right moment. Thanks Stephen Paul Weber for || Christoph Lohmann

From: <hg_AT_suckless.org>
Date: Wed, 31 Oct 2012 21:34:06 +0100 (CET)

changeset: 2:37c578c08d67
tag: tip
user: Christoph Lohmann <20h_AT_r-36.net>
date: Wed Oct 31 21:32:10 2012 +0100
files: Makefile
description:
Setting the setgid bit at the right moment. Thanks Stephen Paul Weber for
reporting this!


diff -r a67d3a9e104b -r 37c578c08d67 Makefile
--- a/Makefile Wed Oct 31 20:21:39 2012 +0100
+++ b/Makefile Wed Oct 31 21:32:10 2012 +0100
_AT_@ -41,8 +41,8 @@
         _AT_mkdir -p ${DESTDIR}${PREFIX}/bin
         _AT_cp -f utmp ${DESTDIR}${PREFIX}/bin
         _AT_chmod 755 ${DESTDIR}${PREFIX}/bin/utmp
+ _AT_chgrp ${GROUP} ${DESTDIR}${PREFIX}/bin/utmp
         _AT_chmod g+s ${DESTDIR}${PREFIX}/bin/utmp
- _AT_chgrp ${GROUP} ${DESTDIR}${PREFIX}/bin/utmp
         _AT_echo installing manual page to ${DESTDIR}${PREFIX}/man1
         _AT_mkdir -p ${DESTDIR}${MANPREFIX}/man1
         _AT_sed "s/VERSION/${VERSION}/g" < utmp.1 > ${DESTDIR}${MANPREFIX}/man1/utmp.1
Received on Wed Oct 31 2012 - 21:34:06 CET

This archive was generated by hypermail 2.3.0 : Wed Oct 31 2012 - 21:36:09 CET