aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2013-11-10 18:59:00 +0159
committerThomas Backlund <tmb@mageia.org>2013-11-10 18:59:00 +0159
commit1bbda63a9cc00daa2aee22a67e5754ad2f2c8dda (patch)
tree513e7d694d449ce3fef5d85a10ee7f569911b08b
parentf2366f534d43d12a6c69b525dd9dc3b3ecdbe3da (diff)
downloadrpmdrake-1bbda63a9cc00daa2aee22a67e5754ad2f2c8dda.tar
rpmdrake-1bbda63a9cc00daa2aee22a67e5754ad2f2c8dda.tar.gz
rpmdrake-1bbda63a9cc00daa2aee22a67e5754ad2f2c8dda.tar.bz2
rpmdrake-1bbda63a9cc00daa2aee22a67e5754ad2f2c8dda.tar.xz
rpmdrake-1bbda63a9cc00daa2aee22a67e5754ad2f2c8dda.zip
use 500 instead of 500
-rw-r--r--NEWS2
-rw-r--r--polkit/Makefile2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 16f9e926..67cde10e 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- use $UID instead of $(id -u)
+
Version 5.52.1 - 9 November 2013, Thomas Backlund
- fix typo in last polkit Makefile change
diff --git a/polkit/Makefile b/polkit/Makefile
index 2984e433..706cbd0d 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 [[ "$(id -u)" != "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