diff options
author | Jeremy Allison <jra@samba.org> | 2002-11-13 02:22:39 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-11-13 02:22:39 +0000 |
commit | 57f7ab45b783f64a3f3337a893ba3ddef953c133 (patch) | |
tree | a659773220c8125563cd4ed5ef7232fba802418d /source/client/smbmount.c | |
parent | 79a0f2c2519b0503a8323fd0babfd18ec59b8d5e (diff) | |
download | samba-57f7ab45b783f64a3f3337a893ba3ddef953c133.tar.gz samba-57f7ab45b783f64a3f3337a893ba3ddef953c133.tar.xz samba-57f7ab45b783f64a3f3337a893ba3ddef953c133.zip |
Sorry Jim we can't assign to global_xxx(), we need to call set_global_xxx()
to ensure the malloc is done.
Jeremy.
Diffstat (limited to 'source/client/smbmount.c')
-rw-r--r-- | source/client/smbmount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/client/smbmount.c b/source/client/smbmount.c index d8f5e1b394f..33adfc4d488 100644 --- a/source/client/smbmount.c +++ b/source/client/smbmount.c @@ -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); |