]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dbox: storage directory was created without +x permissions.
authorTimo Sirainen <tss@iki.fi>
Wed, 3 Jun 2009 21:23:24 +0000 (17:23 -0400)
committerTimo Sirainen <tss@iki.fi>
Wed, 3 Jun 2009 21:23:24 +0000 (17:23 -0400)
--HG--
branch : HEAD

src/lib-storage/index/dbox/dbox-file.c
src/lib-storage/index/dbox/dbox-storage.c

index 6acb33da131126a35e01d5982838846ca7db313a..b394466073d597780789a51be89fe1bc943731ed 100644 (file)
@@ -433,7 +433,7 @@ int dbox_create_fd(struct dbox_storage *storage, const char *path)
        mode_t old_mask;
        int fd;
 
-       old_mask = umask(0777 & ~storage->create_mode);
+       old_mask = umask(0666 & ~storage->create_mode);
        fd = open(path, O_RDWR | O_CREAT | O_TRUNC, 0777);
        umask(old_mask);
        if (fd == -1) {
index fe09be85513ff4417490671540375954a9f5571e..e7ec89d53af66cd5c0299761cf4f63678ffa24cd 100644 (file)
@@ -79,8 +79,8 @@ dbox_storage_create(struct mail_storage *_storage, struct mail_namespace *ns,
                     I_MIN(storage->set->dbox_max_open_files, 128));
 
        storage->map = dbox_map_init(storage);
-       mailbox_list_get_permissions(ns->list, NULL, &storage->create_mode,
-                                    &storage->create_gid);
+       mailbox_list_get_dir_permissions(ns->list, NULL, &storage->create_mode,
+                                        &storage->create_gid);
        return 0;
 }