]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Fix typo
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 28 May 2024 12:37:52 +0000 (14:37 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 28 May 2024 12:54:36 +0000 (14:54 +0200)
mkosi/qemu.py

index 374d507f0ce1e08a0b2fe25a7e1897ea0d691119..6855d98449e998719639743403afb21824bcc1af 100644 (file)
@@ -353,7 +353,7 @@ def start_virtiofsd(config: Config, directory: PathString, *, name: str, selinux
         scope = []
         if uidmap:
             uid = INVOKING_USER.uid if os.getuid() != INVOKING_USER.uid else None
-            gid = INVOKING_USER.gid if os.getuid() != INVOKING_USER.uid else None
+            gid = INVOKING_USER.gid if os.getgid() != INVOKING_USER.gid else None
             scope = scope_cmd(name=name, description=description, user=uid, group=gid)
         elif not uidmap and (os.getuid() == 0 or unshare_version() >= "2.38"):
             runas = become_root_cmd()