[PATCH master 1/4] commands: stat: fix leaking file descriptors on early exit

Sascha Hauer s.hauer at pengutronix.de
Mon Jun 23 01:36:57 PDT 2025


On Mon, 23 Jun 2025 08:20:29 +0200, Ahmad Fatoum wrote:
> We currently leak the dirfd if we encounter an error during option
> parsing. Fix this by only recording the path at first and opening the
> dirfd once all options have been parsed.
> 
> 

Applied, thanks!

[1/4] commands: stat: fix leaking file descriptors on early exit
      https://git.pengutronix.de/cgit/barebox/commit/?id=c7179f4d267a (link may not be stable)
[2/4] lib: idr: make idr_for_each_entry removal safe
      https://git.pengutronix.de/cgit/barebox/commit/?id=4cee126abc0d (link may not be stable)
[3/4] startup: track system state with regards to initcall/exitcalls
      https://git.pengutronix.de/cgit/barebox/commit/?id=18993a87a236 (link may not be stable)
[4/4] fs: do not skip fs_remove when calling umount ramfs
      https://git.pengutronix.de/cgit/barebox/commit/?id=8dbe672c662b (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list