aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/isodumper.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py
index 85487a0..aef0f93 100755
--- a/lib/isodumper.py
+++ b/lib/isodumper.py
@@ -483,7 +483,10 @@ class IsoDumper(basedialog.BaseDialog):
self.logger(message)
logging.info(message)
# Writing step
+ # set flag and provide uid, gid of current user to set the owner of the backup file at end
+ self.iface.set_backup_mode(os.getuid(), os.getgid())
self.iface.do_write(source, dest, self.deviceSize)
+ self.iface.unset_backup_mode()
while not self.iface.done:
progress = self.iface.progress
self.progress.setValue(progress)