[dovecot-cvs] dovecot/src/lib mkdir-parents.c,1.2,1.3

cras at dovecot.org cras at dovecot.org
Fri Jul 9 22:21:20 EEST 2004


Update of /home/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv6585/lib

Modified Files:
	mkdir-parents.c 
Log Message:
check EISDIR in next mkdir() too..



Index: mkdir-parents.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/mkdir-parents.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- mkdir-parents.c	14 Jun 2003 17:22:02 -0000	1.2
+++ mkdir-parents.c	9 Jul 2004 19:21:18 -0000	1.3
@@ -27,7 +27,7 @@
 		t_pop();
 
 		/* should work now */
-		if (mkdir(path, mode) < 0 && errno != EEXIST)
+		if (mkdir(path, mode) < 0 && errno != EEXIST && errno != EISDIR)
 			return -1;
 	}
 



More information about the dovecot-cvs mailing list