summaryrefslogtreecommitdiff
path: root/miscutils/devfsd.c
diff options
context:
space:
mode:
authorGlenn L McGrath2004-02-04 08:27:57 +0000
committerGlenn L McGrath2004-02-04 08:27:57 +0000
commit5b0d7deb751d1fb96fb14e30248f888c34f4dec2 (patch)
treed51f370751b75e14ab662e14ec4a370cb4a18f32 /miscutils/devfsd.c
parent16e45d7e29a35c57fc31484e72f1294144e4899c (diff)
downloadbusybox-5b0d7deb751d1fb96fb14e30248f888c34f4dec2.zip
busybox-5b0d7deb751d1fb96fb14e30248f888c34f4dec2.tar.gz
Bug fix from Tito.
Diffstat (limited to 'miscutils/devfsd.c')
-rw-r--r--miscutils/devfsd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c
index aa7a826..ada0bae 100644
--- a/miscutils/devfsd.c
+++ b/miscutils/devfsd.c
@@ -837,10 +837,11 @@ static void service_name (const struct devfsd_notify_struct *info)
/* 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)
{