summaryrefslogtreecommitdiffstats
path: root/tests/load-hook.tl
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-07-04 22:02:41 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-07-04 22:02:41 -0700
commitb0b19cf4a46b55a54be5a12e03b3eed244621cb4 (patch)
treea1f911cdcce11b40471dda8b0c947b45fee3cd3f /tests/load-hook.tl
parentc52e7f904cbe249348eaac987a531aeadc0dda32 (diff)
downloadtxr-b0b19cf4a46b55a54be5a12e03b3eed244621cb4.tar.gz
txr-b0b19cf4a46b55a54be5a12e03b3eed244621cb4.tar.bz2
txr-b0b19cf4a46b55a54be5a12e03b3eed244621cb4.zip
crypt: handle libxcrypt failure tokens.
Some OS distros have switched to a library called libxcrypt, which, instead of returning null on failure, like the Glibc crypt, returns a valid "failure token" string starting with a * character, which is guaranteed to be different from the salt argument. We should check for this so that we handle errors uniformly. Users are reporting failing crypt tests that are coming up with "*0" instead of throwing an exception. * sysif.c (crypt_wrap): Only accept a non-null result if it isn't one of the two strings "*0" and "*1".
Diffstat (limited to 'tests/load-hook.tl')
0 files changed, 0 insertions, 0 deletions