1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

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.
This commit is contained in:
James Peach 2007-05-19 04:23:04 +00:00 committed by Gerald (Jerry) Carter
parent 5d465dd2d5
commit 04b84baef3
2 changed files with 4 additions and 10 deletions

View 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;

View 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;