1
0
mirror of https://git.tukaani.org/xz.git synced 2025-02-22 16:38:11 +00:00

xzdec: Don't leave Landlock file descriptor open for no reason

This fix is similar to 48ff3f06521ca326996ab9a04d1b342098960427.

Fixes: d74fb5f060b76db709b50f5fd37490394e52f975
This commit is contained in:
Lasse Collin 2025-01-04 20:04:56 +02:00
parent 35df4c2bc0
commit 2655c81b5e
No known key found for this signature in database
GPG Key ID: 38EE757D69184620

View File

@ -343,6 +343,8 @@ sandbox_enter(int src_fd)
// before activating the sandbox.
if (my_landlock_restrict_self(ruleset_fd, 0) != 0)
goto error;
(void)close(ruleset_fd);
}
(void)src_fd;