Skip to content

Commit

Permalink
fix: wdctclx add command args parse error
Browse files Browse the repository at this point in the history
Signed-off-by: Dengfeng Liu <[email protected]>
  • Loading branch information
liudf0716 committed Jun 12, 2024
1 parent 005d856 commit 79f55a5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/wdctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,13 +260,8 @@ show_command(const char *type) {

static void
add_command(const char *type, char *values) {
char *token = strtok(values, ",");
printf("Adding to %s: ", type);
while (token != NULL) {
printf("%s ", token);
token = strtok(NULL, ",");
}
printf("\n");
printf("Adding %s values is %s\n", type, values);

// Add the logic to add the values to domain|wildcard_domain|mac
if (strcmp(type, "domain") == 0) {
wdctl_command_action("add_trusted_domains", values);
Expand Down

0 comments on commit 79f55a5

Please sign in to comment.