From f4ad6e2157540abac01f903ed6b55a10c16fd3eb Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Fri, 7 Jan 2005 15:39:53 +0000 Subject: [PATCH] Fix /proc/devices parsing. --- WHATS_NEW_DM | 1 + libdm/ioctl/libdm-iface.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index 489148537..68514e12f 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,5 +1,6 @@ Version 1.00.21 - ============================ + Fix /proc/devices parsing. Version 1.00.20 - 6 Jan 2005 ============================ diff --git a/libdm/ioctl/libdm-iface.c b/libdm/ioctl/libdm-iface.c index 460a7d2fb..47ea7147b 100644 --- a/libdm/ioctl/libdm-iface.c +++ b/libdm/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'); }