[prev in list] [next in list] [prev in thread] [next in thread] 

List:       darcs-users
Subject:    Re: [darcs-users] `darcs record` leaves emacs backup files in top
From:       Thomas Zander <zander () planescape ! com>
Date:       2005-04-07 19:08:58
Message-ID: 200504072109.01891.zander () kde ! org
[Download RAW message or body]


On Thursday 07 April 2005 19:32, Antti-Juhani Kaijanaho wrote:
> On 20050407T150809+0200, Thomas Zander wrote:
> > Simplest way is a
> >     a) generate new filename
> >     b) umask 077 && touch /tmp/$tmpfile
> >     c) check if /tmp/$tmpfile is of current uid, if not goto (a)
> >     d) start $EDITOR with /tmp/$tmpfile
>
> Better use the standard secure temp file creation mechanisms.

Hmm.. Yeah;  assuming that this has not been defined in the POSIX defaults  
was indeed a bit silly of me :)

-- 
Thomas Zander

[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic