[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-list.c,1.18,1.19
cras at procontrol.fi
cras at procontrol.fi
Tue Feb 25 21:10:47 EET 2003
Update of /home/cvs/dovecot/src/lib-storage/index/maildir
In directory danu:/tmp/cvs-serv5065/lib-storage/index/maildir
Modified Files:
maildir-list.c
Log Message:
Don't delete ".." dirs outside our imap root.
Index: maildir-list.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/maildir/maildir-list.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- maildir-list.c 24 Feb 2003 18:30:23 -0000 1.18
+++ maildir-list.c 25 Feb 2003 19:10:45 -0000 1.19
@@ -231,8 +231,9 @@
or the process trying to delete it had died.
delete it ourself if it's been there longer than
- one hour */
- if (st.st_mtime < 3600)
+ one hour. don't touch it if it's outside our
+ mail root dir. */
+ if (st.st_mtime < 3600 && *ctx->prefix == '\0')
(void)unlink_directory(path, TRUE);
continue;
}
More information about the dovecot-cvs
mailing list