]> git.ipfire.org Git - thirdparty/sarg.git/commit
Avoid empty file name for the user's report file
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Fri, 9 Mar 2012 13:40:02 +0000 (14:40 +0100)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Fri, 9 Mar 2012 13:40:02 +0000 (14:40 +0100)
commit439d83cc8d1ca90ae5e9f4d0a18eb8f67c446412
tree0208cfcc7952b03eca6ffc6d1d669029c27cb55c
parent0326d73b47a57d65c26d4d333db96f394252abfc
Avoid empty file name for the user's report file

If an empty user name creeps up to the name manufacturing function, the name
generated to store the user's files is empty and it leads to the deletion of
the whole report directory during the process. The visible results is that sarg
ends up with an error because its output directory is missing.

This patch makes sure no empty file name is used. It is still necessary to
avoid empty user names in the first place.
userinfo.c