Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddcba3f
)
Added a new variable, new_root_dir, that is set if we created the
author
Wayne Davison
<wayned@samba.org>
Wed, 11 Oct 2006 00:04:41 +0000
(
00:04
+0000)
committer
Wayne Davison
<wayned@samba.org>
Wed, 11 Oct 2006 00:04:41 +0000
(
00:04
+0000)
destination directory.
main.c
patch
|
blob
|
blame
|
history
diff --git
a/main.c
b/main.c
index
eed9c0f
..
841d438
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-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);