summaryrefslogtreecommitdiff
path: root/namedev_parse.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-02-21 14:05:52 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:36:13 -0700
commit69f57c6a2b94ae3b70a0ca43b46c30f8dce0a295 (patch)
treeae07a2d427b524af5e182b1e337e3298837cfb72 /namedev_parse.c
parent5e39f90b14ccf242618086a0242000fc11317a75 (diff)
[PATCH] detect NAME="" as ignore_device rule
Diffstat (limited to 'namedev_parse.c')
-rw-r--r--namedev_parse.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/namedev_parse.c b/namedev_parse.c
index eabd9c98bb..7cd676c390 100644
--- a/namedev_parse.c
+++ b/namedev_parse.c
@@ -259,7 +259,10 @@ static int namedev_parse(const char *filename, void *data)
dev.ignore_remove = 1;
}
}
- strfieldcpy(dev.name, temp3);
+ if (temp3[0] != '\0')
+ strfieldcpy(dev.name, temp3);
+ else
+ dev.ignore_device = 1;
valid = 1;
continue;
}