svn commit: samba r5512 - in trunk/source/smbd: .
jra at samba.org
jra at samba.org
Wed Feb 23 02:20:55 GMT 2005
Author: jra
Date: 2005-02-23 02:20:54 +0000 (Wed, 23 Feb 2005)
New Revision: 5512
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5512
Log:
Fix for bug #2201 - use same logic with "delete readonly"
when setting the delete on close flag as we do in SMBunlink
calls.
Jeremy.
Modified:
trunk/source/smbd/trans2.c
Changeset:
Modified: trunk/source/smbd/trans2.c
===================================================================
--- trunk/source/smbd/trans2.c 2005-02-22 23:55:31 UTC (rev 5511)
+++ trunk/source/smbd/trans2.c 2005-02-23 02:20:54 UTC (rev 5512)
@@ -2958,10 +2958,12 @@
* Only allow delete on close for writable files.
*/
- if (dosmode & aRONLY) {
- DEBUG(10,("set_delete_on_close_internal: file %s delete on close flag set but file attribute is readonly.\n",
- fsp->fsp_name ));
- return NT_STATUS_CANNOT_DELETE;
+ if (!lp_delete_readonly(SNUM(fsp->conn))) {
+ if (dosmode & aRONLY) {
+ DEBUG(10,("set_delete_on_close_internal: file %s delete on close flag set but file attribute is readonly.\n",
+ fsp->fsp_name ));
+ return NT_STATUS_CANNOT_DELETE;
+ }
}
/*
More information about the samba-cvs
mailing list