Re: mount_mfs: why chdir?
Robert Elz <[email protected]> Mon, 31 Mar 2025 10:39:21 +0700
| Newsgroups | gmane.os.netbsd.devel.userlevel |
|---|---|
| Message-ID | <[email protected]> |
Date: Sun, 30 Mar 2025 14:42:03 -0400 (EDT)
From: Mouse <[email protected]>
Message-ID: <[email protected]>
| I think it should be done _after_ the mount() call,
If you do it that way, there would be a race with an immediately following
umount, which would fail if attemted between the mount and the chdir which
follows.
kre