Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Dec 27, 2024
1 parent 3d32df2 commit 921459a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sniff2ban.c
Original file line number Diff line number Diff line change
Expand Up @@ -2511,7 +2511,7 @@ setup_apache_hosts(void)
char buf[BUFSIZ + 1];

if(d->d_ino == 0 || d->d_name[0] == '.')
continue; /* Skip hidden and invalid files */
continue; /* Skip hidden and unlinked files */

if(snprintf(buf, sizeof(buf), "%s/%s", SITES_ENABLED_DIR, d->d_name) >= sizeof(buf)) {
fprintf(stderr, "File path too long, skipping: %s\n", d->d_name);
Expand Down

0 comments on commit 921459a

Please sign in to comment.