[dovecot-cvs] dovecot/src/lib-storage/index/maildir
maildir-storage.c, 1.91, 1.92
cras at dovecot.org
cras at dovecot.org
Wed Feb 9 23:14:15 EET 2005
Update of /var/lib/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv29723
Modified Files:
maildir-storage.c
Log Message:
code cleanup
Index: maildir-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-storage.c,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -d -r1.91 -r1.92
--- maildir-storage.c 5 Feb 2005 12:01:50 -0000 1.91
+++ maildir-storage.c 9 Feb 2005 21:14:13 -0000 1.92
@@ -293,7 +293,8 @@
}
}
- if (mkdir_parents(dir, CREATE_MODE) < 0 && (errno != EEXIST || !verify)) {
+ if (mkdir_parents(dir, CREATE_MODE) < 0 &&
+ (errno != EEXIST || !verify)) {
if (errno != EEXIST && (!verify || errno != ENOENT)) {
mail_storage_set_critical(&storage->storage,
"mkdir(%s) failed: %m", dir);
@@ -346,7 +347,7 @@
return 0;
dir = t_strconcat(storage->index_dir, "/"MAILDIR_FS_SEP_S, name, NULL);
- if (mkdir_parents(dir, CREATE_MODE) == -1 && errno != EEXIST) {
+ if (mkdir_parents(dir, CREATE_MODE) < 0 && errno != EEXIST) {
mail_storage_set_critical(&storage->storage,
"mkdir(%s) failed: %m", dir);
return -1;
More information about the dovecot-cvs
mailing list