[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [BusyBox] [PATCH] minor bug in devfsd (improved )
From:       Tito <farmatito () tiscali ! it>
Date:       2004-01-31 20:29:43
Message-ID: 200401312126.00275.farmatito () tiscali ! it
[Download RAW message or body]

Hi,
as discovered by Chuck Meade there was not only a minor bug
but a bug's nest ;-) .
So here is a new patch which substitutes the previous one.
Please apply.

Ciao,
Tito

--- miscutils/devfsd_old.c	2004-01-31 15:28:38.000000000 +0000
+++ miscutils/devfsd.c	2004-01-31 21:16:51.000000000 +0000
@@ -837,10 +837,11 @@
 	/*  Discard lookups on "/dev/log" and "/dev/initctl"  */
 	if(   info->type == DEVFSD_NOTIFY_LOOKUP &&
 		((info->devname[0]=='l' && info->devname[1]=='o' &&
-		  info->devname[2]=='g' && !info->devname[3]) &&
+		  info->devname[2]=='g' && !info->devname[3]) ||
 		( info->devname[0]=='i' && info->devname[1]=='n' &&
-		  info->devname[2]=='i' && info->devname[3]=='c' &&
-		  info->devname[4]=='t' && info->devname[5]=='l' && !info->devname[6])))
+		  info->devname[2]=='i' && info->devname[3]=='t' &&
+		  info->devname[4]=='c' && info->devname[5]=='t' &&
+		  info->devname[6]=='l' && !info->devname[7])))
 			return;
 	for (entry = first_config; entry != NULL; entry = entry->next)
 	{



_______________________________________________
busybox mailing list
busybox@mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic