summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2007-05-19 04:23:04 +0000
committerJames Peach <jpeach@samba.org>2007-05-19 04:23:04 +0000
commit914ea196c0457315e65c0a13a015a6863fce406b (patch)
tree869e3ff86f21ba9122561d9acd39f71b3ca930e5 /source
parent5d60ba1db707841742d14ae1cb2d5c94d3d3f3a3 (diff)
downloadsamba-914ea196c0457315e65c0a13a015a6863fce406b.tar.gz
samba-914ea196c0457315e65c0a13a015a6863fce406b.tar.xz
samba-914ea196c0457315e65c0a13a015a6863fce406b.zip
r23009: Both contains a strchr_m(server,'/') few lines after replacing all / with \.
This patch removes this dead code. Patch from Pascal Terjan <pterjan@mandriva.com> for bug #2313.
Diffstat (limited to 'source')
-rw-r--r--source/utils/smbcacls.c7
-rw-r--r--source/utils/smbcquotas.c7
2 files changed, 4 insertions, 10 deletions
diff --git a/source/utils/smbcacls.c b/source/utils/smbcacls.c
index 82cae037207..f5c93ca5e41 100644
--- a/source/utils/smbcacls.c
+++ b/source/utils/smbcacls.c
@@ -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;
diff --git a/source/utils/smbcquotas.c b/source/utils/smbcquotas.c
index 40f4a86f96b..ae2e6a5956f 100644
--- a/source/utils/smbcquotas.c
+++ b/source/utils/smbcquotas.c
@@ -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;