changeset 9589:5c0265dba3d1 HEAD

mountpoint_get()+Solaris: Reset mnttab before each lookup. Patch by Juergen Obermann
author Timo Sirainen <tss@iki.fi>
date Thu, 08 Jul 2010 13:48:10 +0100
parents 4af00b22a466
children f8c14abf52b4
files src/lib/mountpoint.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;