Page MenuHomeFreeBSD

Fix INSTALL_AS_USER with external nsswitch databases
ClosedPublic

Authored by vangyzen on May 22 2017, 7:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 22 2023, 10:36 PM
Unknown Object (File)
Dec 4 2023, 11:25 AM
Unknown Object (File)
Nov 23 2023, 8:46 AM
Unknown Object (File)
Nov 14 2023, 6:52 AM
Unknown Object (File)
Nov 11 2023, 11:18 PM
Unknown Object (File)
Oct 19 2023, 8:27 PM
Unknown Object (File)
Jul 11 2023, 8:15 PM
Unknown Object (File)
Jun 13 2023, 10:15 AM

Details

Summary

The INSTALL_AS_USER option tells "install" to use the current
user name as the owner of the installed file. The "install"
command executed by the build is statically linked, so it does not
load nsswitch modules, such as nss_ldap.so, so it fails when
the user is only defined in such a database.

Fix it to use the current UID instead of user name. This works
for all users. I expect it is also slightly more efficient.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This looks like a reasonable change - but what is the baseline?

The baseline is head after applying D10810.

This revision is now accepted and ready to land.May 27 2017, 10:08 PM
This revision was automatically updated to reflect the committed changes.