okamoto@hpccc.HP.COM (Jeff Okamoto) (05/18/87)
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 <savecopy file name> 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!