Bug 509080

Summary: Can not clear Read-only attribute
Product: [Fedora] Fedora Reporter: Jérôme Audu <jau>
Component: sambaAssignee: Simo Sorce <ssorce>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: azelinka, gdeschner, ssorce
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://www.mail-archive.com/samba@lists.samba.org/msg99384.html
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-10 08:20:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 516996    
Attachments:
Description Flags
rpmdev-diff of samba-3.3.2-0.33.fc11.src.rpm with Jeremy Allison fix none

Description Jérôme Audu 2009-07-01 09:06:26 UTC
Created attachment 350073 [details]
rpmdev-diff of samba-3.3.2-0.33.fc11.src.rpm with Jeremy Allison fix

Description of problem:

Unable to change the attribute of a Samba shared file from WinXP client
from "Read-only" to "Writable"

Version-Release number of selected component (if applicable):

samba-3.3.2-0.33

How reproducible:

Always

Steps to Reproduce:

1. Setup a shared Samba directory, and access it from WinXP client.
2. From WinXP, Select a file and set it as ReadOnly:
  Properties => Attributes => Read-Only  [X] (Then apply)
3. From WinXP, Select the same file and uncheck Read-Only flags:
  Properties => Attributes => Read-Only  [ ] (Then apply)

  
Actual results:

Step 3 failed on WinXP client with "An error occurred applying attributes to the file"


Expected results:

Read-Only flags on selected file removed. 

Additional info:

Bug already raised on samba ML:
http://www.mail-archive.com/samba@lists.samba.org/msg99384.html

And a fix here:
http://www.mail-archive.com/samba@lists.samba.org/msg99406.html

I've tested this patch and it fix my issue.
I've attached my modification to samba-3.3.2-0.33.fc11.src.rpm (.SPEC + patch)

Comment 1 Jérôme Audu 2009-09-10 08:20:08 UTC
I've just checked with the new released "samba-3.4.1-0.41.fc11" (from testing-update) and it seem to fix this problem.