git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4591bb2
)
Set NO_SYMLINK_USER_XATTRS on linux. Fixes bug 7109.
author
Wayne Davison
<wayned@samba.org>
Sat, 18 Jun 2011 17:12:47 +0000
(10:12 -0700)
committer
Wayne Davison
<wayned@samba.org>
Sat, 18 Jun 2011 17:12:47 +0000
(10:12 -0700)
configure.ac
patch
|
blob
|
history
syscall.c
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index c261b4adb62e2ce62f54f97979b90a84a2a20922..dfe310157962a7772ca16b2c7e0054d5c7971582 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-1021,6
+1021,7
@@
else
AC_MSG_RESULT(Using Linux xattrs)
AC_DEFINE(HAVE_LINUX_XATTRS, 1, [True if you have Linux xattrs])
AC_DEFINE(SUPPORT_XATTRS, 1)
AC_MSG_RESULT(Using Linux xattrs)
AC_DEFINE(HAVE_LINUX_XATTRS, 1, [True if you have Linux xattrs])
AC_DEFINE(SUPPORT_XATTRS, 1)
+ AC_DEFINE(NO_SYMLINK_USER_XATTRS, 1, [True if symlinks do not support user xattrs])
;;
darwin*)
AC_MSG_RESULT(Using OS X xattrs)
;;
darwin*)
AC_MSG_RESULT(Using OS X xattrs)
diff --git
a/syscall.c
b/syscall.c
index 1ed36f3c2752df80250f077ecf0d03ce8a1a4a16..eab25a552a4f9cc86dbef4f6c54b90c58397d336 100644
(file)
--- 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;
if (dry_run) return 0;
RETURN_ERROR_IF_RO_OR_LO;
-#if
def 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) {
/* For --fake-super, we create a normal file with mode 0600
* and write the lnk into it. */
if (am_root < 0) {