diff options
author | Mats O Jansson <maja@cvs.openbsd.org> | 2002-03-20 14:19:31 +0000 |
---|---|---|
committer | Mats O Jansson <maja@cvs.openbsd.org> | 2002-03-20 14:19:31 +0000 |
commit | cba6c304206d900051cb456dc17b91e07d2d5ab9 (patch) | |
tree | 43f5ca50773c6f4154aba7141fbed341e690d3ab /usr.sbin/ypserv/makedbm | |
parent | 83f2f5b789dccc3cf023ea64d58c635b51269f6d (diff) |
Improve error message in makedbm. -moj
from Kenneth Ingham <ingham@i-pi.com>
Diffstat (limited to 'usr.sbin/ypserv/makedbm')
-rw-r--r-- | usr.sbin/ypserv/makedbm/makedbm.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ypserv/makedbm/makedbm.c b/usr.sbin/ypserv/makedbm/makedbm.c index 545420ae2c3..053c4ca32fe 100644 --- a/usr.sbin/ypserv/makedbm/makedbm.c +++ b/usr.sbin/ypserv/makedbm/makedbm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: makedbm.c,v 1.16 2002/02/13 23:05:48 deraadt Exp $ */ +/* $OpenBSD: makedbm.c,v 1.17 2002/03/20 14:19:30 maja Exp $ */ /* * Copyright (c) 1994-97 Mats O Jansson <moj@stacken.kth.se> @@ -32,7 +32,7 @@ */ #ifndef LINT -static char rcsid[] = "$OpenBSD: makedbm.c,v 1.16 2002/02/13 23:05:48 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: makedbm.c,v 1.17 2002/03/20 14:19:30 maja Exp $"; #endif #include <stdio.h> @@ -152,7 +152,8 @@ list_database(database,Uflag) if (Uflag != 0) if (db_hash_list_database(database)) return; - fprintf(stderr, "%s: can't open database %s\n", __progname, database); + fprintf(stderr, "%s: can't open database %s: %s\n", __progname, + database, strerror(errno)); exit(1); } |