From f9e4abf71430bbdf8f61190a420906fb604f0f74 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sat, 21 Sep 2002 06:46:43 -0400 Subject: [PATCH] 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) --- misc/ChangeLog | 6 ++++++ misc/get_device_by_label.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/misc/ChangeLog b/misc/ChangeLog index f176746..c467f37 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 8a80428..a267df2 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) { -- 1.8.3.1