From owner-freebsd-hackers Thu Feb 23 21:38:57 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id VAA26129 for hackers-outgoing; Thu, 23 Feb 1995 21:38:57 -0800 Received: from zibbi.mikom.csir.co.za (some.schmuck.lame.delegated.to.RAIN.PSG.COM [146.64.24.58]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id VAA26120 for ; Thu, 23 Feb 1995 21:38:46 -0800 Received: (from jhay@localhost) by zibbi.mikom.csir.co.za (8.6.9/8.6.6) id HAA09489; Fri, 24 Feb 1995 07:17:57 +0200 From: John Hay Message-Id: <199502240517.HAA09489@zibbi.mikom.csir.co.za> Subject: ctm_rmail failing again To: phk@ref.tfs.com Date: Fri, 24 Feb 1995 07:17:57 +0200 (SAT) Cc: hackers@FreeBSD.org X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 982 Sender: hackers-owner@FreeBSD.org Precedence: bulk Hi, After the fix of ctm_rmail I get the following error: 1995-02-24 00:29 cannot open 'tmp./usr/CTM/pieces/cvs-cur.0390.gz+1-1' for writing 1995-02-24 06:15 cannot open 'tmp./usr/CTM/pieces/cvs-cur.0391.gz+1-1' for writing The tmp should be added at the end of the string or after the last '/'. Here is a fix that will add it at the end. -- John Hay -- jhay@mikom.csir.co.za *** src/usr.sbin/ctm/ctm_rmail/ctm_rmail.org Thu Feb 23 19:28:38 1995 --- src/usr.sbin/ctm/ctm_rmail/ctm_rmail.c Fri Feb 24 07:25:06 1995 *************** *** 242,248 **** *s = '_'; mk_piece_name(pname, delta, pce, npieces); ! sprintf(tname,"tmp.%s",pname); if ((ofp = fopen(tname, "w")) == NULL) { err("cannot open '%s' for writing", tname); --- 242,248 ---- *s = '_'; mk_piece_name(pname, delta, pce, npieces); ! sprintf(tname,"%s.tmp",pname); if ((ofp = fopen(tname, "w")) == NULL) { err("cannot open '%s' for writing", tname);