diff --git a/qubes-rpc/qopen-in-vm.c b/qubes-rpc/qopen-in-vm.c index bffdd98..7c40de5 100644 --- a/qubes-rpc/qopen-in-vm.c +++ b/qubes-rpc/qopen-in-vm.c @@ -44,7 +44,7 @@ int copy_and_return_nonemptiness(int tmpfd) gui_fatal("fstat"); close(tmpfd); - return st.st_size; + return st.st_size > 0; } void recv_file_nowrite(char *fname)