[dovecot-cvs] dovecot/src/lib-storage/index/maildir
maildir-storage.c, 1.118, 1.119
cras at dovecot.org
cras at dovecot.org
Thu Jun 8 19:56:48 EEST 2006
- Previous message: [dovecot-cvs] dovecot/src/imap Makefile.am, 1.30,
1.31 cmd-authenticate.c, 1.4, NONE cmd-login.c, 1.4,
NONE commands.c, 1.15, 1.16 commands.h, 1.18, 1.19
- Next message: [dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-storage.c,
1.146, 1.147
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/lib/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv30643/maildir
Modified Files:
maildir-storage.c
Log Message:
Don't allow "." and ".." mailbox names/masks.
Index: maildir-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-storage.c,v
retrieving revision 1.118
retrieving revision 1.119
diff -u -d -r1.118 -r1.119
--- maildir-storage.c 8 Jun 2006 12:49:38 -0000 1.118
+++ maildir-storage.c 8 Jun 2006 16:56:45 -0000 1.119
@@ -201,6 +201,12 @@
if (*name == '~' || strchr(name, '/') != NULL)
return FALSE;
+ if (name[0] == '.' && (name[1] == '\0' ||
+ (name[1] == '.' && name[2] == '\0'))) {
+ /* "." and ".." aren't allowed. */
+ return FALSE;
+ }
+
return TRUE;
}
@@ -216,6 +222,12 @@
if (*name == '~' || strchr(name, '/') != NULL)
return FALSE;
+ if (name[0] == '.' && (name[1] == '\0' ||
+ (name[1] == '.' && name[2] == '\0'))) {
+ /* "." and ".." aren't allowed. */
+ return FALSE;
+ }
+
return TRUE;
}
- Previous message: [dovecot-cvs] dovecot/src/imap Makefile.am, 1.30,
1.31 cmd-authenticate.c, 1.4, NONE cmd-login.c, 1.4,
NONE commands.c, 1.15, 1.16 commands.h, 1.18, 1.19
- Next message: [dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-storage.c,
1.146, 1.147
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list