summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Politz <politza@hochschule-trier.de>2017-09-10 22:33:08 +0200
committerAndreas Politz <politza@hochschule-trier.de>2017-09-10 22:51:05 +0200
commite29d7d8dd40bc9ea7927251c53d5a89342669e12 (patch)
tree6437afed8bae1b58ef696f5d395e1105ae633205
parent3daf752a8718d4d439971e60ebee461c20b6931b (diff)
Fix incorrect use of variable expansion
su -c requires exactly one argument, while $@ expands into a list of them.
-rwxr-xr-xserver/autobuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/autobuild b/server/autobuild
index e371608..2f862d5 100755
--- a/server/autobuild
+++ b/server/autobuild
@@ -60,7 +60,7 @@ exec_privileged() {
elif which sudo >/dev/null 2>&1; then
sudo "$@"
elif which su >/dev/null 2>&1; then
- su -c "$@"
+ su -c "$*"
else
echo "No such program: sudo or su" >&2
exit 1