Fix download tag directory not clean
This commit is contained in:
parent
c998a25de1
commit
df2eba102a
@ -68,6 +68,8 @@ v0.51.4 11-Apr-2004
|
||||
wrong line terminaters (Sempoint).
|
||||
Added new experimental files database code which will only be
|
||||
used if configured with --enable-experiment.
|
||||
The users tag directory wasn't properly cleaned before a new
|
||||
download session.
|
||||
|
||||
mball:
|
||||
Added new experimental files database code which will only be
|
||||
|
@ -224,7 +224,12 @@ void Download(void)
|
||||
Enter(2);
|
||||
OldArea = iAreaNumber;
|
||||
WhosDoingWhat(DOWNLOAD, NULL);
|
||||
execute_pth((char *)"rm", (char *)"-f ./tag/*", (char *)"/dev/null", (char *)"/dev/null", (char *)"/dev/null");
|
||||
temp = calloc(PATH_MAX, sizeof(char));
|
||||
sprintf(temp, "-rf %s/%s/tag", CFG.bbs_usersdir, exitinfo.Name);
|
||||
execute_pth((char *)"rm", temp, (char *)"/dev/null", (char *)"/dev/null", (char *)"/dev/null");
|
||||
sprintf(temp, "%s/%s/tag", CFG.bbs_usersdir, exitinfo.Name);
|
||||
CheckDir(temp);
|
||||
free(temp);
|
||||
|
||||
if ((tf = fopen("taglist", "r+")) == NULL) {
|
||||
Syslog('+', "Download command but no files marked");
|
||||
|
Reference in New Issue
Block a user