From 5ffedb7ce00b68fe114660b0a38b949225691abf Mon Sep 17 00:00:00 2001 From: gene Date: Sun, 9 Nov 1997 04:05:49 +0000 Subject: Upgrade to sendmail 8.8.8 --- usr.sbin/sendmail/makemap/makemap.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'usr.sbin/sendmail/makemap') diff --git a/usr.sbin/sendmail/makemap/makemap.c b/usr.sbin/sendmail/makemap/makemap.c index e4dff21343f..3a04a0b6cd5 100644 --- a/usr.sbin/sendmail/makemap/makemap.c +++ b/usr.sbin/sendmail/makemap/makemap.c @@ -33,7 +33,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)makemap.c 8.37 (Berkeley) 7/10/97"; +static char sccsid[] = "@(#)makemap.c 8.38 (Berkeley) 9/23/97"; #endif /* not lint */ #include @@ -363,13 +363,6 @@ main(argc, argv) pbuf, errstring(st)); exit(EX_CANTCREAT); } - if (std.st_dev == stp.st_dev && std.st_ino == stp.st_ino) - { - fprintf(stderr, - "%s: cannot run with GDBM\n", - mapname); - exit(EX_CONFIG); - } break; #endif default: @@ -407,6 +400,14 @@ main(argc, argv) #ifdef NDBM case T_DBM: dbp.dbm = dbm_open(mapname, mode, 0644); + if (dbp.dbm != NULL && + dbm_dirfno(dbp.dbm) == dbm_pagfno(dbp.dbm)) + { + fprintf(stderr, "dbm map %s: cannot run with GDBM\n", + mapname); + dbm_close(dbp.dbm); + exit(EX_CONFIG); + } if (!ignoresafeties && dbp.dbm != NULL && (filechanged(dbuf, dbm_dirfno(dbp.dbm), &std, sff) || filechanged(pbuf, dbm_pagfno(dbp.dbm), &stp, sff))) -- cgit v1.2.3