Mageia Bugzilla – Attachment 4498 Details for
Bug 11319
Updates are not installed, at end of installation, using classical installers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Patch to skip using pkexec if already root.
Makefile.patch (text/plain), 543 bytes, created by
Dave Hodgins
on 2013-11-08 23:09:16 CET
(
hide
)
Description:
Patch to skip using pkexec if already root.
Filename:
MIME Type:
Creator:
Dave Hodgins
Created:
2013-11-08 23:09:16 CET
Size:
543 bytes
patch
obsolete
>--- root/polkit/Makefile.original 2013-11-08 16:56:21.239739357 -0500 >+++ root/polkit/Makefile 2013-11-08 17:04:53.224488141 -0500 >@@ -13,7 +13,7 @@ > rm -f $(WRAPPERS) $(POLICY) > > %: org.mageia.%.policy.in >- @echo -e "#!/bin/sh\nexec $(BINDIR)/pkexec $(LIBEXECDIR)/$@ $$""*" > $@ >+ @echo -e '#!/bin/sh\nif [[ "$(id -u)" != "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
--- root/polkit/Makefile.original 2013-11-08 16:56:21.239739357 -0500 +++ root/polkit/Makefile 2013-11-08 17:04:53.224488141 -0500 @@ -13,7 +13,7 @@ rm -f $(WRAPPERS) $(POLICY) %: org.mageia.%.policy.in - @echo -e "#!/bin/sh\nexec $(BINDIR)/pkexec $(LIBEXECDIR)/$@ $$""*" > $@ + @echo -e '#!/bin/sh\nif [[ "$(id -u)" != "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
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 11319
:
4385
|
4428
| 4498