Date: Fri, 24 Feb 1995 07:17:57 +0200 (SAT) From: John Hay <jhay@mikom.csir.co.za> To: phk@ref.tfs.com Cc: hackers@FreeBSD.org Subject: ctm_rmail failing again Message-ID: <199502240517.HAA09489@zibbi.mikom.csir.co.za>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199502240517.HAA09489>