From: Theodore Ts'o Date: Sat, 21 Sep 2002 10:46:43 +0000 (-0400) Subject: get_device_by_label.c (init_lvm): Fix bug which caused X-Git-Tag: E2FSPROGS-1_29~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9e4abf71430bbdf8f61190a420906fb604f0f74;p=thirdparty%2Fe2fsprogs.git 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) --- diff --git a/misc/ChangeLog b/misc/ChangeLog index f176746a2..c467f37c9 100644 --- a/misc/ChangeLog +++ b/misc/ChangeLog @@ -1,3 +1,9 @@ +2002-09-21 Theodore Ts'o + + * 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 * Release of E2fsprogs 1.28 diff --git a/misc/get_device_by_label.c b/misc/get_device_by_label.c index 8a8042825..a267df2f3 100644 --- a/misc/get_device_by_label.c +++ b/misc/get_device_by_label.c @@ -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) {