This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Mailutils".

http://git.savannah.gnu.org/cgit/mailutils.git/commit/?id=8282a0f66a27de33971a2b5c42470548090bf4dc

The branch, master has been updated
       via  8282a0f66a27de33971a2b5c42470548090bf4dc (commit)
      from  aa0a6207b162bf8a8f6ba959f2a9ebae598d78a4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 8282a0f66a27de33971a2b5c42470548090bf4dc
Author: Sergey Poznyakoff <g...@gnu.org.ua>
Date:   Tue Jan 24 16:36:23 2017 +0200

    imap4d: forbid to treat namespace root as a mailbox
    
    * imap4d/namespace.c (namespace_get_name): Return NULL if name
    is the same as the returned prefix

-----------------------------------------------------------------------

Summary of changes:
 imap4d/namespace.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/imap4d/namespace.c b/imap4d/namespace.c
index b280536..8f1e932 100644
--- a/imap4d/namespace.c
+++ b/imap4d/namespace.c
@@ -352,6 +352,11 @@ namespace_get_name (char const *name, mu_record_t *rec, 
int *mode)
 {
   struct namespace_prefix const *pfx;
   char *path = namespace_translate_name (name, &pfx);
+  if (strcmp (name, pfx->prefix) == 0)
+    {
+      free (path);
+      return NULL;
+    }
   if (rec)
     *rec = pfx->record;
   if (mode)


hooks/post-receive
-- 
GNU Mailutils

_______________________________________________
Commit-mailutils mailing list
Commit-mailutils@gnu.org
https://lists.gnu.org/mailman/listinfo/commit-mailutils

Reply via email to