summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger2006-02-07 06:10:45 +0000
committerMike Frysinger2006-02-07 06:10:45 +0000
commit271aa40a15be3d111f2016e24832a86657661cca (patch)
treede364b0966d3085d79cd2fc5f53de050eea066eb
parent27a74e8017ff5d21d728fe41ef4bf5083a0ad5c8 (diff)
downloadbusybox-271aa40a15be3d111f2016e24832a86657661cca.zip
busybox-271aa40a15be3d111f2016e24832a86657661cca.tar.gz
add back in path nulling after calling find_dev() since it is needed for now ...
-rw-r--r--util-linux/mdev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c
index aef84ac..f6d4d8d 100644
--- a/util-linux/mdev.c
+++ b/util-linux/mdev.c
@@ -197,6 +197,7 @@ static void find_dev(char *path)
if (entry->d_type == DT_DIR) {
snprintf(path+len, PATH_MAX-len, "/%s", entry->d_name);
find_dev(path);
+ path[len] = 0;
}
/* If there's a dev entry, mknod it */