The Samba-Bugzilla – Attachment 16471 Details for
Bug 14503
s3 configure script fails to detect fcntl hint support for linux
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
backported fix for 4.13
0001-s3-fix-fcntl-waf-configure-check.patch (text/plain), 1.58 KB, created by
Björn Jacke
on 2021-02-25 19:12:56 UTC
(
hide
)
Description:
backported fix for 4.13
Filename:
MIME Type:
Creator:
Björn Jacke
Created:
2021-02-25 19:12:56 UTC
Size:
1.58 KB
patch
obsolete
>From 48b62e5851b2f1f88563239bf9684154bdcf051a Mon Sep 17 00:00:00 2001 >From: Ralph Boehme <slow@samba.org> >Date: Mon, 21 Sep 2020 07:48:43 +0200 >Subject: [PATCH] s3: fix fcntl waf configure check > >RN: Fix fcntl waf configure check >BUG: https://bugzilla.samba.org/show_bug.cgi?id=14503 > >Signed-off-by: Ralph Boehme <slow@samba.org> >Reviewed-by: Volker Lendecke <vl@samba.org> > >Autobuild-User(master): Volker Lendecke <vl@samba.org> >Autobuild-Date(master): Mon Sep 21 07:26:54 UTC 2020 on sn-devel-184 > >(cherry picked from commit 454ccd986b61799908a6898a55d0480911f15306) >--- > source3/wscript | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > >diff --git a/source3/wscript b/source3/wscript >index 41952cbd63f..e964dd2e74c 100644 >--- a/source3/wscript >+++ b/source3/wscript >@@ -1244,7 +1244,7 @@ err: > > int main(void) > { >- uint64_t *hint, get_hint; >+ uint64_t hint, get_hint; > int fd; > > fd = open(DATA, O_RDONLY | O_CREAT | O_EXCL); >@@ -1252,8 +1252,8 @@ int main(void) > goto err; > } > >- *hint = RWH_WRITE_LIFE_SHORT; >- int ret = fcntl(fd, F_SET_RW_HINT, hint); >+ hint = RWH_WRITE_LIFE_SHORT; >+ int ret = fcntl(fd, F_SET_RW_HINT, &hint); > if (ret == -1) { > goto err; > } >@@ -1267,8 +1267,8 @@ int main(void) > goto err; > } > >- *hint = RWH_WRITE_LIFE_EXTREME; >- ret = fcntl(fd, F_SET_FILE_RW_HINT, hint); >+ hint = RWH_WRITE_LIFE_EXTREME; >+ ret = fcntl(fd, F_SET_FILE_RW_HINT, &hint); > if (ret == -1) { > goto err; > } >-- >2.20.2 >
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
Flags:
bjacke
:
review+
Actions:
View
Attachments on
bug 14503
: 16471