Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
waynecochran
on April 13, 2022
|
parent
|
context
|
favorite
| on:
Git security vulnerability announced
It's using it here on line 1042?
git_config_pathname(&interpolated, key, value)
Matheus28
on April 13, 2022
[–]
Yes but that's a general use function, it won't check for safe.directory inside of it
db48x
on April 13, 2022
|
parent
[–]
Right, all that does is turn paths like ~/foo into /home/<user>/foo. I’ve no idea why it even takes the key as an argument.
Matheus28
on April 13, 2022
|
root
|
parent
[–]
It's so it can print an error referring to the key if there was a problem parsing.
db48x
on April 13, 2022
|
root
|
parent
[–]
Oh, that makes sense.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: