Commit 6d5152ea by phenigma

Fixes #2782 - only write to /etc/mtab if it is not a link

1 parent 57a77f65
Pipeline #671 passed
in 46 seconds
Showing with 1 additions and 1 deletions
......@@ -23,7 +23,7 @@ while [[ $(( start_date + 5 )) -ge $(date +%s) ]] && [[ -e /proc/$umount_pid ]]
done
sleep 0.2
cat /proc/mounts > /etc/mtab
[[ ! -L /etc/mtab ]] && cat /proc/mounts > /etc/mtab
Unlock "mtab" "umount-wrapper" >> /var/log/pluto/umount-wrapper.log
echo "$$ EXIT WITH STATUS $mount_status" >> /var/log/pluto/umount-wrapper.log
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!