From 46ef46aefb800e3865276b99caf88b6c309a841f Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 23 Jan 2008 18:48:26 +0000 Subject: as reported by George Boudreau, make sure we properly skip blank lines --- util-linux/mdev.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'util-linux/mdev.c') diff --git a/util-linux/mdev.c b/util-linux/mdev.c index 84d5e1c0e..65b4da4f4 100644 --- a/util-linux/mdev.c +++ b/util-linux/mdev.c @@ -78,8 +78,12 @@ static void make_device(char *path, int delete) val = strtok(vline, " \t"); vline = NULL; } while (val && !*val); - if (!val) - break; + if (!val) { + if (field) + break; + else + goto next_line; + } if (field == 0) { -- cgit v1.2.3