summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--patches/03_separate-opt_uid0_cmd-non-option-args.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/patches/03_separate-opt_uid0_cmd-non-option-args.patch b/patches/03_separate-opt_uid0_cmd-non-option-args.patch
new file mode 100644
index 0000000..f491acb
--- /dev/null
+++ b/patches/03_separate-opt_uid0_cmd-non-option-args.patch
@@ -0,0 +1,16 @@
+From: "P. J. McDermott" <pjm@nac.net>
+Description: Separate opt_uid0_cmd non-option arguments
+ Otherwise, the -u option might be collected by the opt_uid0_cmd.
+
+diff -Naur src.orig/src/opkbuild.sh src/src/opkbuild.sh
+--- src.orig/src/opkbuild.sh 2012-11-15 14:55:57.000000000 -0500
++++ src/src/opkbuild.sh 2013-06-03 20:46:14.235239682 -0400
+@@ -193,7 +193,7 @@
+ test_uid0_cmd()
+ {
+ # Verify that the UID 0 command works.
+- test_uid=$("${opt_uid0_cmd}" id -u)
++ test_uid=$("${opt_uid0_cmd}" -- id -u)
+
+ if [ ${?} -ne 0 ]; then
+ ob_error "$(ob_get_msg 'uid0_cmd_not_found')" "${opt_uid0_cmd}"