1
0
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:
Jeremy Allison 2002-11-13 02:21:55 +00:00
parent c8d96f887d
commit 2bd37f8565

View File

@ -761,7 +761,7 @@ static void parse_mount_smb(int argc, char **argv)
} else if(!strcmp(opts, "sockopt")) {
pstrcpy(user_socket_options,opteq+1);
} else if(!strcmp(opts, "scope")) {
pstrcpy(global_scope(),opteq+1);
set_global_scope(opteq+1);
} else {
slprintf(p, sizeof(pstring) - (p - options) - 1, "%s=%s,", opts, opteq+1);
p += strlen(p);