]> git.tuebingen.mpg.de Git - paraslash.git/commit
fd: Open-code para_chdir().
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 25 Sep 2022 18:57:16 +0000 (20:57 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 7 May 2023 18:45:14 +0000 (20:45 +0200)
commit15f6e433432a6ba8e021c74b0f28ecd545721d42
tree1f8df8f9c083b33ac7fa0782dbc7692d10a22892
parenta25f6bb7169f0ea86522a0c613a8ec1dad358103
fd: Open-code para_chdir().

Another public trivial wrapper that can go away because it has only
a single caller. POSIX says

Upon successful completion, 0 shall be returned. Otherwise, −1 shall
be returned, the current working directory shall remain unchanged,
and errno shall be set to indicate the error.

So the new check against zero is equivalent to the old code which
checked whether the return value is non-negative.
fd.c
fd.h