Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> usernames were passed as arguments to getent(1) to retrieve the corresponding passwd entry

Always try to use actual API/system calls (in this case getpwnam) instead of calling sub-processes.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: