[PATCH] rpcclient man page

Neil Hoggarth neil.hoggarth at physiol.ox.ac.uk
Wed Oct 31 08:23:07 GMT 2001


On Wed, 31 Oct 2001, Gerald (Jerry) Carter wrote:

> So smbclient should suffer from the same behavior.  Does it?

Nope, but they are coded differently; smbclient looks for service name
and password first, and meddles with argc and argv if it finds them
before it calls getopt(). getopt() only sees the arguments after the
service name (and password, if present). See source/client/client.c,
around line 2400.

rpcclient launches into getopt() processing as one of the first things
that it does, then inteprets the first of any remaining arguments left
over as a server name.

Regards,
-- 
Neil Hoggarth                                 Departmental Computer Officer
<neil.hoggarth at physiol.ox.ac.uk>                   Laboratory of Physiology
http://www.physiol.ox.ac.uk/~njh/                  University of Oxford, UK





More information about the samba-technical mailing list