fixed the -U option in nmblookup
authorAndrew Tridgell <tridge@samba.org>
Sat, 29 Mar 2003 23:55:54 +0000 (23:55 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sat, 29 Mar 2003 23:55:54 +0000 (23:55 +0000)
please remember to *test* your changes before committing them. This is
especially the case when you receive patches from outside the team -
before you commit you must make sure that the patch actually works.

source/utils/nmblookup.c

index 31c7967a07620ed6a213aa7ea743a473b49bdc19..d4d43796a044c95c4731bfe9fe1d8414a8190611 100644 (file)
@@ -195,7 +195,7 @@ int main(int argc,char *argv[])
          POPT_AUTOHELP
          { "broadcast", 'b', POPT_ARG_STRING, NULL, 'B', "Specify address to use for broadcasts", "BROADCAST-ADDRESS" },
          { "flags", 'f', POPT_ARG_VAL, &give_flags, True, "List the NMB flags returned" },
-         { "unicast", 'U', POPT_ARG_NONE, NULL, 'U', "Specify address to use for unicast" },
+         { "unicast", 'U', POPT_ARG_STRING, NULL, 'U', "Specify address to use for unicast" },
          { "master-browser", 'M', POPT_ARG_VAL, &find_master, True, "Search for a master browser" },
          { "recursion", 'R', POPT_ARG_VAL, &recursion_desired, True, "Set recursion desired in package" },
          { "status", 'S', POPT_ARG_VAL, &find_status, True, "Lookup node status as well" },