svn commit: samba r12375 - in trunk/source/utils: .

jra at samba.org jra at samba.org
Mon Dec 19 22:58:17 GMT 2005


Author: jra
Date: 2005-12-19 22:58:17 +0000 (Mon, 19 Dec 2005)
New Revision: 12375

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12375

Log:
Fix up comment and help usage.
Jeremy.

Modified:
   trunk/source/utils/net_usershare.c
   trunk/source/utils/netlookup.c


Changeset:
Modified: trunk/source/utils/net_usershare.c
===================================================================
--- trunk/source/utils/net_usershare.c	2005-12-19 22:56:31 UTC (rev 12374)
+++ trunk/source/utils/net_usershare.c	2005-12-19 22:58:17 UTC (rev 12375)
@@ -27,10 +27,8 @@
 {
 	char c = *lp_winbind_separator();
 	d_printf(
-		"net usershare add [-Uusername%%password|-k] <sharename> <path> [<comment>] [<acl>]\n"
+		"net usershare add <sharename> <path> [<comment>] [<acl>]\n"
 		"\tAdds the specified share name for this user.\n"
-		"\tusername and password are credentials to use to query a server in looking up names\n"
-		"\t-k specifies use kerberos authentication\n"
 		"\t<sharename> is the new share name.\n"
 		"\t<path> is the path on the filesystem to export.\n"
 		"\t<comment> is the optional comment for the new share.\n"
@@ -55,12 +53,10 @@
 static int net_usershare_info_usage(int argc, const char **argv)
 {
 	d_printf(
-		"net usershare info [-l|--long] [-Uusername%%password|-k] [wildcard sharename]\n"\
+		"net usershare info [-l|--long] [wildcard sharename]\n"\
 		"\tPrints out the path, comment and acl elements of shares that match the wildcard.\n"
 		"\tBy default only gives info on shares owned by the current user\n"
 		"\tAdd -l or --long to apply this to all shares\n"
-		"\tusername and password are credentials to use to query a server in looking up names\n"
-		"\t-k specifies use kerberos authentication\n"
 		"\tOmit the sharename or use a wildcard of '*' to see all shares\n");
 	return -1;
 }
@@ -78,9 +74,9 @@
 
 int net_usershare_usage(int argc, const char **argv)
 {
-	d_printf("net usershare add [-Uusername%%password|-k] <sharename> <path> [<comment>] [<acl>] to add or change a user defined share.\n"
+	d_printf("net usershare add <sharename> <path> [<comment>] [<acl>] to add or change a user defined share.\n"
 		"net usershare delete <sharename> to delete a user defined share.\n"
-		"net usershare info [-l|--long] [-Uusername%%pasword|-k] [wildcard sharename] to print info about a user defined share.\n"
+		"net usershare info [-l|--long] [wildcard sharename] to print info about a user defined share.\n"
 		"net usershare list [-l|--long] [wildcard sharename] to list user defined shares.\n"
 		"net usershare help\n"\
 		"\nType \"net usershare help <option>\" to get more information on that option\n\n");

Modified: trunk/source/utils/netlookup.c
===================================================================
--- trunk/source/utils/netlookup.c	2005-12-19 22:56:31 UTC (rev 12374)
+++ trunk/source/utils/netlookup.c	2005-12-19 22:58:17 UTC (rev 12375)
@@ -74,6 +74,7 @@
 	talloc_set_destructor(cs, cs_destructor);
 
 	/* Connect to localhost with given username/password. */
+	/* JRA. Pretty sure we can just do this anonymously.... */
 #if 0
 	if (!opt_password && !opt_machine_pass) {
 		char *pass = getpass("Password:");



More information about the samba-cvs mailing list