chiark / gitweb /
timedatectl: work with old timedated
[elogind.git] / src / login / logind-inhibit.c
index 35e1abd72918fcea2d8893829ecc57f17efc3d0f..ec6a722ce3e65ed7b1517c7d65098d249aaad7b6 100644 (file)
@@ -45,7 +45,7 @@ Inhibitor* inhibitor_new(Manager *m, const char* id) {
                 return NULL;
         }
 
-        i->id = path_get_file_name(i->state_file);
+        i->id = basename(i->state_file);
 
         if (hashmap_put(m->inhibitors, i->id, i) < 0) {
                 free(i->state_file);