[PATCH] net.c: fix a bug of -n
Peng Haitao
penght at cn.fujitsu.com
Tue Aug 6 19:21:37 MDT 2013
'myname' should be replaced with 'netbiosname' according to manpage.
Signed-off-by: Peng Haitao <penght at cn.fujitsu.com>
---
source3/utils/net.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source3/utils/net.c b/source3/utils/net.c
index 3473641..b0fb287 100644
--- a/source3/utils/net.c
+++ b/source3/utils/net.c
@@ -779,7 +779,7 @@ static struct functable net_func[] = {
{"user", 'U', POPT_ARG_STRING, &c->opt_user_name, 'U'},
{"ipaddress", 'I', POPT_ARG_STRING, 0,'I'},
{"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},
--
1.8.3.1
More information about the samba-technical
mailing list