[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-storage.c, 1.49, 1.50
tss at dovecot.org
tss at dovecot.org
Tue Apr 3 10:31:51 EEST 2007
Update of /var/lib/cvs/dovecot/src/lib-storage/index/dbox
In directory talvi:/tmp/cvs-serv12297/dbox
Modified Files:
dbox-storage.c
Log Message:
Minor optimization. If we just checked that the directory existed, don't
mkdir() it.
Index: dbox-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/dbox/dbox-storage.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- dbox-storage.c 30 Mar 2007 18:57:35 -0000 1.49
+++ dbox-storage.c 3 Apr 2007 07:31:49 -0000 1.50
@@ -196,12 +196,13 @@
}
return -1;
}
- }
-
- if (mkdir_parents(list_set.root_dir, CREATE_MODE) < 0 &&
- errno != EEXIST) {
- i_error("mkdir_parents(%s) failed: %m", list_set.root_dir);
- return -1;
+ } else {
+ if (mkdir_parents(list_set.root_dir, CREATE_MODE) < 0 &&
+ errno != EEXIST) {
+ i_error("mkdir_parents(%s) failed: %m",
+ list_set.root_dir);
+ return -1;
+ }
}
if (mailbox_list_init("fs", &list_set,
More information about the dovecot-cvs
mailing list