]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
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 f176746a26de48064ce817634c126d51dcf442ea..c467f37c97c940bc519d616a7ef7d8f2ccf5cf14 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 8a8042825ab043154f4529233d09d9c170851b38..a267df2f3413cd501d42e256418f02c47a461f5d 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) {