summaryrefslogtreecommitdiffstats
path: root/polkit
diff options
context:
space:
mode:
authorFrancesc Pinyol Margalef <francesc.pinyol.m@gmail.com>2013-12-21 14:34:43 +0100
committerFrancesc Pinyol Margalef <francesc.pinyol.m@gmail.com>2013-12-21 14:34:43 +0100
commitcb726fb709b77c4285153a1394798f9394eb3327 (patch)
tree16e6b233bdeda5aeaf540622e29de4c09ca576c2 /polkit
parentb316624bcffca8aa7da3811c5f2ab015f58cd369 (diff)
parentbb3d7a0b3f5843a5f3d9455858f2e96975ca95f3 (diff)
downloadmgaonline-cb726fb709b77c4285153a1394798f9394eb3327.tar
mgaonline-cb726fb709b77c4285153a1394798f9394eb3327.tar.gz
mgaonline-cb726fb709b77c4285153a1394798f9394eb3327.tar.bz2
mgaonline-cb726fb709b77c4285153a1394798f9394eb3327.tar.xz
mgaonline-cb726fb709b77c4285153a1394798f9394eb3327.zip
Merge branch 'master' of git://git.mageia.org/software/mgaonline
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 a8b5a51d..070f4211 100644
--- a/polkit/Makefile
+++ b/polkit/Makefile
@@ -13,7 +13,7 @@ clean:
rm -f $(WRAPPERS) $(POLICY)
%: org.mageia.%.policy.in
- @echo -e "#!/bin/sh\nexec $(BINDIR)/pkexec $(LIBEXECDIR)/$@ $$""*" > $@
+ @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