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:
parent
5d465dd2d5
commit
04b84baef3
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user