bin/150988: adduser(8) problem of directory mode

Guy Helmer guy.helmer at gmail.com
Thu Jun 6 19:10:01 UTC 2013


The following reply was made to PR bin/150988; it has been noted by GNATS.

From: Guy Helmer <guy.helmer at gmail.com>
To: bug-followup at FreeBSD.org,
 zrcvic at foxmail.com
Cc:  
Subject: Re: bin/150988: adduser(8) problem of directory mode
Date: Thu, 6 Jun 2013 14:03:02 -0500

 I see that jkim changed the directory creation code to use _DEF_DIRMODE =
 (which is defined in pw.h as S_IRWXU | S_IRWXG | S_IRWXO) in rev 219408.
 
 However, I would expect mkdir() to follow the umask value, so I would =
 not expect your suggested patch to result in any functional difference. =
 I would expect that we should instead chmod() after mkdir() to apply a =
 useful access mode to the directory after creation, or temporarily =
 change the umask before mkdir().
 


More information about the freebsd-bugs mailing list