summaryrefslogtreecommitdiff
path: root/tls.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 /tls.c
parent3b83a22057b71e7df2b960d3997fb4474910f30e (diff)
downloadrsync-6e310d38fcdeacb8055bb7e83d4e64c37fd54a38.tar.gz
Have --fake-super turn a symlink into a file when
NO_SYMLINK_XATTRS is defined.
Diffstat (limited to 'tls.c')
-rw-r--r--tls.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tls.c b/tls.c
index 8cc57482..1c5953d7 100644
--- a/tls.c
+++ b/tls.c
@@ -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;