diff options
author | Igor Mammedov <niallain@gmail.com> | 2008-05-08 16:48:42 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2008-05-08 16:48:42 -0400 |
commit | 7c5e628f95b440b69332b1ed3eb112648fc8f7ff (patch) | |
tree | a75a077ca4bccd71fa708b4761e755295b27fed4 /fs/cifs/connect.c | |
parent | cf432eb50ffd03572c08a006f44e0069957cf300 (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.c | 3 |
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, | |||
1302 | "begin with // or \\\\ \n"); | 1302 | "begin with // or \\\\ \n"); |
1303 | return 1; | 1303 | return 1; |
1304 | } | 1304 | } |
1305 | value = strpbrk(vol->UNC+2, "/\\"); | ||
1306 | if (value) | ||
1307 | *value = '\\'; | ||
1305 | } else { | 1308 | } else { |
1306 | printk(KERN_WARNING "CIFS: UNC name too long\n"); | 1309 | printk(KERN_WARNING "CIFS: UNC name too long\n"); |
1307 | return 1; | 1310 | return 1; |