Commit 155cbf4
Brendan DeBeasi
fix: use exact match for USER_NAME in /etc/passwd check
The grep pattern `^${USER_NAME}` incorrectly matches usernames that
are prefixes of existing users. For example, USER_NAME=b matches the
'bin' user, causing the container to halt with a false positive.
Adding a colon after USER_NAME ensures exact username matching:
`^${USER_NAME}:` only matches the exact username field.
closes #1181 parent 3923d9a commit 155cbf4
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments