aports/main/fakeroot/busybox-getopt.patch
2011-10-28 09:09:37 +00:00

14 lines
420 B
Diff

diff --git a/scripts/fakeroot.in b/scripts/fakeroot.in
index 324a9dc..8d4235d 100755
--- a/scripts/fakeroot.in
+++ b/scripts/fakeroot.in
@@ -43,7 +43,7 @@ export FAKED_MODE
libfound=no
-GETOPTEST=`getopt --version`
+GETOPTEST=`getopt --version 2>/dev/null`
case $GETOPTEST in
getopt*) # 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 "$@"`