Browse Source

Merge remote-tracking branch 'qubesos/pr/169'

* qubesos/pr/169:
  volume.Import: write data with sufficient privs
Marek Marczykowski-Górecki 6 năm trước cách đây
mục cha
commit
658f7565db
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      qubes-rpc/admin.vm.volume.Import

+ 1 - 1
qubes-rpc/admin.vm.volume.Import

@@ -43,7 +43,7 @@ size=$(tail -c +3 "$tmpfile"|cut -d ' ' -f 1)
 path=$(tail -c +3 "$tmpfile"|cut -d ' ' -f 2)
 
 # now process stdin into this path
-if dd bs=4k of="$path" count="$size" iflag=count_bytes,fullblock \
+if sudo dd bs=4k of="$path" count="$size" iflag=count_bytes,fullblock \
         conv=sparse,notrunc,nocreat,fdatasync status=none; then
     status="ok"
 else