[dovecot-cvs] dovecot/src/lib-index mail-index.c, 1.146, 1.147 mail-index.h, 1.127, 1.128

cras at dovecot.org cras at dovecot.org
Tue Sep 21 17:40:08 EEST 2004


Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv4979/lib-index

Modified Files:
	mail-index.c mail-index.h 
Log Message:
Get index file mode and GID from dovecot-shared file.



Index: mail-index.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index.c,v
retrieving revision 1.146
retrieving revision 1.147
diff -u -d -r1.146 -r1.147
--- mail-index.c	12 Sep 2004 13:05:24 -0000	1.146
+++ mail-index.c	21 Sep 2004 14:40:06 -0000	1.147
@@ -48,6 +48,13 @@
 	i_free(index);
 }
 
+void mail_index_set_permissions(struct mail_index *index,
+				mode_t mode, gid_t gid)
+{
+	index->mode = mode & 0666;
+	index->gid = gid;
+}
+
 uint32_t mail_index_register_record_extra(struct mail_index *index,
 					  const char *name, uint32_t hdr_size,
 					  uint16_t record_size)

Index: mail-index.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index.h,v
retrieving revision 1.127
retrieving revision 1.128
diff -u -d -r1.127 -r1.128
--- mail-index.h	5 Sep 2004 17:53:45 -0000	1.127
+++ mail-index.h	21 Sep 2004 14:40:06 -0000	1.128
@@ -137,6 +137,9 @@
 struct mail_index *mail_index_alloc(const char *dir, const char *prefix);
 void mail_index_free(struct mail_index *index);
 
+void mail_index_set_permissions(struct mail_index *index,
+				mode_t mode, gid_t gid);
+
 /* register extra data to be used in mail_index_record. name is a unique
    identifier for the data. if same name is tried to be registered multiple
    times, the rest are ignored. returns identifier for the name. */



More information about the dovecot-cvs mailing list