[SCM] Samba Shared Repository - branch v3-4-test updated - release-4-0-0alpha7-635-gdd49587

Michael Adam obnox at samba.org
Wed Apr 1 22:34:50 GMT 2009


The branch, v3-4-test has been updated
       via  dd495878d764c3836784adcd739f78ca03d27d58 (commit)
      from  e67f9c77ce812b40a8e003d861bff64c6c6442fd (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-test


- Log -----------------------------------------------------------------
commit dd495878d764c3836784adcd739f78ca03d27d58
Author: Michael Adam <obnox at samba.org>
Date:   Thu Apr 2 00:23:31 2009 +0200

    s3:net conf: don't store share names as lower case, but as given.
    
    Michael
    (cherry picked from commit 36c1a52a57bc96c7586ca1bffbe8ef47c93bca1b)

-----------------------------------------------------------------------

Summary of changes:
 source3/utils/net_conf.c |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c
index 38a2553..b65202e 100644
--- a/source3/utils/net_conf.c
+++ b/source3/utils/net_conf.c
@@ -300,7 +300,7 @@ static int net_conf_import(struct net_context *c, struct smbconf_ctx *conf_ctx,
 			net_conf_import_usage(c, argc, argv);
 			goto done;
 		case 2:
-			servicename = talloc_strdup_lower(mem_ctx, argv[1]);
+			servicename = talloc_strdup(mem_ctx, argv[1]);
 			if (servicename == NULL) {
 				d_printf("error: out of memory!\n");
 				goto done;
@@ -501,7 +501,7 @@ static int net_conf_showshare(struct net_context *c,
 		goto done;
 	}
 
-	sharename = talloc_strdup_lower(mem_ctx, argv[0]);
+	sharename = talloc_strdup(mem_ctx, argv[0]);
 	if (sharename == NULL) {
 		d_printf("error: out of memory!\n");
 		goto done;
@@ -514,7 +514,7 @@ static int net_conf_showshare(struct net_context *c,
 		goto done;
 	}
 
-	d_printf("[%s]\n", sharename);
+	d_printf("[%s]\n", service->name);
 
 	for (count = 0; count < service->num_params; count++) {
 		d_printf("\t%s = %s\n", service->param_names[count],
@@ -600,7 +600,7 @@ static int net_conf_addshare(struct net_context *c,
 			}
 		case 2:
 			path = argv[1];
-			sharename = talloc_strdup_lower(mem_ctx, argv[0]);
+			sharename = talloc_strdup(mem_ctx, argv[0]);
 			if (sharename == NULL) {
 				d_printf("error: out of memory!\n");
 				goto done;
@@ -728,7 +728,7 @@ static int net_conf_delshare(struct net_context *c,
 		net_conf_delshare_usage(c, argc, argv);
 		goto done;
 	}
-	sharename = talloc_strdup_lower(mem_ctx, argv[0]);
+	sharename = talloc_strdup(mem_ctx, argv[0]);
 	if (sharename == NULL) {
 		d_printf("error: out of memory!\n");
 		goto done;
@@ -761,7 +761,7 @@ static int net_conf_setparm(struct net_context *c, struct smbconf_ctx *conf_ctx,
 		net_conf_setparm_usage(c, argc, argv);
 		goto done;
 	}
-	service = talloc_strdup_lower(mem_ctx, argv[0]);
+	service = talloc_strdup(mem_ctx, argv[0]);
 	if (service == NULL) {
 		d_printf("error: out of memory!\n");
 		goto done;
@@ -813,7 +813,7 @@ static int net_conf_getparm(struct net_context *c, struct smbconf_ctx *conf_ctx,
 		net_conf_getparm_usage(c, argc, argv);
 		goto done;
 	}
-	service = talloc_strdup_lower(mem_ctx, argv[0]);
+	service = talloc_strdup(mem_ctx, argv[0]);
 	if (service == NULL) {
 		d_printf("error: out of memory!\n");
 		goto done;
@@ -863,7 +863,7 @@ static int net_conf_delparm(struct net_context *c, struct smbconf_ctx *conf_ctx,
 		net_conf_delparm_usage(c, argc, argv);
 		goto done;
 	}
-	service = talloc_strdup_lower(mem_ctx, argv[0]);
+	service = talloc_strdup(mem_ctx, argv[0]);
 	if (service == NULL) {
 		d_printf("error: out of memory!\n");
 		goto done;
@@ -916,7 +916,7 @@ static int net_conf_getincludes(struct net_context *c,
 		goto done;
 	}
 
-	service = talloc_strdup_lower(mem_ctx, argv[0]);
+	service = talloc_strdup(mem_ctx, argv[0]);
 	if (service == NULL) {
 		d_printf("error: out of memory!\n");
 		goto done;
@@ -956,7 +956,7 @@ static int net_conf_setincludes(struct net_context *c,
 		goto done;
 	}
 
-	service = talloc_strdup_lower(mem_ctx, argv[0]);
+	service = talloc_strdup(mem_ctx, argv[0]);
 	if (service == NULL) {
 		d_printf("error: out of memory!\n");
 		goto done;
@@ -996,7 +996,7 @@ static int net_conf_delincludes(struct net_context *c,
 		goto done;
 	}
 
-	service = talloc_strdup_lower(mem_ctx, argv[0]);
+	service = talloc_strdup(mem_ctx, argv[0]);
 	if (service == NULL) {
 		d_printf("error: out of memory!\n");
 		goto done;


-- 
Samba Shared Repository


More information about the samba-cvs mailing list