[dovecot-cvs] dovecot/src/lib-storage/index/maildir
maildir-storage.c, 1.76, 1.77
cras at dovecot.org
cras at dovecot.org
Fri Jul 9 22:16:29 EEST 2004
Update of /home/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv6491/lib-storage/index/maildir
Modified Files:
maildir-storage.c
Log Message:
Some more mailbox name checks.
Index: maildir-storage.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/maildir/maildir-storage.c,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -d -r1.76 -r1.77
--- maildir-storage.c 22 Jun 2004 07:48:18 -0000 1.76
+++ maildir-storage.c 9 Jul 2004 19:16:27 -0000 1.77
@@ -143,6 +143,7 @@
len = strlen(name);
if (len == 0 || name[0] == MAILDIR_FS_SEP ||
+ name[len-1] == MAILDIR_FS_SEP ||
strchr(name, '*') != NULL || strchr(name, '%') != NULL)
return FALSE;
@@ -157,7 +158,7 @@
static int maildir_is_valid_existing_name(const char *name)
{
- if (name[0] == '\0')
+ if (name[0] == '\0' || name[strlen(name)-1] == '/')
return FALSE;
if (full_filesystem_access)
More information about the dovecot-cvs
mailing list