qubes/storage/file: clone file images as normal user

No need to be root here.

QubesOS/qubes-issues#2256
This commit is contained in:
Marek Marczykowski-Górecki 2016-09-04 20:56:02 +02:00
parent 3e30dc17cb
commit 0af5fdd267
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -471,7 +471,7 @@ def copy_file(source, destination):
os.makedirs(parent_dir)
try:
cmd = ['sudo', 'cp', '--sparse=auto',
cmd = ['cp', '--sparse=auto',
'--reflink=auto', source, destination]
subprocess.check_call(cmd)
except subprocess.CalledProcessError: