[hackers] [surf] Fixing the paxctl check. || Christoph Lohmann

From: <git_AT_suckless.org>
Date: Wed, 19 Aug 2015 06:29:08 +0200 (CEST)

X-DEBUG-UPD: 8e88984a40c495982f1f336a12ab972d40642061
commit 8e88984a40c495982f1f336a12ab972d40642061
Author: Christoph Lohmann <20h_AT_r-36.net>
AuthorDate: Wed Aug 19 06:28:31 2015 +0200
Commit: Christoph Lohmann <20h_AT_r-36.net>
CommitDate: Wed Aug 19 06:28:31 2015 +0200

    Fixing the paxctl check.
    
    Thanks quinq for the tip.

diff --git a/Makefile b/Makefile
index 3b7c757..539609c 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -47,7 +47,7 @@ install: all
         _AT_mkdir -p ${DESTDIR}${PREFIX}/bin
         _AT_cp -f surf ${DESTDIR}${PREFIX}/bin
         _AT_chmod 755 ${DESTDIR}${PREFIX}/bin/surf
- _AT_[ -e /sbin/paxctl ] && /sbin/paxctl -m ${DESTDIR}${PREFIX}/bin/surf
+ _AT_if [ -x /sbin/paxctl ]; then /sbin/paxctl -m ${DESTDIR}${PREFIX}/bin/surf; fi
         _AT_echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
         _AT_mkdir -p ${DESTDIR}${MANPREFIX}/man1
         _AT_sed "s/VERSION/${VERSION}/g" < surf.1 > ${DESTDIR}${MANPREFIX}/man1/surf.1
Received on Wed Aug 19 2015 - 06:29:08 CEST

This archive was generated by hypermail 2.3.0 : Wed Aug 19 2015 - 06:36:40 CEST