[PATCH] net.c: fix a bug of -n
Peng Haitao
penght at cn.fujitsu.com
Tue Aug 6 20:15:38 MDT 2013
On 08/07/2013 10:01 AM, Jelmer Vernooij wrote:
>> {"port", 'p', POPT_ARG_INT, &c->opt_port},
>> - {"myname", 'n', POPT_ARG_STRING, &c->opt_requester_name},
>> + {"netbiosname", 'n', POPT_ARG_STRING, &c->opt_requester_name},
>> {"server", 'S', POPT_ARG_STRING, &c->opt_host},
>> {"encrypt", 'e', POPT_ARG_NONE, NULL, 'e', N_("Encrypt SMB transport (UNIX extended servers only)") },
>> {"container", 'c', POPT_ARG_STRING, &c->opt_container},
> Thanks for the patches.
>
> I also think we should fix the docs in this case; they were probably
> just copied over from the manpage for another utility.
>
> If we want to rename this argument (it would be good for consistency)
> then it should happen in a backwards-compatible manner that won't
> break existing users of the current argument name.
>
Because other commands use "--netbiosname" as long argument of "-n".
$ smbclient --help | grep netbiosname
-n, --netbiosname=NETBIOSNAME Primary netbios name
$ smbcacls --help | grep netbiosname
-n, --netbiosname=NETBIOSNAME Primary netbios name
I think net should correspond with other commands.
Thanks.
--
Best Regards,
Peng
> Cheers,
>
> Jelmer
>
More information about the samba-technical
mailing list