From 3c5ec869befbb44ce34005002f359ff98e51b125 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Tue, 12 Nov 2013 09:03:55 +0100 Subject: 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) --- polkit/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'polkit') 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 -- cgit v1.2.1