Ignore any files in /proc/

This commit is contained in:
sjg 2013-06-24 21:16:02 +00:00
parent b75be32450
commit 8d830c54ea
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: meta.c,v 1.30 2013/05/16 21:56:56 sjg Exp $ */
/* $NetBSD: meta.c,v 1.31 2013/06/24 21:16:02 sjg Exp $ */
/*
* Implement 'meta' mode.
@ -1125,6 +1125,10 @@ meta_oodate(GNode *gn, Boolean oodate)
if (strncmp(p, "/etc/", 5) == 0)
break;
/* Ignore /proc/ too. */
if (strncmp(p, "/proc/", 6) == 0)
break;
if ((cp = strrchr(p, '/'))) {
cp++;
/*