The Samba-Bugzilla – Attachment 2962 Details for
Bug 5073
Unable to delete a readonly file despite "delete readonly" being set
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix for deleting readonly files
samba-3.0.26a-readonly.patch (text/plain), 754 bytes, created by
David Shaw
on 2007-11-11 14:45:27 UTC
(
hide
)
Description:
Fix for deleting readonly files
Filename:
MIME Type:
Creator:
David Shaw
Created:
2007-11-11 14:45:27 UTC
Size:
754 bytes
patch
obsolete
>diff -up samba-3.0.26a/source/smbd/nttrans.c.orig samba-3.0.26a/source/smbd/nttrans.c >--- samba-3.0.26a/source/smbd/nttrans.c.orig 2007-11-09 14:17:44.000000000 -0500 >+++ samba-3.0.26a/source/smbd/nttrans.c 2007-11-09 14:21:30.000000000 -0500 >@@ -688,8 +688,9 @@ int reply_ntcreate_and_X(connection_stru > && (create_disposition != FILE_CREATE) > && (share_access & FILE_SHARE_DELETE) > && (access_mask & DELETE_ACCESS)) { >- if ((dos_mode(conn, fname, &sbuf) & FILE_ATTRIBUTE_READONLY) || >+ if (((dos_mode(conn, fname, &sbuf) & FILE_ATTRIBUTE_READONLY) >+ && !lp_delete_readonly(SNUM(conn))) || > !can_delete_file_in_directory(conn, fname)) { > restore_case_semantics(conn, file_attributes); > END_PROFILE(SMBntcreateX);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 5073
: 2962