[Pkg-shadow-devel] [PATCH 3/5] Do not fail on missing files in /etc/, create them instead.

Mike Frysinger vapier at gentoo.org
Sun Mar 22 06:06:49 UTC 2015


On 20 Mar 2015 13:49, Dimitri John Ledkov wrote:
> passwd, shadow, group, gshadow etc. can be managed via nss -
> e.g. system default accounts can be specified using nss_altfiles,
> rather than in /etc/. Thus despite having default accounts, these
> files can be missing on disk and thus should be opened with O_CREATE
> whenever they are attempted to be opened in O_RDWR modes.

are there any cases after your change where pw_open is called w/O_RDWR and not 
O_CREAT ?  if not, might make sense to just change the API so O_RDWR implies
file creation ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/attachments/20150322/9e59505c/attachment.sig>


More information about the Pkg-shadow-devel mailing list