Skip to content

Commit 4c2c78d

Browse files
committed
Read link to canonical path
By default, it resolves the link path literally, which causes problem if other commands do not run on the same directory the link is at. For: QubesOS/qubes-core-admin#757 For: QubesOS/qubes-notification-proxy#13 For: QubesOS/qubes-issues#9940 For: QubesOS/qubes-issues#1512
1 parent 66d41d3 commit 4c2c78d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

qubes-rpc-dom0/qubes.WaitForSession

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if ! [ -L "$qrexec_name_sock" ]; then
1616
exit 1
1717
fi
1818

19-
qrexec_id_sock=$(readlink "$qrexec_name_sock")
19+
qrexec_id_sock=$(readlink -e "$qrexec_name_sock")
2020

2121
if [ -z "$qrexec_id_sock" ]; then
2222
echo "$0: readlink failed for $qrexec_name_sock" >&2

0 commit comments

Comments
 (0)