From 8b3ad71166dd6eeeeb44e740c71dcc14e4e172b5 Mon Sep 17 00:00:00 2001 From: lukem Date: Tue, 29 Jan 2019 23:19:30 +0000 Subject: 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 --- libexec/ftpd/pfilter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libexec') 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 +#include #include #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); } -- cgit