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

--- Comment #15 from commit-h...@freebsd.org ---
A commit in branch stable/13 references this bug:

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

commit 1eaaa55f2ba9b45dfd955743a9bc5cbe7a6437f3
Author:     Kyle Evans <kev...@freebsd.org>
AuthorDate: 2024-12-01 19:05:57 +0000
Commit:     Kyle Evans <kev...@freebsd.org>
CommitDate: 2024-12-10 23:06:15 +0000

    pw: set the user's home directory mode if it existed

    The adduser(8) prompt allows one to set the mode of a new home
    directory, but pw(8) doesn't honor the -M mode if the home directory
    already exists at creation time.  It doesn't seem to make sense to
    ignore the mode (which may lead to a security issue on the system being
    configured) when we'll happily chown an existing directory, so fix the
    inconsistency.

    PR:             280099
    Reviewed by:    des, jlduran (previous version)

    (cherry picked from commit 6a7238fd7c60f35191eadaa026d3d395c6140c47)

 usr.sbin/adduser/adduser.8 |  6 ++++--
 usr.sbin/pw/cpdir.c        | 27 +++++++++++++++++++++------
 2 files changed, 25 insertions(+), 8 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to