From: Johannes Schindelin Date: Mon, 23 Jul 2007 22:32:36 GMT Subject: Re: [PATCH] Make verify-tag a builtin. Message-ID: In-Reply-To: <1b46aba20707231531i4e05858foef3ee81479e559de@mail.gmail.com> Hi, On Tue, 24 Jul 2007, Carlos Rica wrote: > 2007/7/23, Johannes Schindelin : > > Just one request: please use lock_file, to prevent multiple instances from > > getting confused... Even if that cannot be 100% secure: if you write to > > the file, and only then start gpg, there is still the odd chance for an > > attacker. Even if you created the file with 0600 (very wise, BTW). > > Why not using also a random name for the temporary file? > Something like "VTAG_TMP30946". Yes, makes sense. One call to mkstemp() away. Ciao, Dscho