path: root/miscutils/devfsd.c
diff options
authorGravatar Eric Andersen <andersen@codepoet.org>2003-10-22 10:10:50 +0000
committerGravatar Eric Andersen <andersen@codepoet.org>2003-10-22 10:10:50 +0000
commit5289969f08d64b6208c5db1049612ea7f9618080 (patch)
tree6bd1b91d4e51d8ce84258a8c3c44092133882e92 /miscutils/devfsd.c
parent88c916bdec7d444198f067529637b4a616ad3efe (diff)
Tito writes:
Hi to all, I'm sorry but I didn't spot this big fat bug until now, Matteo Croce emailed me about it. Please apply this patch as the devfsd applet is broken and works only on a system booted with a standard devfsd ( the test I mostly did :-( ), but if used at boot time it DOESN'T WORK. Thanks in advance and please apply Tito
Diffstat (limited to 'miscutils/devfsd.c')
1 files changed, 2 insertions, 3 deletions
diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c
index e6316d686..e5d550835 100644
--- a/miscutils/devfsd.c
+++ b/miscutils/devfsd.c
@@ -1426,15 +1426,14 @@ static int mksymlink (const char *oldpath, const char *newpath)
static int make_dir_tree (const char *path)
/* [SUMMARY] Creating intervening directories for a path as required.
- <path> The full pathname (including he leaf node).
+ <path> The full pathname (including the leaf node).
[RETURNS] TRUE on success, else FALSE.
msg_logger( NO_DIE, LOG_INFO, "make_dir_tree()\n");
- if (bb_make_directory( (char *)path, S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH , FILEUTILS_RECUR )==-1)
+ if (bb_make_directory( dirname((char *)path), S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH ,FILEUTILS_RECUR )==-1)
msg_logger( NO_DIE, LOG_ERR, "make_dir_tree(): %s: %m\n", path);