patch-2.1.15 linux/scripts/mkdep.c
Next file: linux/CREDITS
Previous file: linux/net/unix/garbage.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Wed Dec 11 16:01:13 1996
- Orig file:
v2.1.14/linux/scripts/mkdep.c
- Orig date:
Thu Dec 12 17:02:48 1996
diff -u --recursive --new-file v2.1.14/linux/scripts/mkdep.c linux/scripts/mkdep.c
@@ -26,20 +26,15 @@
int plen;
struct path_struct *path = path_array+type;
- if (!type) {
- if (memcmp(name, "linux/", 6) &&
- memcmp(name, "asm/", 4) &&
- memcmp(name, "net/", 4) &&
- memcmp(name, "scsi/", 5))
- return;
- if (len == 14 && !memcmp(name, "linux/config.h", len))
- hasconfig = 1;
- }
+ if (len == 14 && !memcmp(name, "linux/config.h", len))
+ hasconfig = 1;
plen = path->len;
memcpy(path->buffer+plen, name, len);
len += plen;
path->buffer[len] = '\0';
+ if (access(path->buffer, F_OK))
+ return;
if (!hasdep) {
hasdep = 1;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov