[PATCH 3/3] scripts: mkhash fail on hashing a folder

Bjørn Mork bjorn at mork.no
Fri Jul 17 03:20:45 EDT 2020


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.


Bjørn



More information about the openwrt-devel mailing list