]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Allow bootstrapping pwd_mkdb on Linux/macOS
authorarichardson <arichardson@FreeBSD.org>
Thu, 6 Aug 2020 20:46:13 +0000 (20:46 +0000)
committerarichardson <arichardson@FreeBSD.org>
Thu, 6 Aug 2020 20:46:13 +0000 (20:46 +0000)
commit7249b290b464a21d8e9fa8440d6946e626009a29
treef4aa5014938683babaad5cfa537dc09317fc91c2
parentc89385028989588e595d332374ad95d4dddde59a
Allow bootstrapping pwd_mkdb on Linux/macOS

We need to provide a struct passwd that is compatible with the target
system and this is not the case when cross-building from macOS/Linux.
It should also be a problem when bootstrapping for an i386 target from a
FreeBSD amd64 host since time_t does not match across those systems.
However, pwd_mkdb always truncates integer values to 32-bit so this
difference does not result in different databases.

Reviewed By: brooks
Differential Revision: https://reviews.freebsd.org/D25931
usr.sbin/pwd_mkdb/Makefile
usr.sbin/pwd_mkdb/pwd.h [new file with mode: 0644]