Univention Bugzilla – Attachment 7109 Details for
Bug 39079
Sysprep joins fail on Samba >= 4.2.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
reproduce.c
reproduce.c (text/plain), 1.02 KB, created by
Arvid Requate
on 2015-08-14 11:38 CEST
(
hide
)
Description:
reproduce.c
Filename:
MIME Type:
Creator:
Arvid Requate
Created:
2015-08-14 11:38 CEST
Size:
1.02 KB
patch
obsolete
>#include <talloc.h> > >main () { > const char *dc_name = NULL; > char *dc_unc = NULL; > TALLOC_CTX *mem_ctx = NULL; > mem_ctx = talloc_new(NULL); > > dc_name = "mydc.foobar.local"; > > printf("Wrong: "); > dc_unc = talloc_asprintf(mem_ctx, "%s%s", > dc_name[0] == '\\'? "\\\\":"", > talloc_strdup(mem_ctx, dc_name)); > > printf("dc_name: %s\t=> ", dc_name); > printf("dc_unc: %s\n", dc_unc); > > printf("Right: "); > dc_unc = talloc_asprintf(mem_ctx, "%s%s", > dc_name[0] != '\\'? "\\\\":"", > talloc_strdup(mem_ctx, dc_name)); > > printf("dc_name: %s\t=> ", dc_name); > printf("dc_unc: %s\n", dc_unc); > > dc_name = "\\\\mydc.foobar.local"; > > printf("Wrong: "); > dc_unc = talloc_asprintf(mem_ctx, "%s%s", > dc_name[0] == '\\'? "\\\\":"", > talloc_strdup(mem_ctx, dc_name)); > > printf("dc_name: %s\t=> ", dc_name); > printf("dc_unc: %s\n", dc_unc); > > printf("Right: "); > dc_unc = talloc_asprintf(mem_ctx, "%s%s", > dc_name[0] != '\\'? "\\\\":"", > talloc_strdup(mem_ctx, dc_name)); > > printf("dc_name: %s\t=> ", dc_name); > printf("dc_unc: %s\n", dc_unc); > > talloc_free(mem_ctx); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 39079
: 7109