]> granicus.if.org Git - neomutt/commitdiff
Always set up data pointer in mh_read_dir, not just when allocating context
authorBrendan Cully <brendan@kublai.com>
Sat, 31 Mar 2007 21:10:35 +0000 (14:10 -0700)
committerBrendan Cully <brendan@kublai.com>
Sat, 31 Mar 2007 21:10:35 +0000 (14:10 -0700)
ChangeLog
mh.c

index f7f7645e3f9ef859ea31c7e5e9cc3c3e9d6c30b6..d2a84401624fa88620f96fe82b3b95ac98d875cb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,11 @@
-2007-03-30 19:51 -0700  Brendan Cully  <brendan@kublai.com>  (4828ffd619f6)
+2007-03-30 21:26 -0700  Daniel Burrows  <dburrows@debian.org>  (d5ab883ef90a)
+
+       * hcache.c: Fix handling of DB4 hcache open failure. (closes: #2714)
+
+2007-03-30 20:18 -0700  Brendan Cully  <brendan@kublai.com>  (dc54ae48d8c1)
+
+       * mh.c: Set mode of new mh/maildir messages to match parent
+       directory.
 
        * mh.c, mutt.h: Move mtime_cur from CONTEXT to mh_data
 
diff --git a/mh.c b/mh.c
index bd422845964ba1c171277f7f131960497d1c3a42..55ae0abcea50f96e675078bf40cf7c271ca3928c 100644 (file)
--- a/mh.c
+++ b/mh.c
@@ -209,7 +209,7 @@ static inline mode_t mh_umask (CONTEXT* ctx)
     return 077;
   }
 
-  return 0777 & ~(st.st_mode);
+  return 0777 & ~st.st_mode;
 }
 
 int mh_buffy (const char *path)
@@ -1069,9 +1069,9 @@ int mh_read_dir (CONTEXT * ctx, const char *subdir)
   if (!ctx->data)
   {
     ctx->data = safe_calloc(sizeof (struct mh_data), 1);
-    data = mh_data (ctx);
     ctx->mx_close = mh_close_mailbox;
   }
+  data = mh_data (ctx);
 
   maildir_update_mtime (ctx);