[Bug 224601] autofs: Make automount(8) call chdir("/") before create_directory()

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Feb 25 18:58:59 UTC 2021


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

--- Comment #11 from commit-hook at FreeBSD.org ---
A commit in branch stable/12 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=d9e70f5d97c63ae5dba93e9b026d1cfa1b1a4759

commit d9e70f5d97c63ae5dba93e9b026d1cfa1b1a4759
Author:     Robert Wing <rew at FreeBSD.org>
AuthorDate: 2021-02-17 09:22:23 +0000
Commit:     Robert Wing <rew at FreeBSD.org>
CommitDate: 2021-02-25 18:57:37 +0000

    automount(8): fix absolute path when creating a mountpoint

    When executing automount(8), it will attempt to create the directory where
an
    autofs filesystem is to be mounted. Explicity set the root path for this
    directory to "/".

    This fixes the issue where the directory being created was being treated as
a
    relative path instead of an absolute path (as expected).

    PR:     224601
    Reported by:    kusumi.tomohiro at gmail.com
    Reviewed by:    trasz
    Differential Revision:  https://reviews.freebsd.org/D27832

    (cherry picked from commit 63640b2f552c0476f50484635eb9888eafcd22dc)

 usr.sbin/autofs/common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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


More information about the freebsd-fs mailing list