From 906741c361538db8027369c7842a0ad62b682641 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sun, 17 Jul 2011 01:12:59 +0200 Subject: [PATCH] dom0: do not use os.getlogin() It doesn't work when VM started from init.d script --- dom0/aux-tools/qubes-receive-updates | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom0/aux-tools/qubes-receive-updates b/dom0/aux-tools/qubes-receive-updates index cea29247..f306cb11 100755 --- a/dom0/aux-tools/qubes-receive-updates +++ b/dom0/aux-tools/qubes-receive-updates @@ -47,7 +47,7 @@ def handle_dom0updates(updatevm): shutil.rmtree(updates_rpm_dir) os.mkdir(updates_rpm_dir) os.chmod(updates_rpm_dir, 0775) - subprocess.check_call(["/usr/lib/qubes/qfile-dom0-unpacker", os.getlogin(), updates_rpm_dir]) + subprocess.check_call(["/usr/lib/qubes/qfile-dom0-unpacker", str(os.getuid()), updates_rpm_dir]) # Verify received files for f in os.listdir(updates_rpm_dir): if package_regex.match(f):