Commit a59a7b24 authored by Wayne Davison's avatar Wayne Davison

Fix reading side of fake-symlink bug 7109.

parent 5bfe0068
...@@ -1044,7 +1044,7 @@ extern int errno; ...@@ -1044,7 +1044,7 @@ extern int errno;
#ifdef HAVE_READLINK #ifdef HAVE_READLINK
#define SUPPORT_LINKS 1 #define SUPPORT_LINKS 1
#ifndef NO_SYMLINK_XATTRS #if !defined NO_SYMLINK_XATTRS && !defined NO_SYMLINK_USER_XATTRS
#define do_readlink(path, buf, bufsiz) readlink(path, buf, bufsiz) #define do_readlink(path, buf, bufsiz) readlink(path, buf, bufsiz)
#endif #endif
#endif #endif
......
...@@ -82,7 +82,7 @@ int do_symlink(const char *lnk, const char *fname) ...@@ -82,7 +82,7 @@ int do_symlink(const char *lnk, const char *fname)
return symlink(lnk, 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) ssize_t do_readlink(const char *path, char *buf, size_t bufsiz)
{ {
/* For --fake-super, we read the link from the file. */ /* For --fake-super, we read the link from the file. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment