svn commit: r420679 - head/x11-wm/xfce4-session/files
Olivier Duchateau
olivierd at FreeBSD.org
Tue Aug 23 14:13:01 UTC 2016
Author: olivierd
Date: Tue Aug 23 14:12:59 2016
New Revision: 420679
URL: https://svnweb.freebsd.org/changeset/ports/420679
Log:
Add missing braces in polkit example rules.
PR: 212061
Submitted by: <yuri at rawbw.com>
MFH: 2016Q3
Modified:
head/x11-wm/xfce4-session/files/pkg-message.in
Modified: head/x11-wm/xfce4-session/files/pkg-message.in
==============================================================================
--- head/x11-wm/xfce4-session/files/pkg-message.in Tue Aug 23 14:04:01 2016 (r420678)
+++ head/x11-wm/xfce4-session/files/pkg-message.in Tue Aug 23 14:12:59 2016 (r420679)
@@ -3,8 +3,8 @@ files in %%LOCALBASE%%/etc/polkit-1/rule
like this (replace PUTYOURGROUPHERE by your group):
polkit.addRule(function (action, subject) {
- if (action.id == "org.freedesktop.consolekit.system.restart" ||
- action.id == "org.freedesktop.consolekit.system.stop"
+ if ((action.id == "org.freedesktop.consolekit.system.restart" ||
+ action.id == "org.freedesktop.consolekit.system.stop")
&& subject.isInGroup("PUTYOURGROUPHERE")) {
return polkit.Result.YES;
}
More information about the svn-ports-head
mailing list