|
|
@@ -64,7 +64,7 @@ runs:
|
|
|
echo "Applying open.c Android 13 5.15 Fake Patch"
|
|
|
sed -i '/^#include <linux\/compat.h>$/a #include <linux/mnt_idmapping.h>' fs/open.c
|
|
|
echo "Applying fdinfo.c Android 13 5.15 Fake Patch"
|
|
|
- sed -i '/^[[:space:]]*\/\*$\|^[[:space:]]*u32 mask = mark->mask & IN_ALL_EVENTS;$/d' fs/notify/fdinfo.c
|
|
|
+ perl -0777 -i -pe 's{(if \(inode\) \{\n)\t\t \*[^\n]*\n(\t\t \*[^\n]*\n)*\t\t \*/\n}{$1}g; s{^[[:space:]]*u32 mask = mark->mask & IN_ALL_EVENTS;\n}{}m' fs/notify/fdinfo.c
|
|
|
perl -i -pe 's/\bmask,\s*mark->ignored_mask/inotify_mark_user_mask(mark)/g' fs/notify/fdinfo.c
|
|
|
perl -i -pe 's/ignored_mask:%x/ignored_mask:0/g' fs/notify/fdinfo.c
|
|
|
fi
|