diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2003-12-30 01:07:57 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:13:12 -0700 |
commit | 0529e2ed2eb1ccfd28d2cd33ce759f9c7b9bc0ff (patch) | |
tree | e1a35211eac5a7eb129fc0c8899a2c4919dd1e27 /udev-add.c | |
parent | 2441c20743e62f135d1b52cb3fa47b29d59fbef6 (diff) |
[PATCH] check for empty symlink string
Attached is a patch for udev-add.c to ignore empty symlink string parts.
Issue was brought up by ide-devfs.sh with only one symlink returned, while two are expected.
Diffstat (limited to 'udev-add.c')
-rw-r--r-- | udev-add.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/udev-add.c b/udev-add.c index ba5c864165..2f72613ea9 100644 --- a/udev-add.c +++ b/udev-add.c @@ -193,7 +193,7 @@ static int create_node(struct udevice *dev) symlinks = dev->symlink; while (1) { linkname = strsep(&symlinks, " "); - if (linkname == NULL) + if (linkname == NULL || linkname[0] == '\0') break; strncpy(filename, udev_root, sizeof(filename)); |