diff options
author | Germano Percossi <germano.percossi@citrix.com> | 2016-11-18 18:54:51 +0000 |
---|---|---|
committer | Jeff Layton <jlayton@samba.org> | 2016-11-27 06:30:38 -0500 |
commit | a1f3acd40b265f134a97a739a6898b3958d206b9 (patch) | |
tree | 97c81b656ad10f016efa3f75a2b2d669a559b01b /spnego.h | |
parent | 57e4e22de7ea79f56471e7eb8cec9db926087f8d (diff) | |
download | cifs-utils-a1f3acd40b265f134a97a739a6898b3958d206b9.tar.gz cifs-utils-a1f3acd40b265f134a97a739a6898b3958d206b9.tar.bz2 cifs-utils-a1f3acd40b265f134a97a739a6898b3958d206b9.zip |
mount.cifs: Fixed command line parsing and aligned with kernel
The way token matching was done was consuming the parameters namespace
quickly. For example, anything starting with "dom" was interpreted with
domain, while it could have been a completely different word. The same
is true even for "ro".
Moreover, many perfectly valid options like "addr" where not accepted.
The cifs kernel module is very strict when it comes to names: 'dom' and
'domain' are valid while 'domai' is not, so the userspace tool needs to
comply otherwise it becomes very difficult to come up with new names for
options.
Now, checking is strict and as close as possible to kernel. When it is
not, it is just to avoid breaking compatibility with some users.
However, workg has been removed because it is too lazy and undocumented.
The only variable left without strict checking is 'x-' because the
intent is to ignore anything starting in that way
Signed-off-by: Germano Percossi <germano.percossi@citrix.com>
Diffstat (limited to 'spnego.h')
0 files changed, 0 insertions, 0 deletions