squashfs4: backport an upstream change to fix the file mode check to allow setuid/setgid binaries (thx, ermo) - fixes #7653

SVN-Revision: 22334
owl
Felix Fietkau 2010-07-21 17:31:16 +00:00
parent fd8142403e
commit 67b4181c8a
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- a/squashfs-tools/pseudo.c
+++ b/squashfs-tools/pseudo.c
@@ -374,7 +374,7 @@
}
- if(mode > 0777) {
+ if(mode > 07777) {
ERROR("Mode %o out of range\n", mode);
goto error;
}