]> git.ipfire.org Git - thirdparty/sarg.git/commit
Don't blindly delete /tmp/sarg
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Sun, 15 Jul 2012 16:49:48 +0000 (18:49 +0200)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Sun, 15 Jul 2012 16:49:48 +0000 (18:49 +0200)
commit170a77ea0deb9667113e678fa891c3139f31e25c
tree31a87960cfcd49217dee07d0c0c938a9e5c96e72
parent3463a6a4130d23568aa896ae2384f8ef57d286ff
Don't blindly delete /tmp/sarg

If sarg is configured with a wrong /tmp path or the path given points to a
directory the user doesn't intent to use as a temporary directory, we must
not delete it's content (think about a link going to /usr/bin).

To protect against that situation, sarg only deletes its own files and
after making sure it only contains files created by sarg.
datafile.c
include/defs.h
log.c
report.c
sort.c
util.c