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
077e59b7
Commit
077e59b7
authored
Jul 22, 2004
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The inplace handling in finish_transfer() now passes PERMS_SKIP_MTIME
to set_perms() if ok_to_set_time wasn't specified.
parent
007e3c0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
rsync.c
rsync.c
+4
-5
No files found.
rsync.c
View file @
077e59b7
...
...
@@ -243,8 +243,7 @@ void finish_transfer(char *fname, char *fnametmp, struct file_struct *file,
if
(
inplace
)
{
if
(
verbose
>
2
)
rprintf
(
FINFO
,
"finishing %s
\n
"
,
fname
);
set_perms
(
fname
,
file
,
NULL
,
0
);
return
;
goto
do_set_perms
;
}
/* move tmp file over real file */
...
...
@@ -256,10 +255,10 @@ void finish_transfer(char *fname, char *fnametmp, struct file_struct *file,
ret
==
-
2
?
"copy"
:
"rename"
,
full_fname
(
fnametmp
),
fname
);
do_unlink
(
fnametmp
);
}
else
{
set_perms
(
fname
,
file
,
NULL
,
ok_to_set_time
?
0
:
PERMS_SKIP_MTIME
);
return
;
}
do_set_perms:
set_perms
(
fname
,
file
,
NULL
,
ok_to_set_time
?
0
:
PERMS_SKIP_MTIME
);
}
const
char
*
who_am_i
(
void
)
...
...
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