summaryrefslogtreecommitdiffstats
path: root/fs/configfs
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2012-12-10 12:10:45 +0100
committerSteve French <smfrench@gmail.com>2012-12-11 18:48:49 +0100
commit839db3d10a5ba792d6533b8bb3380f52ac877344 (patch)
tree5ef4cdeaa8d3fcb0a5ce6fa63da3f315d4661485 /fs/configfs
parentcifs: clean up handling of unc= option (diff)
downloadlinux-839db3d10a5ba792d6533b8bb3380f52ac877344.tar.xz
linux-839db3d10a5ba792d6533b8bb3380f52ac877344.zip
cifs: fix up handling of prefixpath= option
Currently the code takes care to ensure that the prefixpath has a leading '/' delimiter. What if someone passes us a prefixpath with a leading '\\' instead? The code doesn't properly handle that currently AFAICS. Let's just change the code to skip over any leading delimiter character when copying the prepath. Then, fix up the users of the prepath option to prefix it with the correct delimiter when they use it. Also, there's no need to limit the length of the prefixpath to 1k. If the server can handle it, why bother forbidding it? Pavel Shilovsky <piastry@etersoft.ru> Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/configfs')
0 files changed, 0 insertions, 0 deletions