aboutsummaryrefslogtreecommitdiffstats
path: root/cleanup.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2004-07-29 16:06:38 +0000
committerWayne Davison <wayned@samba.org>2004-07-29 16:06:38 +0000
commita7260c403733b10e3d25abf334441f3ed4cc3b91 (patch)
treeb32de468ba128ccba41d1f0af74aeb414bc43bdb /cleanup.c
parent44cad59f2bc141af50de3583523a22ccbe73bd30 (diff)
downloadandroid_external_rsync-a7260c403733b10e3d25abf334441f3ed4cc3b91.tar.gz
android_external_rsync-a7260c403733b10e3d25abf334441f3ed4cc3b91.tar.bz2
android_external_rsync-a7260c403733b10e3d25abf334441f3ed4cc3b91.zip
Added the new --partial-dir option.
Diffstat (limited to 'cleanup.c')
-rw-r--r--cleanup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cleanup.c b/cleanup.c
index 0316bf98..909e3435 100644
--- a/cleanup.c
+++ b/cleanup.c
@@ -111,7 +111,8 @@ void _exit_cleanup(int code, const char *file, int line)
}
}
- if (cleanup_got_literal && cleanup_fname && keep_partial) {
+ if (cleanup_got_literal && cleanup_fname && keep_partial
+ && handle_partial_dir(cleanup_new_fname, PDIR_CREATE)) {
char *fname = cleanup_fname;
cleanup_fname = NULL;
if (cleanup_fd_r != -1)