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
6226396c
Commit
6226396c
authored
Mar 05, 2008
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't call utimes() on a dir that doesn't need its mtime changed.
parent
89b47d43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
generator.c
generator.c
+6
-2
No files found.
generator.c
View file @
6226396c
...
...
@@ -1949,8 +1949,12 @@ static void touch_up_dirs(struct file_list *flist, int ndx)
fname
=
f_name
(
file
,
NULL
);
if
(
!
(
file
->
mode
&
S_IWUSR
))
do_chmod
(
fname
,
file
->
mode
);
if
(
need_retouch_dir_times
)
set_modtime
(
fname
,
file
->
modtime
,
file
->
mode
);
if
(
need_retouch_dir_times
)
{
STRUCT_STAT
st
;
if
(
link_stat
(
fname
,
&
st
,
0
)
==
0
&&
cmp_time
(
st
.
st_mtime
,
file
->
modtime
)
!=
0
)
set_modtime
(
fname
,
file
->
modtime
,
file
->
mode
);
}
if
(
allowed_lull
&&
!
(
counter
%
lull_mod
))
maybe_send_keepalive
();
else
if
(
!
(
counter
&
0xFF
))
...
...
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