diff options
author | Wayne Davison <wayned@samba.org> | 2009-09-02 09:06:29 -0700 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2009-09-02 09:06:29 -0700 |
commit | 6e310d38fcdeacb8055bb7e83d4e64c37fd54a38 (patch) | |
tree | 4a6676f79d57605fd67701953950c059c3af985e /tls.c | |
parent | 3b83a22057b71e7df2b960d3997fb4474910f30e (diff) | |
download | android_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 'tls.c')
-rw-r--r-- | tls.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -43,6 +43,7 @@ /* These are to make syscall.o shut up. */ int dry_run = 0; int am_root = 0; +int am_sender = 1; int read_only = 1; int list_only = 0; int link_times = 0; @@ -147,9 +148,9 @@ static void list_file(const char *fname) buf.st_uid = buf.st_gid = 0; strlcpy(linkbuf, " -> ", sizeof linkbuf); /* const-cast required for silly UNICOS headers */ - len = readlink((char *) fname, linkbuf+4, sizeof(linkbuf) - 4); + len = do_readlink((char *) fname, linkbuf+4, sizeof(linkbuf) - 4); if (len == -1) - failed("readlink", fname); + failed("do_readlink", fname); else /* it's not nul-terminated */ linkbuf[4+len] = 0; |