chiark / gitweb /
don't create $tempnode for devices without major
[elogind.git] / udevtrigger.c
index 2bdd0c8d07a0b561bb63e6866f1f2ba0894115e5..7577c5f15ffd4232bbc6fdc92ecf3405ff064019 100644 (file)
@@ -412,8 +412,7 @@ static void scan_failed(void)
                        if (dent->d_name[0] == '.')
                                continue;
 
-                       strlcpy(device, sysfs_path, sizeof(device));
-                       start = strlcat(device, "/", sizeof(device));
+                       start = strlcpy(device, sysfs_path, sizeof(device));
                        strlcat(device, dent->d_name, sizeof(device));
                        path_decode(&device[start]);
                        device_list_insert(device);