Sorry Jim we can't assign to global_xxx(), we need to call set_global_xxx()
authorJeremy Allison <jra@samba.org>
Wed, 13 Nov 2002 02:22:39 +0000 (02:22 +0000)
committerJeremy Allison <jra@samba.org>
Wed, 13 Nov 2002 02:22:39 +0000 (02:22 +0000)
to ensure the malloc is done.
Jeremy.

source/client/smbmount.c

index d8f5e1b394f2e20911d4bccd96464beb6e250402..33adfc4d488f92575d0cd2369751c8b0cf698401 100644 (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);