Whamcloud - gitweb
get_device_by_label.c (init_lvm): Fix bug which caused
authorTheodore Ts'o <tytso@mit.edu>
Sat, 21 Sep 2002 10:46:43 +0000 (06:46 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 21 Sep 2002 10:46:43 +0000 (06:46 -0400)
LABEL='xxx' to not work correctly when using LVM.
(Reversed sense of error check reported by ateeq@hotpop.com)

misc/ChangeLog
misc/get_device_by_label.c

index f176746..c467f37 100644 (file)
@@ -1,3 +1,9 @@
+2002-09-21  Theodore Ts'o  <tytso@mit.edu>
+
+       * get_device_by_label.c (init_lvm): Fix bug which caused
+               LABEL='xxx' to not work correctly when using LVM.
+               (Reversed sense of error check reported by ateeq@hotpop.com)
+
 2001-08-31  Theodore Tso  <tytso@thunk.org>
 
        * Release of E2fsprogs 1.28
index 8a80428..a267df2 100644 (file)
@@ -167,7 +167,7 @@ static void init_lvm(void)
 
                lv_list = opendir(vdirname);
                free(vdirname);
-               if (lv_list != NULL)
+               if (lv_list == NULL)
                        return;
 
                while ((lv_iter = readdir(lv_list)) != 0) {