# HG changeset patch # User Tomas Klacko # Date 1440773204 25200 # Node ID 54dafbe33fdbf78a77572dfa0776891d8251fe6d # Parent 058cb786874fb72d58f10d004b82af94fc55b331 21696066 backport upstream 4124 for ZFSSA diff -r 058cb786874f -r 54dafbe33fdb components/proftpd/patches/014-21696066-4124.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/proftpd/patches/014-21696066-4124.patch Fri Aug 28 07:46:44 2015 -0700 @@ -0,0 +1,16 @@ +http://bugs.proftpd.org/show_bug.cgi?id=4124 +https://patch-diff.githubusercontent.com/raw/proftpd/proftpd/pull/60.patch + +diff --git a/modules/mod_xfer.c b/modules/mod_xfer.c +index ddd4f34..339f89a 100644 +--- a/modules/mod_xfer.c ++++ b/modules/mod_xfer.c +@@ -974,7 +974,7 @@ static void stor_abort(void) { + + } else if (session.xfer.path) { + delete_stores = get_param_ptr(CURRENT_CONF, "DeleteAbortedStores", FALSE); +- if (delete_stores == NULL || ++ if (delete_stores != NULL && + *delete_stores == TRUE) { + pr_log_debug(DEBUG5, "removing aborted file '%s'", session.xfer.path); + pr_fsio_unlink(session.xfer.path);