Jelajahi Sumber

fix(action): comment out conditional fixes for Android 12 and 5.10 in action.yml

TheWildJames 4 bulan lalu
induk
melakukan
a9118908bf
1 mengubah file dengan 8 tambahan dan 8 penghapusan
  1. 8 8
      .github/actions/susfs/action.yml

+ 8 - 8
.github/actions/susfs/action.yml

@@ -97,14 +97,14 @@ runs:
 
         FIX_REJ=0
         if [ "${{ inputs.kernel_version }}" = "5.10" ] && [ "${{ inputs.android_version }}" = "android12" ]; then
-          if grep -q '^size_t this_len = min_t(size_t, count, PAGE_SIZE);$' fs/proc/base.c; then
-            sed -i 's/^int this_len = min_t(int, count, PAGE_SIZE);$/size_t this_len = min_t(size_t, count, PAGE_SIZE);/' fs/proc/base.c
-            FIX_REJ=1
-          fi
-          if ! grep -q '#include <linux/mnt_idmapping.h>$' fs/open.c; then
-            sed -i '/#include <linux\/compat.h>$/a #include <linux/mnt_idmapping.h>' fs/open.c
-            FIX_REJ=1
-          fi
+          #if grep -q '^size_t this_len = min_t(size_t, count, PAGE_SIZE);$' fs/proc/base.c; then
+          #  sed -i 's/^int this_len = min_t(int, count, PAGE_SIZE);$/size_t this_len = min_t(size_t, count, PAGE_SIZE);/' fs/proc/base.c
+          #  FIX_REJ=1
+          #fi
+          #if ! grep -q '#include <linux/mnt_idmapping.h>$' fs/open.c; then
+          #  sed -i '/#include <linux\/compat.h>$/a #include <linux/mnt_idmapping.h>' fs/open.c
+          #  FIX_REJ=1
+          #fi
         elif [ "${{ inputs.kernel_version }}" = "5.15" ] && [ "${{ inputs.android_version }}" = "android13" ]; then
           if grep -q '^size_t this_len = min_t(size_t, count, PAGE_SIZE);$' fs/proc/base.c; then
             sed -i 's/^int this_len = min_t(int, count, PAGE_SIZE);$/size_t this_len = min_t(size_t, count, PAGE_SIZE);/' fs/proc/base.c