Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/config print a warning if a "cinclude"d file cannot...
details: https://anonhg.NetBSD.org/src/rev/2bd3b10dd3b5
branches: trunk
changeset: 480141:2bd3b10dd3b5
user: drochner <drochner%NetBSD.org@localhost>
date: Wed Jan 05 11:24:02 2000 +0000
description:
print a warning if a "cinclude"d file cannot be opened and the -v flag
is given
diffstat:
usr.sbin/config/scan.l | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (28 lines):
diff -r a4e5ce09ae7f -r 2bd3b10dd3b5 usr.sbin/config/scan.l
--- a/usr.sbin/config/scan.l Wed Jan 05 11:19:36 2000 +0000
+++ b/usr.sbin/config/scan.l Wed Jan 05 11:24:02 2000 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: scan.l,v 1.25 1999/07/09 06:44:59 thorpej Exp $ */
+/* $NetBSD: scan.l,v 1.26 2000/01/05 11:24:02 drochner Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -212,6 +212,7 @@
struct incl *in;
char *s;
static int havedirs;
+ extern int vflag;
if (havedirs == 0) {
havedirs = 1;
@@ -223,6 +224,9 @@
if (conditional == 0)
error("cannot open %s for reading: %s\n", s,
strerror(errno));
+ else if (vflag)
+ warn("cannot open conditional include file %s: %s",
+ s, strerror(errno));
free(s);
return (-1);
}
Home |
Main Index |
Thread Index |
Old Index