[dovecot-cvs] dovecot/src/lib mkdir-parents.c,1.3,1.4
cras at dovecot.org
cras at dovecot.org
Fri Apr 22 22:01:55 EEST 2005
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv2457
Modified Files:
mkdir-parents.c
Log Message:
Ignore if mkdir() returns ENOSYS. It probably means we tried to mkdir a
(NFS) mount point.
Index: mkdir-parents.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/mkdir-parents.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- mkdir-parents.c 9 Jul 2004 19:21:18 -0000 1.3
+++ mkdir-parents.c 22 Apr 2005 19:01:53 -0000 1.4
@@ -10,8 +10,12 @@
const char *p;
/* EISDIR check is for BSD/OS which returns it if path contains '/'
- at the end and it exists. */
- if (mkdir(path, mode) < 0 && errno != EEXIST && errno != EISDIR) {
+ at the end and it exists.
+
+ ENOSYS check is for NFS mount points.
+ */
+ if (mkdir(path, mode) < 0 && errno != EEXIST &&
+ errno != EISDIR && errno != ENOSYS) {
if (errno != ENOENT)
return -1;
More information about the dovecot-cvs
mailing list