1
diff -ruN a/silo/silocheck.c b/silo/silocheck.c
2
--- a/silo/silocheck.c 2006-06-01 17:24:53.000000000 +0000
3
+++ b/silo/silocheck.c 2007-08-13 15:26:21.000000000 +0000
5
#include "../second/fs/ufs.c"
14
while ((dir = readdir(dp)) != NULL) {
15
strcpy(p,dir->d_name);
16
- if (stat(name,&s) < 0) return NULL;
18
+ * It is possible that we got an unresolved symlink under /dev.
19
+ * Such a file will make silocheck fail and we do not want this.
21
+ if (stat(name,&s) < 0 && errno != ENOENT) return NULL;
22
if (S_ISBLK(s.st_mode) && s.st_rdev == number) return name;