diff options
| author | lukem <lukem@NetBSD.org> | 2019-01-29 23:19:30 +0000 |
|---|---|---|
| committer | lukem <lukem@NetBSD.org> | 2019-01-29 23:19:30 +0000 |
| commit | 8b3ad71166dd6eeeeb44e740c71dcc14e4e172b5 (patch) | |
| tree | 591606f27e01c411c9d03a2a21ba6864c3a22327 /libexec | |
| parent | df7ac175e8021b3110be49269689c368a24fb65c (diff) | |
clarify the fd used for blacklisting.
Use STDIN_FILENO instead of 0 as the fd to blacklist_r(),
since we use the former in ftpd.c
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/ftpd/pfilter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/ftpd/pfilter.c b/libexec/ftpd/pfilter.c index aa121c970fe..9596e9eaf71 100644 --- a/libexec/ftpd/pfilter.c +++ b/libexec/ftpd/pfilter.c @@ -1,4 +1,5 @@ #include <stdio.h> +#include <unistd.h> #include <blacklist.h> #include "pfilter.h" @@ -20,5 +21,5 @@ pfilter_notify(int what, const char *msg) if (blstate == NULL) return; - blacklist_r(blstate, what, 0, msg); + blacklist_r(blstate, what, STDIN_FILENO, msg); } |
