Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
{NULL, NULL, 0, NULL, NULL}
};
+ if (!sessionid_init()) {
+ d_printf("failed to open sessionid.tdb\n");
+ return -1;
+ };
+
return net_run_function(c, argc, argv, "net serverid", func);
}
},
{NULL, NULL, 0, NULL, NULL}
};
+
+ if (!sessionid_init()) {
+ d_printf("failed to open sessionid.tdb\n");
+ return -1;
+ }
+
return net_run_function(c, argc, argv, "net status", func);
}
}
+ if (!sessionid_init()) {
+ fprintf(stderr, "Can't open sessionid.tdb\n");
+ ret = -1;
+ goto done;
+ }
+
if (lp_clustering()) {
/*
* This implicitly initializes the global ctdbd