Commit aa020578 authored by topjohnwu's avatar topjohnwu

Do not use -f flag for readlink

Close #4104, fix #4098
parent fb8dc075
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment