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/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251906 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=221372&action=edit create a common unmount routine for automount This patch goes back to using FSID's. The problem with my original patch using 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 using 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 that issue as well though - I'll look into it. Thanks for the reporting and testing Martin, much appreciated! -Rob -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-251906-227-pYGzVkgNWl>
