svn commit: samba r5827 - in branches/SAMBA_4_0/source/utils: .
tpot at samba.org
tpot at samba.org
Wed Mar 16 06:18:20 GMT 2005
Author: tpot
Date: 2005-03-16 06:18:20 +0000 (Wed, 16 Mar 2005)
New Revision: 5827
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5827
Log:
Make ndrdump accept a uuid as well as a pipe name to specify
which rpc interface to use.
Modified:
branches/SAMBA_4_0/source/utils/ndrdump.c
Changeset:
Modified: branches/SAMBA_4_0/source/utils/ndrdump.c
===================================================================
--- branches/SAMBA_4_0/source/utils/ndrdump.c 2005-03-16 02:49:33 UTC (rev 5826)
+++ branches/SAMBA_4_0/source/utils/ndrdump.c 2005-03-16 06:18:20 UTC (rev 5827)
@@ -127,7 +127,8 @@
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 @@
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);
More information about the samba-cvs
mailing list