cifs: fix MUST SecurityFlags filtering
authorNiklas Cassel <niklas.cassel@axis.com>
Thu, 22 Jan 2015 13:16:34 +0000 (14:16 +0100)
committerSteve French <steve.french@primarydata.com>
Tue, 27 Jan 2015 01:38:26 +0000 (19:38 -0600)
commit7a1ceba071709d11271ebd921310b5a18404dd33
tree15af02690777a0333af178c4e1df7510ec1f0c0f
parentca7df8e0bb2a5ec79691de8a1a4c0e611fe04e60
cifs: fix MUST SecurityFlags filtering

If CONFIG_CIFS_WEAK_PW_HASH is not set, CIFSSEC_MUST_LANMAN
and CIFSSEC_MUST_PLNTXT is defined as 0.

When setting new SecurityFlags without any MUST flags,
your flags would be overwritten with CIFSSEC_MUST_LANMAN (0).

Signed-off-by: Niklas Cassel <niklass@axis.com>
Signed-off-by: Steve French <steve.french@primarydata.com>
fs/cifs/cifs_debug.c