Skip to content

Commit 00e5c25

Browse files
committed
Restore support for access control filenames without a group
Regression from commit b15ef71 of release 1.1.0, detailed analysis online at #540 (comment)
1 parent 0eaa885 commit 00e5c25

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Daemon/Daemon.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,11 @@ namespace usbguard
451451
const std::string user = basename.substr(0, ug_separator);
452452
const std::string group = has_group ? basename.substr(ug_separator + 1) : std::string();
453453
checkIPCAccessControlName(user);
454-
checkIPCAccessControlName(group);
454+
455+
if (! group.empty()) {
456+
checkIPCAccessControlName(group);
457+
}
458+
455459
*ptr_user = user;
456460
*ptr_group = group;
457461
}

0 commit comments

Comments
 (0)