Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
997d9ea6
Commit
997d9ea6
authored
Jan 10, 2005
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a "overwriting_basis" arg to finish_transfer().
parent
aec6b9f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
rsync.c
rsync.c
+2
-2
No files found.
rsync.c
View file @
997d9ea6
...
@@ -240,7 +240,7 @@ void sig_int(void)
...
@@ -240,7 +240,7 @@ void sig_int(void)
/* finish off a file transfer, renaming the file and setting the permissions
/* finish off a file transfer, renaming the file and setting the permissions
and ownership */
and ownership */
void
finish_transfer
(
char
*
fname
,
char
*
fnametmp
,
struct
file_struct
*
file
,
void
finish_transfer
(
char
*
fname
,
char
*
fnametmp
,
struct
file_struct
*
file
,
int
ok_to_set_time
)
int
ok_to_set_time
,
int
overwriting_basis
)
{
{
int
ret
;
int
ret
;
...
@@ -250,7 +250,7 @@ void finish_transfer(char *fname, char *fnametmp, struct file_struct *file,
...
@@ -250,7 +250,7 @@ void finish_transfer(char *fname, char *fnametmp, struct file_struct *file,
goto
do_set_perms
;
goto
do_set_perms
;
}
}
if
(
make_backups
&&
!
make_backup
(
fname
))
if
(
make_backups
&&
overwriting_basis
&&
!
make_backup
(
fname
))
return
;
return
;
/* Change permissions before putting the file into place. */
/* Change permissions before putting the file into place. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment