https://bugs.freedesktop.org/show_bug.cgi?id=99288

            Bug ID: 99288
           Summary: Check if user belongs to weston-launch group always
                    fails if user in wheel
           Product: Wayland
           Version: unspecified
          Hardware: Other
                OS: FreeBSD
            Status: NEW
          Severity: blocker
          Priority: medium
         Component: weston
          Assignee: [email protected]
          Reporter: [email protected]

Problem:
https://github.com/wayland-project/weston/blob/master/libweston/weston-launch.c#L158
This will exit early if user belongs to wheel group (id=0) it is listed before
weston-launch in the list of groups.

Solution:
Get number of groups (=n) and iterate from 0 to n-1.

n = getgroups(0, NULL);
for (i = 0; i<n; ++i) {
    ...
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
wayland-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-bugs

Reply via email to