chiark / gitweb /
libudev: allow to store negative values in the udev database
[elogind.git] / extras / fstab_import / fstab_import.c
index 98ee75f..c66bffb 100644 (file)
@@ -152,7 +152,7 @@ int main(int argc, char *argv[])
                                pos[0] = '\0';
                                label = str;
                        }
                                pos[0] = '\0';
                                label = str;
                        }
-                       if (matches_device_list(udev, devices, str)) {
+                       if (matches_device_list(udev, devices, label)) {
                                print_fstab_entry(udev, mnt);
                                rc = 0;
                                break;
                                print_fstab_entry(udev, mnt);
                                rc = 0;
                                break;
@@ -176,7 +176,7 @@ int main(int argc, char *argv[])
                                pos[0] = '\0';
                                uuid = str;
                        }
                                pos[0] = '\0';
                                uuid = str;
                        }
-                       if (matches_device_list(udev, devices, str)) {
+                       if (matches_device_list(udev, devices, uuid)) {
                                print_fstab_entry(udev, mnt);
                                rc = 0;
                                break;
                                print_fstab_entry(udev, mnt);
                                rc = 0;
                                break;