diff options
| author | Wayne Davison <wayned@samba.org> | 2006-10-11 00:04:41 +0000 |
|---|---|---|
| committer | Wayne Davison <wayned@samba.org> | 2006-10-11 00:04:41 +0000 |
| commit | 2a94207ad6f8671109db1e1b21ac1fa9eb3bde1e (patch) | |
| tree | 6915cc3ab2781eb8c3cd679e250217f7a0d2aace /main.c | |
| parent | ddcba3f0750473678dc9a4a5209e3a628627cf7e (diff) | |
| download | android_external_rsync-2a94207ad6f8671109db1e1b21ac1fa9eb3bde1e.tar.gz android_external_rsync-2a94207ad6f8671109db1e1b21ac1fa9eb3bde1e.tar.bz2 android_external_rsync-2a94207ad6f8671109db1e1b21ac1fa9eb3bde1e.zip | |
Added a new variable, new_root_dir, that is set if we created the
destination directory.
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -72,6 +72,7 @@ extern char curr_dir[MAXPATHLEN]; extern struct filter_list_struct server_filter_list; int local_server = 0; +int new_root_dir = 0; mode_t orig_umask = 0; struct file_list *the_file_list; @@ -532,6 +533,8 @@ static char *get_local_name(struct file_list *flist, char *dest_path) exit_cleanup(RERR_FILEIO); } + new_root_dir = 1; + if (verbose) rprintf(FINFO, "created directory %s\n", dest_path); |
