components/proftpd/patches/014-21696066-4124.patch
changeset 4821 54dafbe33fdb
equal deleted inserted replaced
4818:058cb786874f 4821:54dafbe33fdb
       
     1 http://bugs.proftpd.org/show_bug.cgi?id=4124
       
     2 https://patch-diff.githubusercontent.com/raw/proftpd/proftpd/pull/60.patch
       
     3 
       
     4 diff --git a/modules/mod_xfer.c b/modules/mod_xfer.c
       
     5 index ddd4f34..339f89a 100644
       
     6 --- a/modules/mod_xfer.c
       
     7 +++ b/modules/mod_xfer.c
       
     8 @@ -974,7 +974,7 @@ static void stor_abort(void) {
       
     9  
       
    10    } else if (session.xfer.path) {
       
    11      delete_stores = get_param_ptr(CURRENT_CONF, "DeleteAbortedStores", FALSE);
       
    12 -    if (delete_stores == NULL ||
       
    13 +    if (delete_stores != NULL &&
       
    14          *delete_stores == TRUE) {
       
    15        pr_log_debug(DEBUG5, "removing aborted file '%s'", session.xfer.path);
       
    16        pr_fsio_unlink(session.xfer.path);