summaryrefslogtreecommitdiffstats
path: root/patches/02_specifically-check-for-getopt-long-options.patch
blob: bd3130d085d0cdd448b66f62e314e14171c8c546 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Author: Patrick McDermott <patrick.mcdermott@libiquity.com>
Subject: Specifically check for getopt long options

diff -Naurp src.orig/scripts/fakeroot.in src/scripts/fakeroot.in
--- src.orig/scripts/fakeroot.in	2018-07-01 15:01:34.000000000 -0400
+++ src/scripts/fakeroot.in	2019-06-18 20:43:28.874732245 -0400
@@ -43,7 +43,7 @@ export FAKED_MODE
 
 libfound=no
 
-GETOPTTEST=`getopt -T`
+GETOPTTEST=`getopt -l test -T >/dev/null 2>&1`
 if test "$?" -eq 4; then # GNU getopt
     FAKE_TEMP=`getopt -l lib: -l faked: -l unknown-is-real -l fd-base: -l version -l help -- +l:f:i:s:ub:vh "$@"`
 else