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

tridge at samba.org tridge at samba.org
Mon Aug 21 06:06:03 GMT 2006


Author: tridge
Date: 2006-08-21 06:06:02 +0000 (Mon, 21 Aug 2006)
New Revision: 17656

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

Log:

some systems (like older solaris) don't return ENOTEMPTY on rmdir()
with non-empty directory

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


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_mkdir.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_mkdir.c	2006-08-21 05:59:14 UTC (rev 17655)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_mkdir.c	2006-08-21 06:06:02 UTC (rev 17656)
@@ -179,6 +179,10 @@
 	}
 
 	if (rmdir(name->full_name) == -1) {
+		/* some olders systems don't return ENOTEMPTY to rmdir() */
+		if (errno == EEXIST) {
+			return NT_STATUS_DIRECTORY_NOT_EMPTY;
+		}
 		return pvfs_map_errno(pvfs, errno);
 	}
 



More information about the samba-cvs mailing list