diff options
author | 2019-06-15 15:28:55 +0000 | |
---|---|---|
committer | 2019-06-15 15:28:55 +0000 | |
commit | df78be12e7f55e17aefb99b73e999afa35e8ad02 (patch) | |
tree | 41906f7725f654583624b94a4fc90356846cbba9 /lib/libc | |
parent | Fix previous commit and unbreak the tree. (diff) | |
download | wireguard-openbsd-df78be12e7f55e17aefb99b73e999afa35e8ad02.tar.xz wireguard-openbsd-df78be12e7f55e17aefb99b73e999afa35e8ad02.zip |
Have __realpath() do the pathname==NULL -> EINVAL check itself, eliminating
the need to do this in libc.
btw, it is unfortunate posix went this way, because converting a clearly
illegal condition to not be fatal but instead return an error which is
potentially not checked in the caller, is sadly a large component of the
runaway-train model that makes exploitation of software easy.. illegal
software should crash hard.
ok beck
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions