When SUPPORT_LINKS is not defined, we now go ahead and provide
the do_lstat() function and just have it call do_stat().
This commit is contained in:
@@ -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;
|
||||||
#ifndef 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)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if SUPPORT_LINKS
|
|
||||||
int do_lstat(const char *fname, STRUCT_STAT *st)
|
int do_lstat(const char *fname, STRUCT_STAT *st)
|
||||||
{
|
{
|
||||||
|
#if SUPPORT_LINKS
|
||||||
# if HAVE_OFF64_T
|
# if HAVE_OFF64_T
|
||||||
return lstat64(fname, st);
|
return lstat64(fname, st);
|
||||||
# else
|
# else
|
||||||
return lstat(fname, st);
|
return lstat(fname, st);
|
||||||
# endif
|
# endif
|
||||||
}
|
#else
|
||||||
|
return do_stat(fname, st);
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
int do_fstat(int fd, STRUCT_STAT *st)
|
int do_fstat(int fd, STRUCT_STAT *st)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user