Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86700
b: refs/heads/master
c: c2d68ea
h: refs/heads/master
v: v3
  • Loading branch information
Steve French committed Feb 15, 2008
1 parent aa9eaf7 commit 78b2835
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 11b6d6450c10066e83e19f6ff57d55678c3e9f13
refs/heads/master: c2d68ea65b0f668783c88e1f4f22738b24f3edea
8 changes: 7 additions & 1 deletion trunk/fs/cifs/connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -1802,12 +1802,18 @@ static void
convert_delimiter(char *path, char delim)
{
int i;
char old_delim;

if (path == NULL)
return;

if (delim == '/')
old_delim = '\\';
else
old_delim = '/';

for (i = 0; path[i] != '\0'; i++) {
if ((path[i] == '/') || (path[i] == '\\'))
if (path[i] == old_delim)
path[i] = delim;
}
}
Expand Down

0 comments on commit 78b2835

Please sign in to comment.