summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-10-28 21:51:39 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-10-28 21:51:39 +0000
commit92b3f2849443277eedb9864001bd6842289c3593 (patch)
tree1f7662c835a4eff3c776e0ae4e8ad7c8fedfd6ac
parent7ce0a150ffe8465472edc3fecb9ebc432bb92a66 (diff)
Close PR 1419, use modified patch (original from peter.galbavy@knowledge.com)
-rw-r--r--usr.sbin/config/sem.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/config/sem.c b/usr.sbin/config/sem.c
index fba2d655461..5bbd53a9feb 100644
--- a/usr.sbin/config/sem.c
+++ b/usr.sbin/config/sem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sem.c,v 1.16 2000/01/03 19:27:23 angelos Exp $ */
+/* $OpenBSD: sem.c,v 1.17 2000/10/28 21:51:38 angelos Exp $ */
/* $NetBSD: sem.c,v 1.10 1996/11/11 23:40:11 gwr Exp $ */
/*
@@ -893,8 +893,9 @@ addpseudo(name, number)
return;
}
if (ht_lookup(devitab, name) != NULL) {
- error("`%s' already defined", name);
- return;
+ warnx("warning: duplicate definition of `%s', will use latest definition", name);
+ ht_remove(devitab, name);
+ d->d_umax = 0;
}
i = newdevi(name, number - 1, d); /* foo 16 => "foo0..foo15" */
if (ht_insert(devitab, name, i))