Bug 4418 - cifs client sets file size to zero doing chmod to Samba 3.0.26pre
Summary: cifs client sets file size to zero doing chmod to Samba 3.0.26pre
Status: RESOLVED FIXED
Alias: None
Product: CifsVFS
Classification: Unclassified
Component: kernel fs (show other bugs)
Version: 2.6
Hardware: All Linux
: P3 major
Target Milestone: ---
Assignee: Steve French
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-28 16:46 UTC by Steve French
Modified: 2007-02-28 17:09 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve French 2007-02-28 16:46:25 UTC
cifs client (and smbclient) were setting file size to zero (instead of -1) in SET_FILE_INFO_UNIX_BASIC when trying to change the mode - and Samba 3.0.26pre exposed this by now interpreting this (size) field in this infolevel as valid on set.

fixed in client (and server changed back to old behavior so old clients won't hit it).
Comment 1 Steve French 2007-02-28 17:09:17 UTC
Fixed by server 3.0.26 rc1 to match 3.0.25 and earlier).

Also fixed in cifs 1.48 (will be in Linux Kernel 2.6.21)