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
0f86c74e
Commit
0f86c74e
authored
Feb 07, 2006
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call renamed cmp_time() function (was cmp_modtime()).
parent
c2b54076
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
generator.c
generator.c
+5
-5
rsync.c
rsync.c
+1
-1
No files found.
generator.c
View file @
0f86c74e
...
...
@@ -347,7 +347,7 @@ void itemize(struct file_struct *file, int ndx, int statret, STRUCT_STAT *st,
iflags
|=
ITEM_REPORT_SIZE
;
if
((
iflags
&
(
ITEM_TRANSFER
|
ITEM_LOCAL_CHANGE
)
&&
!
keep_time
&&
(
!
(
iflags
&
ITEM_XNAME_FOLLOWS
)
||
*
xname
))
||
(
keep_time
&&
cmp_
mod
time
(
file
->
modtime
,
st
->
st_mtime
)
!=
0
))
||
(
keep_time
&&
cmp_time
(
file
->
modtime
,
st
->
st_mtime
)
!=
0
))
iflags
|=
ITEM_REPORT_TIME
;
if
((
file
->
mode
&
CHMOD_BITS
)
!=
(
st
->
st_mode
&
CHMOD_BITS
))
iflags
|=
ITEM_REPORT_PERMS
;
...
...
@@ -396,7 +396,7 @@ int unchanged_file(char *fn, struct file_struct *file, STRUCT_STAT *st)
if
(
ignore_times
)
return
0
;
return
cmp_
mod
time
(
st
->
st_mtime
,
file
->
modtime
)
==
0
;
return
cmp_time
(
st
->
st_mtime
,
file
->
modtime
)
==
0
;
}
...
...
@@ -556,7 +556,7 @@ static int find_fuzzy(struct file_struct *file, struct file_list *dirlist)
name
=
fp
->
basename
;
if
(
fp
->
length
==
file
->
length
&&
cmp_
mod
time
(
fp
->
modtime
,
file
->
modtime
)
==
0
)
{
&&
cmp_time
(
fp
->
modtime
,
file
->
modtime
)
==
0
)
{
if
(
verbose
>
4
)
{
rprintf
(
FINFO
,
"fuzzy size/modtime match for %s
\n
"
,
...
...
@@ -632,7 +632,7 @@ static int try_dests_reg(struct file_struct *file, char *fname, int ndx,
if
(
!
unchanged_attrs
(
file
,
stp
))
continue
;
if
((
always_checksum
||
ignore_times
)
&&
cmp_
mod
time
(
stp
->
st_mtime
,
file
->
modtime
))
&&
cmp_time
(
stp
->
st_mtime
,
file
->
modtime
))
continue
;
best_match
=
j
;
match_level
=
3
;
...
...
@@ -1073,7 +1073,7 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
}
if
(
update_only
&&
statret
==
0
&&
cmp_
mod
time
(
st
.
st_mtime
,
file
->
modtime
)
>
0
)
{
&&
cmp_time
(
st
.
st_mtime
,
file
->
modtime
)
>
0
)
{
if
(
verbose
>
1
)
rprintf
(
FINFO
,
"%s is newer
\n
"
,
fname
);
return
;
...
...
rsync.c
View file @
0f86c74e
...
...
@@ -146,7 +146,7 @@ int set_file_attrs(char *fname, struct file_struct *file, STRUCT_STAT *st,
if
(
!
preserve_times
||
(
S_ISDIR
(
st
->
st_mode
)
&&
omit_dir_times
))
flags
|=
ATTRS_SKIP_MTIME
;
if
(
!
(
flags
&
ATTRS_SKIP_MTIME
)
&&
cmp_
mod
time
(
st
->
st_mtime
,
file
->
modtime
)
!=
0
)
{
&&
cmp_time
(
st
->
st_mtime
,
file
->
modtime
)
!=
0
)
{
int
ret
=
set_modtime
(
fname
,
file
->
modtime
,
st
->
st_mode
);
if
(
ret
<
0
)
{
rsyserr
(
FERROR
,
errno
,
"failed to set times on %s"
,
...
...
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