Files
Sebastiaan van Stijn 357096e924 libnetwork/etchosts: keep file open when updating hosts
Open the hosts file once for both reading and writing, instead of reading
and writing it through separate file operations.

This keeps the update on the same file handle, avoids reopening the path
between the read and write, and preserves the existing file metadata.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-10-01 14:11:29 +02:00
..