Skip to content

Commit

Permalink
test/kqueue: watch symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
arp242 committed May 16, 2024
1 parent 800ed83 commit c1467c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/kqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ int main(int argc, char* argv[]) {
char *path = malloc(strlen(dir) + strlen(ls->d_name) + 2);
sprintf(path, "%s/%s", dir, ls->d_name);

int fp = open(path, O_RDONLY);
int fp = open(path, O_RDONLY | O_PATH | O_NOFOLLOW);
if (fp == -1)
die("open: %s:", path);
fds[++n_fds] = fp;
Expand Down

0 comments on commit c1467c0

Please sign in to comment.