}
sid_copy(sid, &sids[0]);
-
done:
return result;
{
struct cli_state *c;
struct in_addr ip;
+ NTSTATUS nt_status;
zero_ip(&ip);
if (!got_pass) {
}
}
- if (NT_STATUS_IS_OK(cli_full_connection(&c, global_myname, server,
- &ip, 0,
- share, "?????",
- username, global_myworkgroup,
- password, 0))) {
+ if (NT_STATUS_IS_OK(nt_status = cli_full_connection(&c, global_myname, server,
+ &ip, 0,
+ share, "?????",
+ username, global_myworkgroup,
+ password, 0))) {
return c;
} else {
+ DEBUG(0,("cli_full_connection failed! (%s)\n", nt_errstr(nt_status)));
return NULL;
}
}
argc -= optind;
argv += optind;
-
+
if (argc > 0) {
usage();
talloc_destroy(ctx);
fstrcpy(server,share+2);
share = strchr_m(server,'\\');
- if (!share) return -1;
+ if (!share) {
+ share = strchr_m(server,'/');
+ if (!share) {
+ return -1;
+ }
+ }
+
*share = 0;
share++;