From: Timo Sirainen Date: Thu, 8 Jul 2010 12:48:10 +0000 (+0100) Subject: mountpoint_get()+Solaris: Reset mnttab before each lookup. X-Git-Tag: 2.0.rc2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=221ff08d3c6895d6bccdac0281c5d357256dfbe3;p=thirdparty%2Fdovecot%2Fcore.git mountpoint_get()+Solaris: Reset mnttab before each lookup. Patch by Juergen Obermann --HG-- branch : HEAD --- diff --git a/src/lib/mountpoint.c b/src/lib/mountpoint.c index fb97b705e7..f0ddeb6e87 100644 --- a/src/lib/mountpoint.c +++ b/src/lib/mountpoint.c @@ -164,6 +164,7 @@ int mountpoint_get(const char *path, pool_t pool, struct mountpoint *point_r) 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;