Will now also publish directories for existing driver directories that

have subdirectories in order to find device drivers like /dev/audio/raw
without any drivers in /dev/audio.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11017 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-01-25 02:57:52 +00:00
parent dd5857c283
commit 0bfd48e555
+8
View File
@@ -930,6 +930,14 @@ probe_for_device_type(const char *type)
return B_NO_MEMORY;
}
if (S_ISDIR(stat.st_mode)) {
// We need to make sure that drivers in ie. "audio/raw/" can
// be found as well - therefore, we must make sure that "audio"
// exists on /dev.
if (type[0])
devfs_publish_directory(type);
continue;
}
entry->device = stat.st_dev;
entry->node = stat.st_ino;