udev-dump: fix gid check

Fixes a bug introduced by 03b6879f4d.
This commit is contained in:
Yu Watanabe
2025-02-07 11:07:37 +09:00
parent 0d77185555
commit e66d4ea31a

View File

@@ -81,7 +81,7 @@ void dump_event(UdevEvent *event, FILE *f) {
}
gid_t gid = event->gid;
if (!gid_is_valid(uid))
if (!gid_is_valid(gid))
(void) device_get_devnode_gid(dev, &gid);
if (gid_is_valid(gid)) {
_cleanup_free_ char *group = gid_to_name(gid);