r23009: Both contains a strchr_m(server,'/') few lines after replacing all / with \.
authorJames Peach <jpeach@samba.org>
Sat, 19 May 2007 04:23:04 +0000 (04:23 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:22:14 +0000 (12:22 -0500)
This patch removes this dead code.

Patch from Pascal Terjan <pterjan@mandriva.com> for bug #2313.
(This used to be commit 04b84baef344206d97776e04a25f4bd214eea28f)

source3/utils/smbcacls.c
source3/utils/smbcquotas.c

index 67de8c73355a4ccbaf33e66ab85c8fc5bcdcbf9e..5717df2dfaf773c5ad5f72c19cabeea0311e05f6 100644 (file)
@@ -902,11 +902,8 @@ static struct cli_state *connect_one(const char *share)
        fstrcpy(server,path+2);
        share = strchr_m(server,'\\');
        if (!share) {
-               share = strchr_m(server,'/');
-               if (!share) {
-                       printf("Invalid argument: %s\n", share);
-                       return -1;
-               }
+               printf("Invalid argument: %s\n", share);
+               return -1;
        }
 
        *share = 0;
index 40f4a86f96b6e44a3a56987f5d900081110cbe4a..ae2e6a5956f48c678c576d659995f0e8f72bd45e 100644 (file)
@@ -500,11 +500,8 @@ FSQFLAGS:QUOTA_ENABLED/DENY_DISK/LOG_SOFTLIMIT/LOG_HARD_LIMIT", "SETSTRING" },
        pstrcpy(server,path+2);
        share = strchr_m(server,'\\');
        if (!share) {
-               share = strchr_m(server,'/');
-               if (!share) {
-                       printf("Invalid argument: %s\n", share);
-                       exit(EXIT_PARSE_ERROR);
-               }
+               printf("Invalid argument: %s\n", share);
+               exit(EXIT_PARSE_ERROR);
        }
 
        *share = 0;