Skip to content

id: handle numberic username incorrectly #7787

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
zhw2101024 opened this issue Apr 19, 2025 · 0 comments · May be fixed by #7788
Open

id: handle numberic username incorrectly #7787

zhw2101024 opened this issue Apr 19, 2025 · 0 comments · May be fixed by #7788
Labels

Comments

@zhw2101024
Copy link
Contributor

zhw2101024 commented Apr 19, 2025

There can be users with numberic username on the unix platform, we need to handle this as gnu coreutils does.
This can be reproduced with following steps:

useradd --badname -u 2000 200

#export C=coreutils/target/debug/

${C}id 200            # uid=2000(200) gid=2000(200) groups=2000(200)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy