The Samba-Bugzilla – Attachment 15816 Details for
Bug 14292
OmniOS is missing fmemopen() - fix i source4/utils/oLschema2ldif/test.c
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Add a fmemopen() workaround
fmemopen.patch (text/plain), 703 bytes, created by
Peter Eriksson
on 2020-02-21 22:05:33 UTC
(
hide
)
Description:
Add a fmemopen() workaround
Filename:
MIME Type:
Creator:
Peter Eriksson
Created:
2020-02-21 22:05:33 UTC
Size:
703 bytes
patch
obsolete
># No fmemopen() in OmniOS. Implement a hack that emulates it... >diff -u -r samba-4.12.0rc1/source4/utils/oLschema2ldif/test.c samba-4.12.0rc1-liu/source4/utils/oLschema2ldif/test.c >--- samba-4.12.0rc1/source4/utils/oLschema2ldif/test.c tis jan. 21 15:10:42 2020 >+++ samba-4.12.0rc1-liu/source4/utils/oLschema2ldif/test.c tors jan. 23 21:41:20 2020 >@@ -51,6 +51,17 @@ > return 0; > } > >+static FILE *fmemopen(const char *data, size_t len, const char *mode) { >+ FILE *fp = tmpfile(); >+ if (!fp) >+ return NULL; >+ >+ fwrite(data, 1, len, fp); >+ fflush(fp); >+ rewind(fp); >+ return fp; >+} >+ > static struct schema_conv process_data_blob(void **state, DATA_BLOB input) > { > struct test_ctx *test_ctx =
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 14292
: 15816