summaryrefslogtreecommitdiffstats
path: root/patches
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-06-03 20:38:06 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-06-03 20:38:06 (EDT)
commit1cd11ec65e91eb33a3756dbd9618438b4a85810b (patch)
tree7132169f6616e7f1b15a8e18b29d75d63ea6c559 /patches
parentb84218d4bb0c53fb4e45dfb2c73899ccb5ef51c1 (diff)
Fix a reversed patch.
Diffstat (limited to 'patches')
-rw-r--r--patches/01_hardcode-shell-and-hide-getopt-error.patch14
1 files changed, 7 insertions, 7 deletions
diff --git a/patches/01_hardcode-shell-and-hide-getopt-error.patch b/patches/01_hardcode-shell-and-hide-getopt-error.patch
index a91f2ef..51f9380 100644
--- a/patches/01_hardcode-shell-and-hide-getopt-error.patch
+++ b/patches/01_hardcode-shell-and-hide-getopt-error.patch
@@ -7,12 +7,12 @@ Description: Hardcode shell interpreter and hide BusyBox getopt error
BusyBox's getopt applet doesn't recognize the "--version" option, so fakeroot
ends up printing BusyBox's long error message.
-diff -Naur src/scripts/fakeroot.in src.orig/scripts/fakeroot.in
---- src/scripts/fakeroot.in 2013-06-03 18:25:46.040882928 -0400
-+++ src.orig/scripts/fakeroot.in 2011-11-30 23:00:36.000000000 -0500
+diff -Naur src.orig/scripts/fakeroot.in src/scripts/fakeroot.in
+--- src.orig/scripts/fakeroot.in 2011-11-30 23:00:36.000000000 -0500
++++ src/scripts/fakeroot.in 2013-06-03 18:25:46.040882928 -0400
@@ -1,4 +1,4 @@
--#!/bin/sh
-+#!@SHELL@
+-#!@SHELL@
++#!/bin/sh
# This script first starts faked (the daemon), and then it will run
# the requested program with fake root privileges.
@@ -20,8 +20,8 @@ diff -Naur src/scripts/fakeroot.in src.orig/scripts/fakeroot.in
libfound=no
--GETOPTEST=`getopt --version 2>/dev/null`
-+GETOPTEST=`getopt --version`
+-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 "$@"`