svn commit: samba r9009 - in branches/SAMBA_4_0/source/ntvfs/posix: .

tridge at samba.org tridge at samba.org
Wed Aug 3 17:52:33 GMT 2005


Author: tridge
Date: 2005-08-03 17:52:33 +0000 (Wed, 03 Aug 2005)
New Revision: 9009

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9009

Log:
directory not empty is not an error on failure to delete directory in delete on close




Modified:
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c	2005-08-03 17:50:00 UTC (rev 9008)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c	2005-08-03 17:52:33 UTC (rev 9009)
@@ -75,7 +75,7 @@
 			DEBUG(0,("Warning: xattr rmdir hook failed for '%s' - %s\n",
 				 h->name->full_name, nt_errstr(status)));
 		}
-		if (rmdir(h->name->full_name) != 0) {
+		if (rmdir(h->name->full_name) != 0 && errno != ENOTEMPTY) {
 			DEBUG(0,("pvfs_close: failed to rmdir '%s' - %s\n", 
 				 h->name->full_name, strerror(errno)));
 		}



More information about the samba-cvs mailing list