Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make Ignore any files in /proc/
details: https://anonhg.NetBSD.org/src/rev/566eaf855ade
branches: trunk
changeset: 787579:566eaf855ade
user: sjg <sjg%NetBSD.org@localhost>
date: Mon Jun 24 21:16:02 2013 +0000
description:
Ignore any files in /proc/
diffstat:
usr.bin/make/meta.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 7cea213b147b -r 566eaf855ade usr.bin/make/meta.c
--- a/usr.bin/make/meta.c Mon Jun 24 20:57:47 2013 +0000
+++ b/usr.bin/make/meta.c Mon Jun 24 21:16:02 2013 +0000
@@ -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 @@
if (strncmp(p, "/etc/", 5) == 0)
break;
+ /* Ignore /proc/ too. */
+ if (strncmp(p, "/proc/", 6) == 0)
+ break;
+
if ((cp = strrchr(p, '/'))) {
cp++;
/*
Home |
Main Index |
Thread Index |
Old Index