Skip to content
Snippets Groups Projects
Commit 05420809 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

ftp_remove() returns a bool (not an int) now, so do the right thing

parent 593337b5
No related branches found
No related tags found
No related merge requests found
Pipeline #6232 passed
...@@ -551,7 +551,7 @@ bool ftp_remove(SOCKET sock, int line, const char* fname, const char* username, ...@@ -551,7 +551,7 @@ bool ftp_remove(SOCKET sock, int line, const char* fname, const char* username,
if(fexist(fname)) // In case there was a race condition (other host deleted file first) if(fexist(fname)) // In case there was a race condition (other host deleted file first)
lprintf(err_level, "%04d <%s> !ERROR %d (%s) (line %d) removing file: %s", sock, username, errno, strerror(errno), line, fname); lprintf(err_level, "%04d <%s> !ERROR %d (%s) (line %d) removing file: %s", sock, username, errno, strerror(errno), line, fname);
} }
return ret; return ret == 0;
} }
typedef struct { typedef struct {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment