From 1d642039547dfca8edcee69998d9b61655668bcb Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 16 Mar 2005 06:18:20 +0000 Subject: r5827: Make ndrdump accept a uuid as well as a pipe name to specify which rpc interface to use. (This used to be commit d59bc9dc9bb3a11dd07b7862ea10d1b32e670598) --- source4/utils/ndrdump.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'source4') diff --git a/source4/utils/ndrdump.c b/source4/utils/ndrdump.c index 48b1a3ef61..bcfbb45e60 100644 --- a/source4/utils/ndrdump.c +++ b/source4/utils/ndrdump.c @@ -127,7 +127,8 @@ static char *stdin_load(TALLOC_CTX *mem_ctx, size_t *size) pc = poptGetContext("ndrdump", argc, argv, long_options, 0); - poptSetOtherOptionHelp(pc, " []"); + poptSetOtherOptionHelp( + pc, " []"); while ((opt = poptGetNextOpt(pc)) != -1) { } @@ -143,8 +144,13 @@ static char *stdin_load(TALLOC_CTX *mem_ctx, size_t *size) p = idl_iface_by_name(pipe_name); if (!p) { - printf("Unknown pipe '%s'\n", pipe_name); - exit(1); + + p = idl_iface_by_uuid(pipe_name); + + if (!p) { + printf("Unknown pipe or UUID '%s'\n", pipe_name); + exit(1); + } } function = poptGetArg(pc); -- cgit