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

dovecot at dovecot.org dovecot at dovecot.org
Thu Jul 8 15:48:15 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/5113bada22b2
changeset: 11756:5113bada22b2
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 4db139722e4f -r 5113bada22b2 src/lib/mountpoint.c
--- a/src/lib/mountpoint.c	Thu Jul 08 13:47:42 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