summaryrefslogtreecommitdiff
path: root/fs/cifs/connect.c
diff options
context:
space:
mode:
authorIgor Mammedov <niallain@gmail.com>2008-05-08 20:48:42 +0000
committerSteve French <sfrench@us.ibm.com>2008-05-08 20:48:42 +0000
commit7c5e628f95b440b69332b1ed3eb112648fc8f7ff (patch)
treea75a077ca4bccd71fa708b4761e755295b27fed4 /fs/cifs/connect.c
parentcf432eb50ffd03572c08a006f44e0069957cf300 (diff)
[CIFS] Fixed build warning in is_ip
Signed-off-by: Igor Mammedov <niallain@gmail.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r--fs/cifs/connect.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 957998e8477e..791ca5c1a116 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -1302,6 +1302,9 @@ cifs_parse_mount_options(char *options, const char *devname,
"begin with // or \\\\ \n");
return 1;
}
+ value = strpbrk(vol->UNC+2, "/\\");
+ if (value)
+ *value = '\\';
} else {
printk(KERN_WARNING "CIFS: UNC name too long\n");
return 1;