https://bugzilla.redhat.com/show_bug.cgi?id=491744
install-data-local:
-$(mkdir_p) $(DESTDIR)$(localstatedir)/lib/DeviceKit-disks
-chmod 0700 $(DESTDIR)$(localstatedir)/lib/DeviceKit-disks
+ -$(mkdir_p) $(DESTDIR)$(localstatedir)/run/DeviceKit-disks
+ -chmod 0700 $(DESTDIR)$(localstatedir)/run/DeviceKit-disks
/* take ownership of the device if requested */
if (take_ownership_uid != 0 || take_ownership_gid != 0) {
- char dir[256] = "/tmp/devkit-disks-mkfs-XXXXXX";
+ char dir[256] = PACKAGE_LOCALSTATE_DIR "/run/DeviceKit-disks/job-mkfs-XXXXXX";
if (mkdtemp (dir) == NULL) {
g_printerr ("cannot create directory %s: %m\n", dir);