diff options
author | Wayne Davison <wayned@samba.org> | 2005-01-19 19:29:20 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2005-01-19 19:29:20 +0000 |
commit | 0957a7463e6a69e75b52dacdb0455fbf7a01268c (patch) | |
tree | a4510f9a79a3f5b23f3dce5bfaec3be6d8bf4f3b /syscall.c | |
parent | c72f5bd9c4e60584cf574fc677883b5df4fe098e (diff) | |
download | android_external_rsync-0957a7463e6a69e75b52dacdb0455fbf7a01268c.tar.gz android_external_rsync-0957a7463e6a69e75b52dacdb0455fbf7a01268c.tar.bz2 android_external_rsync-0957a7463e6a69e75b52dacdb0455fbf7a01268c.zip |
When SUPPORT_LINKS is not defined, we now go ahead and provide
the do_lstat() function and just have it call do_stat().
Diffstat (limited to 'syscall.c')
-rw-r--r-- | syscall.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -72,7 +72,7 @@ int do_lchown(const char *path, uid_t owner, gid_t group) { if (dry_run) return 0; RETURN_ERROR_IF_RO_OR_LO; -#ifndef HAVE_LCHOWN +#if !HAVE_LCHOWN #define lchown chown #endif return lchown(path, owner, group); @@ -219,16 +219,18 @@ int do_stat(const char *fname, STRUCT_STAT *st) #endif } -#if SUPPORT_LINKS int do_lstat(const char *fname, STRUCT_STAT *st) { -#if HAVE_OFF64_T +#if SUPPORT_LINKS +# if HAVE_OFF64_T return lstat64(fname, st); -#else +# else return lstat(fname, st); +# endif +#else + return do_stat(fname, st); #endif } -#endif int do_fstat(int fd, STRUCT_STAT *st) { |