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
0957a746
Commit
0957a746
authored
Jan 19, 2005
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When SUPPORT_LINKS is not defined, we now go ahead and provide
the do_lstat() function and just have it call do_stat().
parent
c72f5bd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
syscall.c
syscall.c
+7
-5
No files found.
syscall.c
View file @
0957a746
...
@@ -72,7 +72,7 @@ int do_lchown(const char *path, uid_t owner, gid_t group)
...
@@ -72,7 +72,7 @@ int do_lchown(const char *path, uid_t owner, gid_t group)
{
{
if
(
dry_run
)
return
0
;
if
(
dry_run
)
return
0
;
RETURN_ERROR_IF_RO_OR_LO
;
RETURN_ERROR_IF_RO_OR_LO
;
#if
ndef
HAVE_LCHOWN
#if
!
HAVE_LCHOWN
#define lchown chown
#define lchown chown
#endif
#endif
return
lchown
(
path
,
owner
,
group
);
return
lchown
(
path
,
owner
,
group
);
...
@@ -219,16 +219,18 @@ int do_stat(const char *fname, STRUCT_STAT *st)
...
@@ -219,16 +219,18 @@ int do_stat(const char *fname, STRUCT_STAT *st)
#endif
#endif
}
}
#if SUPPORT_LINKS
int
do_lstat
(
const
char
*
fname
,
STRUCT_STAT
*
st
)
int
do_lstat
(
const
char
*
fname
,
STRUCT_STAT
*
st
)
{
{
#if HAVE_OFF64_T
#if SUPPORT_LINKS
# if HAVE_OFF64_T
return
lstat64
(
fname
,
st
);
return
lstat64
(
fname
,
st
);
#else
#
else
return
lstat
(
fname
,
st
);
return
lstat
(
fname
,
st
);
# endif
#else
return
do_stat
(
fname
,
st
);
#endif
#endif
}
}
#endif
int
do_fstat
(
int
fd
,
STRUCT_STAT
*
st
)
int
do_fstat
(
int
fd
,
STRUCT_STAT
*
st
)
{
{
...
...
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