Skip to content
Commit 0f9793a5 authored by Florian Weimer's avatar Florian Weimer
Browse files

Linux: unlockpt needs to fail with EINVAL, not ENOTTY (bug 26053)



The EINVAL error code is mandated by POSIX and documented in the
manual.  Also clean up the unlockpt implementation a bit, assuming
that TIOCSPTLCK is always defined.

Enhance login/tst-grantpt to cover unlockpt corner cases.

Reviewed-by: default avatarAdhemerval Zanella <adhemerval.zanella@linaro.org>
parent c42b7058
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment