The Samba-Bugzilla – Attachment 10435 Details for
Bug 8856
--hard-links does not handle hard-linked symlinks correctly on FreeBSD
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
configure.ac patch
file_8856.txt (text/plain), 832 bytes, created by
sylvain
on 2014-11-17 10:33:06 UTC
(
hide
)
Description:
configure.ac patch
Filename:
MIME Type:
Creator:
sylvain
Created:
2014-11-17 10:33:06 UTC
Size:
832 bytes
patch
obsolete
>--- configure.ac.orig 2014-06-22 16:50:03 UTC >+++ configure.ac >@@ -696,6 +696,14 @@ fi > > AC_CACHE_CHECK([whether link() can hard-link symlinks],rsync_cv_can_hardlink_symlink,[ > AC_TRY_RUN([ >+#ifdef HAVE_FCNTL_H >+#include <fcntl.h> >+#else >+#ifdef HAVE_SYS_FCNTL_H >+#include <sys/fcntl.h> >+#endif >+#endif >+ > #if HAVE_UNISTD_H > # include <unistd.h> > #endif >@@ -706,7 +714,7 @@ AC_CACHE_CHECK([whether link() can hard- > unlink(FILENAME); > if (symlink("conftest.no-such", FILENAME) < 0) abort(); > unlink(FILENAME "2"); >- if (link(FILENAME, FILENAME "2") < 0) exit(1); >+ if (linkat(AT_FDCWD, FILENAME, AT_FDCWD, FILENAME "2", 0) < 0) exit(1); > exit(0); > }], > rsync_cv_can_hardlink_symlink=yes,rsync_cv_can_hardlink_symlink=no,rsync_cv_can_hardlink_symlink=no)])
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 8856
: 10435 |
10436