curl/tests/server
Viktor Szakats 0dae3b2690
servers: accept lstat() failing due to the file missing
In `bind_unix_socket()`, before retrying `bind()`.

Before this patch the code wanted to check if the to-be-deleted unix
socket path was indeed a socket, before deleting it and retrying to
bind. If `lstat()` failed for any reason, it skipped retry. Fix to retry
if `lstat()` failed because of the file missing.

Ref: https://pubs.opengroup.org/onlinepubs/9799919799/functions/lstat.html

Follow-up to 0882e3951d #22026
Follow-up to 03bc93bd32 #22021
Follow-up to e70f8ebd34 #22020
Follow-up to 30e491e5c9 #7034
Follow-up to 99fb36797a

Closes #22010
2026-06-15 16:43:21 +02:00
..
.checksrc build: tidy up and dedupe strdup functions 2026-02-03 14:02:30 +01:00
.gitignore tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
CMakeLists.txt cmake: rename testbins target to tt, restore internal option 2026-03-01 00:24:47 +01:00
dnsd.c servers: minor socket error handling fixes 2026-06-14 16:16:25 +02:00
first.c tidy-up: drop stray comparisons with literal zero 2026-06-10 15:15:54 +02:00
first.h build: include curlx headers directly in src and tests 2026-03-16 12:05:39 +01:00
getpart.c tidy-up: miscellaneous 2026-06-14 20:10:28 +02:00
Makefile.am autotools: limit checksrc target to ignore non-repo test sources 2026-03-12 01:45:24 +01:00
Makefile.inc tests/server: drop unused curlx/version_win32.c 2026-03-08 18:17:11 +01:00
mqttd.c servers: drop single-use interim result variables 2026-06-14 17:49:33 +02:00
resolve.c build: use more const 2026-02-02 12:32:49 +01:00
rtspd.c tidy-up: miscellaneous 2026-06-14 20:10:28 +02:00
sockfilt.c tidy-up: miscellaneous 2026-06-14 20:10:28 +02:00
socksd.c servers: drop single-use interim result variables 2026-06-14 17:49:33 +02:00
sws.c tidy-up: miscellaneous 2026-06-14 20:10:28 +02:00
tftpd.c tidy-up: miscellaneous 2026-06-14 20:10:28 +02:00
util.c servers: accept lstat() failing due to the file missing 2026-06-15 16:43:21 +02:00