summaryrefslogblamecommitdiff
path: root/system/fakeroot/busybox-getopt.patch
blob: e8172e8f10815bf44e743d27dc1482f8f98eb757 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                                                                  
--- ./scripts/fakeroot.in.orig
+++ ./scripts/fakeroot.in
@@ -43,9 +43,9 @@
 
 libfound=no
 
-GETOPTEST=`getopt --version`
+GETOPTEST=`getopt --version 2>&1 | head -n2`
 case $GETOPTEST in
-getopt*) # GNU getopt
+getopt*|*BusyBox*) # 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 "$@"`
     ;;
 *) # POSIX getopt ?