Skip to content

Commit

Permalink
qvm-copy: add message about file/directory not found before qrexec
Browse files Browse the repository at this point in the history
  • Loading branch information
fepitre committed Feb 15, 2022
1 parent b5c151e commit 9b69805
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions qubes-rpc/qvm-copy
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ if [ "$PROGRESS_TYPE" = console ] ; then
export FILECOPY_TOTAL_SIZE
fi

for path in "$@"; do
if [ ! -e "$path" ]; then
echo "File or directory not found: $path"
exit 1
fi
done

/usr/lib/qubes/qrexec-client-vm -- "$VM" qubes.Filecopy /usr/lib/qubes/qfile-agent "$@"

if [ "$OPERATION_TYPE" = "move" ] ; then
Expand Down

0 comments on commit 9b69805

Please sign in to comment.