summaryrefslogtreecommitdiff
path: root/source4/utils
diff options
context:
space:
mode:
Diffstat (limited to 'source4/utils')
-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);