Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
We now append the exclude list as a "here" document to the end of
[rsync/rsync.git]
/
rsync.c
diff --git
a/rsync.c
b/rsync.c
index
125369b
..
7a1c3f9
100644
(file)
--- a/
rsync.c
+++ b/
rsync.c
@@
-34,6
+34,7
@@
extern int force_delete;
extern int recurse;
extern int make_backups;
extern char *backup_dir;
extern int recurse;
extern int make_backups;
extern char *backup_dir;
+extern int inplace;
/*
/*
@@
-239,6
+240,13
@@
void finish_transfer(char *fname, char *fnametmp, struct file_struct *file,
if (make_backups && !make_backup(fname))
return;
if (make_backups && !make_backup(fname))
return;
+ if (inplace) {
+ if (verbose > 2)
+ rprintf(FINFO, "finishing %s\n", fname);
+ set_perms(fname, file, NULL, 0);
+ return;
+ }
+
/* move tmp file over real file */
if (verbose > 2)
rprintf(FINFO, "renaming %s to %s\n", fnametmp, fname);
/* move tmp file over real file */
if (verbose > 2)
rprintf(FINFO, "renaming %s to %s\n", fnametmp, fname);