mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
make sure we give the chosen workgroup in gentest
(This used to be commit b8aa4a9a8f53d5307105424d90895dffefdc5e64)
This commit is contained in:
parent
a027153046
commit
9665caf832
@ -175,7 +175,7 @@ static BOOL connect_servers(void)
|
||||
"gentest",
|
||||
servers[i].server_name, NULL,
|
||||
servers[i].share_name, "?????",
|
||||
servers[i].username, "",
|
||||
servers[i].username, lp_workgroup(),
|
||||
servers[i].password, 0, NULL);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
printf("Failed to connect to \\\\%s\\%s - %s\n",
|
||||
@ -989,7 +989,11 @@ again:
|
||||
} while(0)
|
||||
|
||||
#define CHECK_WSTR_EQUAL(field) do { \
|
||||
if (strcmp(parm[0].field.s, parm[1].field.s) != 0 && !ignore_pattern(#field)) { \
|
||||
if ((!parm[0].field.s && parm[1].field.s) || (parm[0].field.s && !parm[1].field.s)) { \
|
||||
printf("%s is NULL!\n", #field); \
|
||||
return False; \
|
||||
} \
|
||||
if (parm[0].field.s && strcmp(parm[0].field.s, parm[1].field.s) != 0 && !ignore_pattern(#field)) { \
|
||||
printf("Mismatch in %s - %s %s\n", #field, \
|
||||
parm[0].field.s, parm[1].field.s); \
|
||||
return False; \
|
||||
|
Loading…
x
Reference in New Issue
Block a user