]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
In dumb_socketpair(), delete Unix-domain socket path once no longer needed
authorDaniel Lenski <dlenski@gmail.com>
Thu, 3 Feb 2022 22:12:17 +0000 (14:12 -0800)
committerDaniel Lenski <dlenski@gmail.com>
Fri, 11 Feb 2022 18:07:23 +0000 (10:07 -0800)
commitdd926507221de1c544f96f40de2d6b9001c9a2ef
treee5c42991766bda2939008c9e6a9592a0ccae43d0
parenta7bbb30a15ee1b359b46ca8c5e41a6e61e8edb92
In dumb_socketpair(), delete Unix-domain socket path once no longer needed

Small follow-up improvement to
https://gitlab.com/openconnect/openconnect/-/merge_requests/320, which made
dumb_socketpair() able to use Unix-domain sockets, on those Windows versions
that support them albeit only with named paths.

This was suggested as a way to prevent the Windows dumb_socketpair()
implementation from leaving behind size-0 files, even if normally only in
temporary directories.

See original suggestion at
https://github.com/microsoft/WSL/issues/4240#issuecomment-1027607891.

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
compat.c