aboutsummaryrefslogtreecommitdiffstats
path: root/flist.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2009-09-02 09:06:29 -0700
committerWayne Davison <wayned@samba.org>2009-09-02 09:06:29 -0700
commit6e310d38fcdeacb8055bb7e83d4e64c37fd54a38 (patch)
tree4a6676f79d57605fd67701953950c059c3af985e /flist.c
parent3b83a22057b71e7df2b960d3997fb4474910f30e (diff)
downloadandroid_external_rsync-6e310d38fcdeacb8055bb7e83d4e64c37fd54a38.tar.gz
android_external_rsync-6e310d38fcdeacb8055bb7e83d4e64c37fd54a38.tar.bz2
android_external_rsync-6e310d38fcdeacb8055bb7e83d4e64c37fd54a38.zip
Have --fake-super turn a symlink into a file when
NO_SYMLINK_XATTRS is defined.
Diffstat (limited to 'flist.c')
-rw-r--r--flist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/flist.c b/flist.c
index 6eb02c7b..8b08ff6f 100644
--- a/flist.c
+++ b/flist.c
@@ -196,7 +196,7 @@ static int readlink_stat(const char *path, STRUCT_STAT *stp, char *linkbuf)
if (link_stat(path, stp, copy_dirlinks) < 0)
return -1;
if (S_ISLNK(stp->st_mode)) {
- int llen = readlink(path, linkbuf, MAXPATHLEN - 1);
+ int llen = do_readlink(path, linkbuf, MAXPATHLEN - 1);
if (llen < 0)
return -1;
linkbuf[llen] = '\0';