cifs: constify get_normalized_path() properly
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 18 Mar 2021 05:03:34 +0000 (01:03 -0400)
committerSteve French <stfrench@microsoft.com>
Sun, 25 Apr 2021 21:28:23 +0000 (16:28 -0500)
commit9cfdb1c12bae26f8aed9df947c456e67ae03096c
tree22488edd0dfd6adc7ded099c5d3e7a8050c2efe3
parent8d7672235533dbeab4a5373b49f1b4273cdc2c6a
cifs: constify get_normalized_path() properly

As it is, it takes const char * and, in some cases, stores it in
caller's variable that is plain char *.  Fortunately, none of the
callers actually proceeded to modify the string via now-non-const
alias, but that's trouble waiting to happen.

It's easy to do properly, anyway...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/dfs_cache.c