[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: psvn.el: insecure temporary files

From: Robert Spier <rspier_at_pobox.com>
Date: 2003-08-09 15:23:52 CEST

At 09 Aug 2003 14:23:26 +0300,
Kalle Olavi Niemitalo wrote:
> As a workaround, svn-status-temp-dir can be changed to point to a
> directory where other users cannot write. For example, this
> could be done in ~/.emacs:
>
> (setq svn-status-temp-dir (expand-file-name "~/.svn/psvn.tmp/"))
> (make-directory svn-status-temp-dir t)

(make-temp-name (temp-directory))

(mm-make-temp-file (temp-directory))
    this actually looks like it comes from gnus.. so maybe borrow the
    code?
    
> However, this has two flaws: any files left over in that
> directory are not automatically removed by the system

After generating the file, they should be added to some list to delete
later via a hook.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Aug 9 15:24:50 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.