aboutsummaryrefslogtreecommitdiffstats
path: root/polkit
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2013-11-12 09:03:55 +0100
committerColin Guthrie <colin@mageia.org>2013-11-12 09:05:35 +0100
commit3c5ec869befbb44ce34005002f359ff98e51b125 (patch)
tree435c89bd7a14d24f190dced5bde0bde07db9c082 /polkit
parent3316df6b51511095ee2e9c8acb09ae5990eedacc (diff)
downloadrpmdrake-3c5ec869befbb44ce34005002f359ff98e51b125.tar
rpmdrake-3c5ec869befbb44ce34005002f359ff98e51b125.tar.gz
rpmdrake-3c5ec869befbb44ce34005002f359ff98e51b125.tar.bz2
rpmdrake-3c5ec869befbb44ce34005002f359ff98e51b125.tar.xz
rpmdrake-3c5ec869befbb44ce34005002f359ff98e51b125.zip
polkit: Ensure wrapper uses "$@" for argument passthrough.
This ensures that arguments containing spaces etc are properly quoted Thanks to Dave Hodgins for pointing out out (twice - I forgot the first time)
Diffstat (limited to 'polkit')
-rw-r--r--polkit/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/polkit/Makefile b/polkit/Makefile
index 8ca18093..dc7c4ba4 100644
--- a/polkit/Makefile
+++ b/polkit/Makefile
@@ -13,7 +13,7 @@ clean:
rm -f $(WRAPPERS) $(POLICY)
%: org.mageia.%.policy.in
- @echo -e '#!/bin/sh\nif [[ "$$UID" != "0" ]] ; then\n exec $(BINDIR)/pkexec $(LIBEXECDIR)/$@ $$''*\nelse\n exec $(LIBEXECDIR)/$@ $$''*\nfi\n' > $@
+ @echo -e '#!/bin/sh\nif [[ "$$UID" != "0" ]] ; then\n exec $(BINDIR)/pkexec $(LIBEXECDIR)/$@ "$$''@"\nelse\n exec $(LIBEXECDIR)/$@ "$$''@"\nfi\n' > $@
%.policy: %.policy.in
intltool-merge --utf8 ../po $< $@ -x -u -c ../po/.intltool-merge-cache