]> git.enpas.org Git - openwrt.git/blob - tools/squashfs4/patches/140-mode_check.patch
[tools] squashfs4: fix compilation on FreeBSD
[openwrt.git] / tools / squashfs4 / patches / 140-mode_check.patch
1 --- a/squashfs-tools/pseudo.c
2 +++ b/squashfs-tools/pseudo.c
3 @@ -374,7 +374,7 @@
4         }
5  
6  
7 -       if(mode > 0777) {
8 +       if(mode > 07777) {
9                 ERROR("Mode %o out of range\n", mode);
10                 goto error;
11         }