[Pkg-shadow-devel] [PATCH 3/5] Do not fail on missing files in /etc/, create them instead.
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 ...
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: Digital signature
More information about the Pkg-shadow-devel