Date: Thu, 6 Jun 2013 19:10:01 GMT From: Guy Helmer <guy.helmer@gmail.com> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/150988: adduser(8) problem of directory mode Message-ID: <201306061910.r56JA1vH003993@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/150988; it has been noted by GNATS. From: Guy Helmer <guy.helmer@gmail.com> To: bug-followup@FreeBSD.org, zrcvic@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().
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306061910.r56JA1vH003993>