dovecot-1.2: mountpoint_get()+Solaris: Reset mnttab before each ...

dovecot at dovecot.org dovecot at dovecot.org
Thu Jul 8 15:49:36 EEST 2010


details:   http://hg.dovecot.org/dovecot-1.2/rev/5c0265dba3d1
changeset: 9589:5c0265dba3d1
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jul 08 13:48:10 2010 +0100
description:
mountpoint_get()+Solaris: Reset mnttab before each lookup.
Patch by Juergen Obermann

diffstat:

 src/lib/mountpoint.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 4af00b22a466 -r 5c0265dba3d1 src/lib/mountpoint.c
--- a/src/lib/mountpoint.c	Fri Jul 02 16:06:30 2010 +0100
+++ b/src/lib/mountpoint.c	Thu Jul 08 13:48:10 2010 +0100
@@ -164,6 +164,7 @@
 		i_error("fopen(%s) failed: %m", MTAB_PATH);
 		return -1;
 	}
+	resetmnttab(f);
 	while ((getextmntent(f, &ent.ext, sizeof(ent.ext))) == 0) {
 		if (hasmntopt(&ent.ent, MNTOPT_IGNORE) != NULL)
 			continue;


More information about the dovecot-cvs mailing list