about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorsethp <seth@codecopse.net>2023-07-31 11:13:44 -0700
committerGitHub <noreply@github.com>2023-07-31 11:13:44 -0700
commitfff66a954c7664d8263a00f3ca5f021dc0ca5716 (patch)
tree3e1b0e36907872ae595cc2fee2e3e9a1c0e0edc9 /compiler/rustc_codegen_llvm/src/errors.rs
parent912dacb6588b63b385020d5b210fb27eb8095da0 (diff)
downloadrust-fff66a954c7664d8263a00f3ca5f021dc0ca5716.tar.gz
rust-fff66a954c7664d8263a00f3ca5f021dc0ca5716.zip
fix: lookup user by name, not id
Previously, the `id -u $LOCAL_USER_ID` check would succeed, because there was already a user mapped to the $LOCAL_USER_ID with a different name.

Looking up the entry in the database by name, however, correctly makes the `useradd` operation idempotent. An alternative fix would be to avoid duplicating an already-existing-ID, however that would require either probing for an available ID or identifying where LOCAL_USER_ID is being set and changing it to better match the ubuntu base image, neither of which is a one-line change.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions