From 971324679b82efd9a973d67c45cbf40310ccbfdf Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Fri, 7 Jan 2005 15:39:51 +0000 Subject: [PATCH] Fix /proc/devices parsing. --- WHATS_NEW | 1 + lib/ioctl/libdm-iface.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/WHATS_NEW b/WHATS_NEW index 4891485..68514e1 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 1.00.21 - ============================ + Fix /proc/devices parsing. Version 1.00.20 - 6 Jan 2005 ============================ diff --git a/lib/ioctl/libdm-iface.c b/lib/ioctl/libdm-iface.c index 460a7d2..47ea714 100644 --- a/lib/ioctl/libdm-iface.c +++ b/lib/ioctl/libdm-iface.c @@ -134,8 +134,7 @@ static int _get_proc_number(const char *file, const char *name, fclose(fl); return 1; } - } - do { + } else do { c = fgetc(fl); } while (c != EOF && c != '\n'); } -- 2.43.5