[PATCH] fs: remove O_DIRECTORY flag from O_TMPFILE

Ahmad Fatoum a.fatoum at pengutronix.de
Thu Jun 5 05:03:35 PDT 2025


Hello Sascha,

On 6/5/25 14:01, Sascha Hauer wrote:
> 
> On Wed, 04 Jun 2025 15:15:06 +0200, Stefan Kerkmann wrote:
>> Decompressing fit images fails since release 2025.05.0 with commit
>> a1248198fa ("fs: implement O_DIRECTORY").
>>
>> The reason is that converting the decompression buffer fd back to a file
>> in the `fd_to_file` fails the `O_DIRECTORY` flag check. This is flag is
>> set because `O_TMPFILE` is defined to contain the `O_DIRECTORY` flag.
>>
>> [...]
> 
> Applied, thanks!

Does this warrant a v2025.05.0 or should we just have an early v2025.06.0?

Thanks,
Ahmad

> 
> [1/1] fs: remove O_DIRECTORY flag from O_TMPFILE
>       https://git.pengutronix.de/cgit/barebox/commit/?id=95aeb8d47d10 (link may not be stable)
> 
> Best regards,

-- 
Pengutronix e.K.                  |                             |
Steuerwalder Str. 21              | http://www.pengutronix.de/  |
31137 Hildesheim, Germany         | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686  | Fax:   +49-5121-206917-5555 |




More information about the barebox mailing list