summaryrefslogtreecommitdiff
path: root/source4/utils/ndrdump.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-03-16 06:18:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:11:04 -0500
commit1d642039547dfca8edcee69998d9b61655668bcb (patch)
tree946f162fa60c24e07858517db72dc6d8d112ec62 /source4/utils/ndrdump.c
parent55546176c62ef53c1c5157e765993afadf4bc79d (diff)
downloadsamba-1d642039547dfca8edcee69998d9b61655668bcb.tar.gz
samba-1d642039547dfca8edcee69998d9b61655668bcb.tar.bz2
samba-1d642039547dfca8edcee69998d9b61655668bcb.zip
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)
Diffstat (limited to 'source4/utils/ndrdump.c')
-rw-r--r--source4/utils/ndrdump.c12
1 files changed, 9 insertions, 3 deletions
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, "<pipe> <function> <inout> [<filename>]");
+ poptSetOtherOptionHelp(
+ pc, "<pipe|uuid> <function> <inout> [<filename>]");
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);