CIFS: Allow reset of file to ATTR_NORMAL when archive bit not set
commite21c656f7bc1b580dafeb194010f01f11a6caf88
authorSteve French <sfrench@us.ibm.com>
Wed, 28 Mar 2007 21:40:03 +0000 (28 17:40 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 6 Apr 2007 10:43:16 +0000 (6 03:43 -0700)
tree1fceb90978aedb6756f3a37e9ccc34d0c29ab9c8
parent8e76199aa2df59083a6e1dccbc76871f45b6eaad
CIFS: Allow reset of file to ATTR_NORMAL when archive bit not set

[CIFS] Allow reset of file to ATTR_NORMAL when archive bit not set

When a file had a dos attribute of 0x1 (readonly - but dos attribute
of archive was not set) - doing chmod 0777 or equivalent would
try to set a dos attribute of 0 (which some servers ignore)
rather than ATTR_NORMAL (0x20) which most servers accept.
Does not affect servers which support the CIFS Unix Extensions.

[<cebbert@redhat.com>: removed changelog part of patch]

Cc: Chuck Ebbert <cebbert@redhat.com>
Acked-by: Prasad Potluri <pvp@us.ibm.com>
Acked-by: Shirish Pargaonkar <shirishp@us.ibm.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/cifs/inode.c