From e61f235796ff2da34fb207f48e2bba832c30740b Mon Sep 17 00:00:00 2001 From: James Peach Date: Sat, 19 May 2007 04:23:04 +0000 Subject: r23009: Both contains a strchr_m(server,'/') few lines after replacing all / with \. This patch removes this dead code. Patch from Pascal Terjan for bug #2313. (This used to be commit 04b84baef344206d97776e04a25f4bd214eea28f) --- source3/utils/smbcquotas.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'source3/utils/smbcquotas.c') diff --git a/source3/utils/smbcquotas.c b/source3/utils/smbcquotas.c index 40f4a86f96..ae2e6a5956 100644 --- a/source3/utils/smbcquotas.c +++ b/source3/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; -- cgit