Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2:Ports
ConsoleKit
move-pid-and-database-to-run-directory.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File move-pid-and-database-to-run-directory.patch of Package ConsoleKit
diff -Ppru ConsoleKit-0.4.6.orig/src/ck-manager.c ConsoleKit-0.4.6/src/ck-manager.c --- ConsoleKit-0.4.6.orig/src/ck-manager.c 2013-07-19 06:15:28.000000000 +0200 +++ ConsoleKit-0.4.6/src/ck-manager.c 2014-01-16 20:58:18.156796473 +0100 @@ -181,8 +181,8 @@ ck_manager_dump (CkManager *manager) { int fd; int res; - const char *filename = LOCALSTATEDIR "/run/ConsoleKit/database"; - const char *filename_tmp = LOCALSTATEDIR "/run/ConsoleKit/database~"; + const char *filename = "/run/ConsoleKit/database"; + const char *filename_tmp = "/run/ConsoleKit/database~"; if (manager == NULL) { return; @@ -190,11 +190,11 @@ ck_manager_dump (CkManager *manager) /* always make sure we have a directory */ errno = 0; - res = g_mkdir_with_parents (LOCALSTATEDIR "/run/ConsoleKit", + res = g_mkdir_with_parents ("/run/ConsoleKit", S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); if (res < 0) { g_warning ("Unable to create directory %s (%s)", - LOCALSTATEDIR "/run/ConsoleKit", + "/run/ConsoleKit", g_strerror (errno)); return; } diff -Ppru ConsoleKit-0.4.6.orig/tools/70-udev-acl.rules ConsoleKit-0.4.6/tools/70-udev-acl.rules --- ConsoleKit-0.4.6.orig/tools/70-udev-acl.rules 2013-07-19 17:36:25.000000000 +0200 +++ ConsoleKit-0.4.6/tools/70-udev-acl.rules 2014-01-16 20:53:40.960500112 +0100 @@ -70,7 +70,7 @@ ENV{DDC_DEVICE}=="*?", TAG+="udev-acl" SUBSYSTEM=="usb", ENV{ID_MEDIA_PLAYER}=="?*", TAG+="udev-acl" # apply ACL for all locally logged in users -LABEL="acl_apply", TAG=="udev-acl", TEST=="/var/run/ConsoleKit/database", \ +LABEL="acl_apply", TAG=="udev-acl", TEST=="/run/ConsoleKit/database", \ RUN+="udev-acl --action=$env{ACTION} --device=$env{DEVNAME}" LABEL="acl_end" diff -Ppru ConsoleKit-0.4.6.orig/tools/udev-acl.c ConsoleKit-0.4.6/tools/udev-acl.c --- ConsoleKit-0.4.6.orig/tools/udev-acl.c 2013-07-19 06:15:28.000000000 +0200 +++ ConsoleKit-0.4.6/tools/udev-acl.c 2014-01-16 20:55:00.517425945 +0100 @@ -130,7 +130,7 @@ static GSList *uids_with_local_active_se GKeyFile *keyfile; keyfile = g_key_file_new(); - if (g_key_file_load_from_file(keyfile, "/var/run/ConsoleKit/database", 0, NULL)) { + if (g_key_file_load_from_file(keyfile, "/run/ConsoleKit/database", 0, NULL)) { gchar **groups; groups = g_key_file_get_groups(keyfile, NULL);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor