--- ray/src/util/do_file.tcl 1994/12/08 15:53:46 2.4 +++ ray/src/util/do_file.tcl 1995/02/15 14:12:05 2.6 @@ -242,6 +242,11 @@ proc newsave f { # save a RIF return 0 } } + if {[file exists $f] && ! [file writable $f] && + [catch {exec chmod u+w $f} curmess]} { + beep + return 0 + } if [save_vars $f] { set rifname [pwd]/$f set readonly 0