Skip to content

Commit

Permalink
Avoid specifying the path multiple times
Browse files Browse the repository at this point in the history
Signed-off-by: Fyg369 <142138034+Fyg369@users.noreply.github.com>
  • Loading branch information
Fyg369 authored and dabao1955 committed Feb 6, 2025
1 parent ec02434 commit dff39a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernelsu/patch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ int path_umount(struct path *path, int flags)\n\
/return dentry;/ {n; a\
#ifdef CONFIG_KSU\nextern int ksu_handle_devpts(struct inode*);\n#endif
}
}' fs/devpts/inode.c
sed -i '/if (dentry->d_sb->s_magic != DEVPTS_SUPER_MAGIC)/i\
}
/if (dentry->d_sb->s_magic != DEVPTS_SUPER_MAGIC)/i\
#ifdef CONFIG_KSU\n ksu_handle_devpts(dentry->d_inode);\n #endif' fs/devpts/inode.c
;;
esac
Expand Down

0 comments on commit dff39a6

Please sign in to comment.