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

From: Guy Helmer <[email protected]>
To: [email protected],
 [email protected]
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().
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to