https://bugs.exim.org/show_bug.cgi?id=1749

--- Comment #35 from Christian Persch (GNOME) <c...@gnome.org> ---
(In reply to Christoph Michael Becker from comment #31)
> (In reply to Zoltan Herczeg from comment #29)
> > Ok I will try to do these requests. Will take time. Is ./ a good idea to
> > create a temporary file? What other projects do btw?
> 
> I don't think that creating a temporary file in ./ is a good idea. For
> instance, if the process crashes before the file is deleted, the file would
> remain, what might be a particular issue on the Web.

Usually the way this works is you create the tmpfile and immediately unlink it,
so if the process terminates it's not kept lying around.

And on linux, you should use O_TMPFILE which gives you a file that's *never*
been linked.

I do concur that tmp files should only be created in tmp directories, not
$HOME.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-- 
## List details at https://lists.exim.org/mailman/listinfo/pcre-dev 

Reply via email to