From: Adeodato Simó Date: Wed, 07 Jan 2009 10:35:34 GMT Subject: Re: [PATCH (topgit) 1/2] Implement setup_pager just like in git Message-ID: <20090107103534.GA30089@chistera.yi.org> In-Reply-To: <20090106203203.GA11274@lapse.rw.madduck.net> * martin f krafft [Tue, 06 Jan 2009 21:32:03 +0100]: > > + _pager_fifo="$(mktemp -t tg-pager-fifo.XXXXXX)" > > + rm "$_pager_fifo" && mkfifo -m 600 "$_pager_fifo" > There's a race condition here. I can't see a real problem with it, > though, nor do I know of a better way. mktemp -d, and create the fifo inside the directory created by mktemp. -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org A hacker does for love what other would not do for money.