aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2023-06-30 11:28:07 +0200
committerPapoteur <papoteur@mageia.org>2023-06-30 11:28:07 +0200
commit23cd3e7048252777e6bb38288b66c14c2ec718db (patch)
tree8be4424b6c21b3603ee5c8846a1098cea378a3c1 /lib
parentd9ed76e1088e8af27bdea226a9f562e91209283a (diff)
downloadisodumper-23cd3e7048252777e6bb38288b66c14c2ec718db.tar
isodumper-23cd3e7048252777e6bb38288b66c14c2ec718db.tar.gz
isodumper-23cd3e7048252777e6bb38288b66c14c2ec718db.tar.bz2
isodumper-23cd3e7048252777e6bb38288b66c14c2ec718db.tar.xz
isodumper-23cd3e7048252777e6bb38288b66c14c2ec718db.zip
Give user ownership to the backup image.
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)