From: Frédéric Marchal Date: Fri, 6 Jan 2012 14:00:20 +0000 (+0000) Subject: Print a debug message when purging the temporary directory X-Git-Tag: v2.3.3-pre1~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6b380a798ef1ec7a0e36bc55176abd8102b5e77e;p=thirdparty%2Fsarg.git Print a debug message when purging the temporary directory The temporary directory used by sarg is purged before the report is generated and it can take some time if a previous directory was left from a previous run. A debug message is printed to tell the user about the delay that's occuring. --- diff --git a/log.c b/log.c index 3939fb2..96838c1 100644 --- a/log.c +++ b/log.c @@ -644,6 +644,7 @@ int main(int argc,char *argv[]) } if(access(tmp, R_OK) == 0) { + if (debug) debuga(_("Deleting directory %s\n"),tmp); unlinkdir(tmp,1); } my_mkdir(tmp);