blob: f491acbe198916f1c812fa6018d20e1fa72ca83b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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}"
|