[BusyBox-cvs] busybox/miscutils devfsd.c,1.3,1.4

Erik Andersen andersen at busybox.net
Wed Oct 22 10:10:54 UTC 2003


Update of /var/cvs/busybox/miscutils
In directory winder:/tmp/cvs-serv11236/miscutils

Modified Files:
	devfsd.c 
Log Message:
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



Index: devfsd.c
===================================================================
RCS file: /var/cvs/busybox/miscutils/devfsd.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- devfsd.c	17 Oct 2003 18:54:55 -0000	1.3
+++ devfsd.c	22 Oct 2003 10:10:50 -0000	1.4
@@ -1426,15 +1426,14 @@
 
 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.
 */
 {
 #ifdef CONFIG_DEVFSD_DEBUG
 	msg_logger( NO_DIE, LOG_INFO, "make_dir_tree()\n");
 #endif
-
-	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)
 	{
 #ifdef CONFIG_DEVFSD_VERBOSE
 		msg_logger( NO_DIE, LOG_ERR, "make_dir_tree(): %s: %m\n", path);




More information about the busybox-cvs mailing list