summaryrefslogtreecommitdiff
path: root/src/chroot-tools/libremakepkg
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-05-07 10:53:52 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-05-07 10:53:52 -0400
commitb1a47e5ca3587b40b1e417cc568475e09aa3bbc1 (patch)
tree6f731306faecd0f3eb0975b09bda543d69b3a6f8 /src/chroot-tools/libremakepkg
parent5ddbb379d1909903ef471aefb95cb106466f049d (diff)
libremakepkg: fix possible sudo option parsing bug
Diffstat (limited to 'src/chroot-tools/libremakepkg')
-rwxr-xr-xsrc/chroot-tools/libremakepkg4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chroot-tools/libremakepkg b/src/chroot-tools/libremakepkg
index b8cdca1..9267496 100755
--- a/src/chroot-tools/libremakepkg
+++ b/src/chroot-tools/libremakepkg
@@ -161,7 +161,7 @@ extract() {
clean=/clean
fi
- run "$copydir" "${clean} && sudo -u ${user} makepkg ${makepkg_args} -o"
+ run "$copydir" "${clean} && sudo -u ${user} -- makepkg ${makepkg_args} -o"
rm -f "$copydir"/clean
}
@@ -175,7 +175,7 @@ build() {
local user=$LIBREUSER
$INCHROOT || user=nobody
- run -N "$copydir" "sudo -u ${user} makepkg ${makepkg_args} -e"
+ run -N "$copydir" "sudo -u ${user} -- makepkg ${makepkg_args} -e"
}
# Functions that check for issues with the build ###############################