Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!mit-eddie!genrad!decvax!decwrl!hplabs!hplabsc!daemon From: okamoto@hpccc.HP.COM (Jeff Okamoto) Newsgroups: comp.mail.elm Subject: Elm 1.5b savecopy bug Message-ID: <1843@hplabsc.HP.COM> Date: Mon, 18-May-87 10:40:53 EDT Article-I.D.: hplabsc.1843 Posted: Mon May 18 10:40:53 1987 Date-Received: Tue, 19-May-87 04:08:58 EDT Sender: daemon@hplabsc.HP.COM Reply-To: elan!uucp@ames (Jeff Okamoto) Organization: Corporate Computing Center Lines: 45 Approved: taylor@hplabs (with 'postmail') Description: There is a bug in savecopy.c that does not allow a copy of outgoing mail to be saved to a non-existent file. This is due to a mismatch in passed argument types to can_open(). Repeat-By: In $HOME/.elmrc, set copy to ON and savecopy to a non-existent file. elm to anybody. You will get an error message "permission to append to denied! Fix: Pass the correct argument. *** savecopy.old Fri May 15 10:53:40 1987 --- savecopy.c Fri May 15 10:56:15 1987 *************** *** 79,85 strcpy(savename, savefile); } ! if ((errno = can_open(savename, WRITE_ACCESS))) { dprint(2, (debugfile, "Error: attempt to autosave to a file that can't be appended to!\n")); dprint(2, (debugfile, "\tfilename = \"%s\"\n", savename)); --- 79,85 ----- strcpy(savename, savefile); } ! if ((errno = can_open(savename, "a"))) { dprint(2, (debugfile, "Error: attempt to autosave to a file that can't be appended to!\n")); dprint(2, (debugfile, "\tfilename = \"%s\"\n", savename)); ----- The New Number Who, hpccc!okamoto@hplabs.hp.com Jeff Okamoto ..!hplabs!hpccc!okamoto Hewlett-Packard Corporate Computing Center P.S. Steve, please inform the net of the correct mail address to send any future patches to. P.P.S. Thank God for diffc! SysV is brain damaged!