summaryrefslogtreecommitdiffstats
path: root/honeypot.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-06-05 03:43:13 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2012-06-05 03:43:13 +0200
commit0ef91c0054f33eadb0de319e101f919f795240b4 (patch)
tree842c52ab8943d77c0a0031b33129169539df2526 /honeypot.c
parentAdd ability to daemonize. (diff)
downloadtelnet-password-honeypot-0ef91c0054f33eadb0de319e101f919f795240b4.tar.xz
telnet-password-honeypot-0ef91c0054f33eadb0de319e101f919f795240b4.zip
We don't use stdin at all, so close it.
Diffstat (limited to 'honeypot.c')
-rw-r--r--honeypot.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/honeypot.c b/honeypot.c
index 326792a..edadc2f 100644
--- a/honeypot.c
+++ b/honeypot.c
@@ -521,6 +521,8 @@ int main(int argc, char *argv[])
{0, 0, 0, 0}
};
+ close(STDIN_FILENO);
+
while ((option = getopt_long(argc, argv, "dfl:o:p:h", long_options, &option_index)) != -1) {
switch (option) {
case 'd':