[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#4059: public readable editor-backups in pine



On Tue, 6 Aug 1996, Winfried Truemper wrote:

> Package: pine
> Version: 3.94-2
> 
> Here what happens when I write e-mail:
> 
> -rw-r--r--   1 truemper students      169 Aug  6 17:37 #pico19247#

That's emacs's autosave file.  emacs will copy the permissions of the
original file to set the autosave file.  For a new file, it will use
your umask.

Since this will happen on any editor that creates autosave files, one
solution would be for pine to create the file with permissions 600 and
then call emacs on it.  Just set your pine editor to "pineedit" which
would be a shell script like this:

#!/bin/sh
touch $1
chmod 600 $1
exec emacsclient $1

Instead of just having pine launch emacsclient directly.  You can
probably put a hook in the file load to do this also if you wish.


Guy



Reply to: