🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.4bsd
Article #1363

IDA - Sendmail 5.61 - Missings flags arg. to dbm_store

#1363
From: Rob McMahon
Date: Sat, 25 Mar 1989 15:52
50 lines
1788 bytes
The IDA patches (Revision 1.2.5) are missing the `flags' argument to
`dbm_store'.  Sendmail 5.61 as patched by these needs the following changes:

RCS file: alias.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -c -r1.1 -r1.2
*** /tmp/,RCSt1a08355	Sat Mar 25 15:51:24 1989
--- /tmp/,RCSt2a08355	Sat Mar 25 15:51:25 1989
***************
*** 532,538 ****
  			content.dsize = rhssize;
  			content.dptr = rhs;
  # ifdef NDBM
! 			(void) dbm_store(AliasDbm, key, content);
  # else NDBM
  			store(key, content);
  # endif NDBM
--- 532,538 ----
  			content.dsize = rhssize;
  			content.dptr = rhs;
  # ifdef NDBM
! 			(void) dbm_store(AliasDbm, key, content, DBM_REPLACE);
  # else NDBM
  			store(key, content);
  # endif NDBM
***************
*** 560,566 ****
  		key.dsize = 2;
  		key.dptr = "@";
  # ifdef NDBM
! 		(void) dbm_store(AliasDbm, key, key);
  # else NDBM
  		store(key, key);
  # endif NDBM
--- 560,566 ----
  		key.dsize = 2;
  		key.dptr = "@";
  # ifdef NDBM
! 		(void) dbm_store(AliasDbm, key, key, DBM_INSERT);
  # else NDBM
  		store(key, key);
  # endif NDBM

Rob
-- 
UUCP:   ...!mcvax!ukc!warwick!cudcv	PHONE:  +44 203 523037
JANET:  cudcv@uk.ac.warwick             ARPA:   cudcv@warwick.ac.uk
Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England
Technical Details
Message-ID: <129@titania.warwick.ac.uk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!mcvax!ukc!warwick!cudcv

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!mcvax!ukc!warwick!cudcv
From: cudcv@warwick.ac.uk (Rob McMahon)
Newsgroups: comp.bugs.4bsd
Subject: IDA - Sendmail 5.61 - Missings flags arg. to dbm_store
Message-ID: <129@titania.warwick.ac.uk>
Date: 25 Mar 89 15:52:52 GMT
Reply-To: cudcv@warwick.ac.uk (Rob McMahon)
Organization: Computing Services, Warwick University, UK
Lines: 50