]> git.ipfire.org Git - thirdparty/sarg.git/commit
Avoid a possible name clash in the temporary directory
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Thu, 9 Feb 2012 20:10:54 +0000 (21:10 +0100)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Thu, 9 Feb 2012 20:10:54 +0000 (21:10 +0100)
commitc98d6a0f7eaea794cad9fe069d918d225c35d331
tree41f2ebcb6cb95f40c48d2c668f929b0321ee5b30
parentdbf8818d3be37dbb5ad1ea817ddc49225bbaa227
Avoid a possible name clash in the temporary directory

As all the temporary files are generated in the same directory and some of
them may be named after the user's ID found in the log file, it is possible
that a user's file ends up with the same name as an internal file such as
the downloads.

To avoid that name clash, the temporary files created for any auxiliary
report are suffixed with a distinct extension.
authfail.c
dansguardian_log.c
dansguardian_report.c
denied.c
download.c
html.c
log.c
redirector.c
report.c
smartfilter.c
useragent.c