[PATCH 3/3] scripts: mkhash fail on hashing a folder
mail at aparcar.org
Fri Jul 17 04:22:03 EDT 2020
On 16.07.20 21:20, Bjørn Mork wrote:
> Paul Spooren <mail at aparcar.org> writes:
>> To avoid hashing of folders `fopen()` is called in `r+` mode which fails
>> on folders, as their are not writeable. Regular files work as before.
> This prevents mkhash from working with read-only files. That's
> unexpected, and IMHO worse than the problem you are trying to fix.
Thank you, I created a v2 using stat().
More information about the openwrt-devel