{
struct server_id myid;
- myid = procid_self();
+ myid = messaging_server_id(msg_ctx);
if (argc != 1) {
fprintf(stderr, "Usage: smbcontrol winbindd onlinestatus\n");
{
struct server_id myid;
- myid = procid_self();
+ myid = messaging_server_id(msg_ctx);
if (argc != 1) {
fprintf(stderr, "Usage: smbcontrol <dest> dump-event-list\n");
uint8_t *buf = NULL;
int buf_len = 0;
- myid = procid_self();
+ myid = messaging_server_id(msg_ctx);
if (argc < 1 || argc > 2) {
fprintf(stderr, "Usage: smbcontrol <dest> dump_domain_list "
const struct server_id pid,
const int argc, const char **argv)
{
- struct server_id myid = procid_self();
+ struct server_id myid;
+
+ myid = messaging_server_id(msg_ctx);
if (argc != 1) {
fprintf(stderr, "Usage: smbcontrol winbindd validate-cache\n");
/* Return the pid number for a string destination */
-static struct server_id parse_dest(const char *dest)
+static struct server_id parse_dest(struct messaging_context *msg,
+ const char *dest)
{
struct server_id result = {-1};
pid_t pid;
/* Try self - useful for testing */
if (strequal(dest, "self")) {
- return procid_self();
+ return messaging_server_id(msg);
}
/* Fix winbind typo. */
/* Check destination */
- pid = parse_dest(dest);
+ pid = parse_dest(msg_ctx, dest);
if (!procid_valid(&pid)) {
return False;
}