Do not use -f flag for readlink

Close #4104, fix #4098
This commit is contained in:
topjohnwu 2021-03-28 04:43:10 -07:00
parent fb8dc07599
commit aa02057895

View File

@ -595,7 +595,7 @@ copy_sepolicy_rules() {
local RULESDIR
local active_dir=$(magisk --path)/.magisk/mirror/sepolicy.rules
if [ -L $active_dir ]; then
RULESDIR=$(readlink -f $active_dir)
RULESDIR=$(readlink $active_dir)
elif [ -d /data/unencrypted ] && ! grep ' /data ' /proc/mounts | grep -qE 'dm-|f2fs'; then
RULESDIR=/data/unencrypted/magisk
elif grep -q ' /cache ' /proc/mounts; then