svn commit: r420702 - branches/2016Q3/x11-wm/xfce4-session/files
Olivier Duchateau
olivierd at FreeBSD.org
Tue Aug 23 15:36:59 UTC 2016
Author: olivierd
Date: Tue Aug 23 15:36:58 2016
New Revision: 420702
URL: https://svnweb.freebsd.org/changeset/ports/420702
Log:
MFH: r420679
Add missing braces in polkit example rules.
PR: 212061
Submitted by: <yuri at rawbw.com>
Approved by: portmgr (feld@)
Modified:
branches/2016Q3/x11-wm/xfce4-session/files/pkg-message.in
Directory Properties:
branches/2016Q3/ (props changed)
Modified: branches/2016Q3/x11-wm/xfce4-session/files/pkg-message.in
==============================================================================
--- branches/2016Q3/x11-wm/xfce4-session/files/pkg-message.in Tue Aug 23 15:29:09 2016 (r420701)
+++ branches/2016Q3/x11-wm/xfce4-session/files/pkg-message.in Tue Aug 23 15:36:58 2016 (r420702)
@@ -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-all
mailing list