diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2015-07-13 12:41:55 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2015-07-13 12:41:55 +0000 |
commit | 9e5886c4854614885c0d0b9a14f94964ac8ad1ec (patch) | |
tree | 067a90d5b2003748d5f87cba69566a4b98670b40 /lib/libc/gen | |
parent | a87fe3ec9bc5cf00c3fb0e4200c7338e387f78c7 (diff) |
Do not write a warning to stderr if the db cannot be opened, just
return an error. Avoids bogus warnings in chroots.
OK deraadt@ ajacoutot@
Diffstat (limited to 'lib/libc/gen')
-rw-r--r-- | lib/libc/gen/devname.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/gen/devname.c b/lib/libc/gen/devname.c index 36c5eb694a5..a840db396cf 100644 --- a/lib/libc/gen/devname.c +++ b/lib/libc/gen/devname.c @@ -1,4 +1,4 @@ -/* $OpenBSD: devname.c,v 1.7 2006/03/31 00:41:20 deraadt Exp $ */ +/* $OpenBSD: devname.c,v 1.8 2015/07/13 12:41:54 millert Exp $ */ /* * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. @@ -52,7 +52,6 @@ devname(int dev, mode_t type) if (!db && !failure && !(db = dbopen(_PATH_DEVDB, O_RDONLY, 0, DB_HASH, NULL))) { - _warn("warning: %s", _PATH_DEVDB); failure = 1; } if (failure) |