[Bug 251906] autofs: automounter always only adds to /var/db/mounttab but never clears it

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jan 8 01:26:11 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251906

Robert Wing <rew at FreeBSD.org> changed:

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

--- Comment #15 from Robert Wing <rew at 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.


More information about the freebsd-bugs mailing list