diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-11-06 11:05:14 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-11-06 11:05:14 +0000 |
commit | 26dbf8bdcbc6ef342e84728f113b063c604a4893 (patch) | |
tree | 61a304d815275eb3c8733455d111b1c981f89202 /main/fakeroot/busybox-getopt.patch | |
parent | 1c2725684d584bd52eb45dd66421b1a339cfeb3a (diff) | |
download | aports-26dbf8bdcbc6ef342e84728f113b063c604a4893.tar.bz2 aports-26dbf8bdcbc6ef342e84728f113b063c604a4893.tar.xz |
main/fakeroot: fix getopt to handle args with spaces
ref #3500
Diffstat (limited to 'main/fakeroot/busybox-getopt.patch')
-rw-r--r-- | main/fakeroot/busybox-getopt.patch | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/main/fakeroot/busybox-getopt.patch b/main/fakeroot/busybox-getopt.patch index 94029bf248..e8172e8f10 100644 --- a/main/fakeroot/busybox-getopt.patch +++ b/main/fakeroot/busybox-getopt.patch @@ -1,13 +1,14 @@ -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 +--- ./scripts/fakeroot.in.orig ++++ ./scripts/fakeroot.in +@@ -43,9 +43,9 @@ libfound=no -GETOPTEST=`getopt --version` -+GETOPTEST=`getopt --version 2>/dev/null` ++GETOPTEST=`getopt --version 2>&1 | head -n2` case $GETOPTEST in - getopt*) # GNU getopt +-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 ? |