Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Jan 2021 01:26:10 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 251906] autofs: automounter always only adds to /var/db/mounttab but never clears it
Message-ID:  <bug-251906-227-pYGzVkgNWl@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-251906-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-251906-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251906

Robert Wing <rew@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #221111|0                           |1
        is obsolete|                            |

--- Comment #15 from Robert Wing <rew@FreeBSD.org> ---
Created attachment 221372
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D221372&action=
=3Dedit
create a common unmount routine for automount

This patch goes back to using FSID's. The problem with my original patch us=
ing
FSID's was that I was calling `strlen()` on an uninitialized character array
which was producing undefined results. I was able to reproduce the problem.

This patch also creates a common unmount routine that will try to unmount u=
sing
umount(8) and if that fails will fallback to using unmount(3).

Comment #14 was likely from an error when using `f_mntfromname` and should =
be
fixed with this patch by using the FSID instead.

Comment #13 is a separate problem from this one. I was able to reproduce th=
at
issue as well though - I'll look into it.

Thanks for the reporting and testing Martin, much appreciated!

-Rob

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-251906-227-pYGzVkgNWl>