Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Aug 2016 15:36:58 +0000 (UTC)
From:      Olivier Duchateau <olivierd@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r420702 - branches/2016Q3/x11-wm/xfce4-session/files
Message-ID:  <201608231536.u7NFawkF037262@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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;
   }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608231536.u7NFawkF037262>