mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
Sorry Jim we can't assign to global_xxx(), we need to call set_global_xxx()
to ensure the malloc is done.
Jeremy.
(This used to be commit e57853000a
)
This commit is contained in:
parent
c8d96f887d
commit
2bd37f8565
@ -761,7 +761,7 @@ static void parse_mount_smb(int argc, char **argv)
|
|||||||
} else if(!strcmp(opts, "sockopt")) {
|
} else if(!strcmp(opts, "sockopt")) {
|
||||||
pstrcpy(user_socket_options,opteq+1);
|
pstrcpy(user_socket_options,opteq+1);
|
||||||
} else if(!strcmp(opts, "scope")) {
|
} else if(!strcmp(opts, "scope")) {
|
||||||
pstrcpy(global_scope(),opteq+1);
|
set_global_scope(opteq+1);
|
||||||
} else {
|
} else {
|
||||||
slprintf(p, sizeof(pstring) - (p - options) - 1, "%s=%s,", opts, opteq+1);
|
slprintf(p, sizeof(pstring) - (p - options) - 1, "%s=%s,", opts, opteq+1);
|
||||||
p += strlen(p);
|
p += strlen(p);
|
||||||
|
Loading…
Reference in New Issue
Block a user