Module Name: src
Committed By: lukem
Date: Tue Jan 29 23:19:31 UTC 2019
Modified Files:
src/libexec/ftpd: pfilter.c
Log Message:
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
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/libexec/ftpd/pfilter.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/libexec/ftpd/pfilter.c
diff -u src/libexec/ftpd/pfilter.c:1.1 src/libexec/ftpd/pfilter.c:1.2
--- src/libexec/ftpd/pfilter.c:1.1 Sun Jan 25 15:53:49 2015
+++ src/libexec/ftpd/pfilter.c Tue Jan 29 23:19:30 2019
@@ -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);
}