[CIFS] Allow reset of file to ATTR_NORMAL when archive bit not set
authorSteve French <sfrench@us.ibm.com>
Fri, 23 Mar 2007 00:45:08 +0000 (00:45 +0000)
committerSteve French <sfrench@us.ibm.com>
Fri, 23 Mar 2007 00:45:08 +0000 (00:45 +0000)
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.

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>

No differences found