patch-2.1.14 linux/scripts/mkdep.c
Next file: linux/CREDITS
Previous file: linux/net/rose/rose_timer.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Sun Dec 1 11:11:00 1996
- Orig file:
v2.1.13/linux/scripts/mkdep.c
- Orig date:
Sat Sep 21 10:46:07 1996
diff -u --recursive --new-file v2.1.13/linux/scripts/mkdep.c linux/scripts/mkdep.c
@@ -26,15 +26,20 @@
int plen;
struct path_struct *path = path_array+type;
- if (len == 14 && !memcmp(name, "linux/config.h", len))
- hasconfig = 1;
+ 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;
+ }
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