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)
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)
Sat, Nov 23, 4:55 PM
Unknown Object (File)
Sat, Nov 23, 2:03 AM
Unknown Object (File)
Fri, Nov 22, 9:05 AM
Unknown Object (File)
Thu, Nov 21, 1:57 PM
Unknown Object (File)
Tue, Nov 19, 7:03 PM

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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 9447
Build 9900: arc lint + arc unit

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.