From 78b28354e225e236947b9cc11063de74a90a4e74 Mon Sep 17 00:00:00 2001 From: Steve French Date: Fri, 15 Feb 2008 19:20:18 +0000 Subject: [PATCH] --- yaml --- r: 86700 b: refs/heads/master c: c2d68ea65b0f668783c88e1f4f22738b24f3edea h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/cifs/connect.c | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 12d83b5501dc..b87408db7099 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 11b6d6450c10066e83e19f6ff57d55678c3e9f13 +refs/heads/master: c2d68ea65b0f668783c88e1f4f22738b24f3edea diff --git a/trunk/fs/cifs/connect.c b/trunk/fs/cifs/connect.c index 77e6c4c3a88b..8dbfa97cd18c 100644 --- a/trunk/fs/cifs/connect.c +++ b/trunk/fs/cifs/connect.c @@ -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; } }