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)
Thu, Dec 19, 4:06 PM
Unknown Object (File)
Thu, Dec 19, 2:54 PM
Unknown Object (File)
Mon, Nov 25, 6:22 AM
Unknown Object (File)
Sun, Nov 24, 7:56 PM
Unknown Object (File)
Sat, Nov 23, 11:32 PM
Unknown Object (File)
Nov 23 2024, 4:55 PM
Unknown Object (File)
Nov 23 2024, 2:03 AM
Unknown Object (File)
Nov 22 2024, 9:05 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.