pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/sysutils/consolekit/files



Module Name:    pkgsrc
Committed By:   youri
Date:           Fri Jun  1 21:51:56 UTC 2018

Modified Files:
        pkgsrc/sysutils/consolekit/files: 50-shutdown.rules

Log Message:
Fix boolean logic error, now non-operator users shouldn't be able to
shutdown or reboot.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/sysutils/consolekit/files/50-shutdown.rules

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/consolekit/files/50-shutdown.rules
diff -u pkgsrc/sysutils/consolekit/files/50-shutdown.rules:1.1 pkgsrc/sysutils/consolekit/files/50-shutdown.rules:1.2
--- pkgsrc/sysutils/consolekit/files/50-shutdown.rules:1.1      Sat Jun 18 10:23:16 2016
+++ pkgsrc/sysutils/consolekit/files/50-shutdown.rules  Fri Jun  1 21:51:56 2018
@@ -1,8 +1,8 @@
 polkit.addRule(function (action, subject) {
-       if (action.id == "org.freedesktop.consolekit.system.restart" ||
+       if ((action.id == "org.freedesktop.consolekit.system.restart" ||
        action.id == "org.freedesktop.consolekit.system.stop"  ||
        action.id == "org.freedesktop.consolekit.system.suspend" ||
-       action.id == "org.freedesktop.consolekit.system.hibernate"
+       action.id == "org.freedesktop.consolekit.system.hibernate")
        && subject.isInGroup("operator")) {
                return polkit.Result.YES;
        }



Home | Main Index | Thread Index | Old Index