]> err.no Git - linux-2.6/commit
[CIFS] Fix set file size to zero when doing chmod to Samba 3.0.26pre
authorSteve French <sfrench@us.ibm.com>
Thu, 1 Mar 2007 04:11:22 +0000 (04:11 +0000)
committerSteve French <sfrench@us.ibm.com>
Thu, 1 Mar 2007 04:11:22 +0000 (04:11 +0000)
commitc7af1857ef74873bf5a9c8fcab0cfd79883492ac
tree7dbfb8a00ab15062f501faf846dd1c002250fa42
parent99ee4dbd7c99c27129a8e2026003a7680878345f
[CIFS] Fix set file size to zero when doing chmod to Samba 3.0.26pre

In fixing a bug Samba 3.0.26pre allowed some clients (including Linux cifs
client) to change file size to zero in SET_FILE_UNIX_BASIC (which Linux cifs
client uses for chmod).

The server has been "fixed" now but that also fixes the client to net send
file size zero on chmod.

Fixes Samba bugzilla bug # 4418.

Fixed with help from Jeremy Allison

Signed-off-by: Jeremy Allison <jra@samba.org>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifspdu.h
fs/cifs/cifssmb.c