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
018b2832
Commit
018b2832
authored
Jan 19, 2005
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No need for conditional code around do_lstat() anymore.
parent
0957a746
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
18 deletions
+3
-18
backup.c
backup.c
+1
-6
tls.c
tls.c
+2
-8
util.c
util.c
+0
-4
No files found.
backup.c
View file @
018b2832
...
...
@@ -162,12 +162,7 @@ static int keep_backup(char *fname)
int
ret_code
;
/* return if no file to keep */
#if SUPPORT_LINKS
ret_code
=
do_lstat
(
fname
,
&
st
);
#else
ret_code
=
do_stat
(
fname
,
&
st
);
#endif
if
(
ret_code
<
0
)
if
(
do_lstat
(
fname
,
&
st
)
<
0
)
return
1
;
if
(
!
(
file
=
make_file
(
fname
,
NULL
,
NO_EXCLUDES
)))
...
...
tls.c
View file @
018b2832
...
...
@@ -65,14 +65,8 @@ static void list_file(const char *fname)
struct
tm
*
mt
;
char
datebuf
[
50
];
char
linkbuf
[
4096
];
int
ret
;
#if SUPPORT_LINKS
ret
=
do_lstat
(
fname
,
&
buf
);
#else
ret
=
do_stat
(
fname
,
&
buf
);
#endif
if
(
ret
<
0
)
if
(
do_lstat
(
fname
,
&
buf
)
<
0
)
failed
(
"stat"
,
fname
);
/* The size of anything but a regular file is probably not
...
...
util.c
View file @
018b2832
...
...
@@ -990,11 +990,7 @@ int handle_partial_dir(const char *fname, int create)
dir
=
partial_fname
;
if
(
create
)
{
STRUCT_STAT
st
;
#if SUPPORT_LINKS
int
statret
=
do_lstat
(
dir
,
&
st
);
#else
int
statret
=
do_stat
(
dir
,
&
st
);
#endif
if
(
statret
==
0
&&
!
S_ISDIR
(
st
.
st_mode
))
{
if
(
do_unlink
(
dir
)
<
0
)
return
0
;
...
...
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