X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/28b519c93b6db30b6520d46f8cd65160213fddd2..ddc5ae3d9e6cc632b93bac327b6f92d0545b0537:/syscall.c diff --git a/syscall.c b/syscall.c index 1ed36f3c..c6c571a6 100644 --- a/syscall.c +++ b/syscall.c @@ -64,7 +64,7 @@ int do_symlink(const char *lnk, const char *fname) if (dry_run) return 0; RETURN_ERROR_IF_RO_OR_LO; -#ifdef NO_SYMLINK_XATTRS +#if defined NO_SYMLINK_XATTRS || defined NO_SYMLINK_USER_XATTRS /* For --fake-super, we create a normal file with mode 0600 * and write the lnk into it. */ if (am_root < 0) { @@ -82,7 +82,7 @@ int do_symlink(const char *lnk, const char *fname) return symlink(lnk, fname); } -#ifdef NO_SYMLINK_XATTRS +#if defined NO_SYMLINK_XATTRS || defined NO_SYMLINK_USER_XATTRS ssize_t do_readlink(const char *path, char *buf, size_t bufsiz) { /* For --fake-super, we read the link from the file. */