summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2008-11-21 23:44:05 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2008-11-21 23:44:05 +0000
commitf5579dd085ffbaca82e73eef9b627b579ecd0b4c (patch)
tree6992781d9a8a4e3bd8728eddcdd8f360c33b3bff /usr.sbin
parenta9bbdeebd54ce9cf01f8ac012202ce5627632c5b (diff)
closefrom the fds that we aren't interested in. pr5994
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/rtadvd/rtadvd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/rtadvd/rtadvd.c b/usr.sbin/rtadvd/rtadvd.c
index 0a61392cf32..0c11fb2d2b2 100644
--- a/usr.sbin/rtadvd/rtadvd.c
+++ b/usr.sbin/rtadvd/rtadvd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtadvd.c,v 1.37 2008/11/03 07:02:44 deraadt Exp $ */
+/* $OpenBSD: rtadvd.c,v 1.38 2008/11/21 23:44:04 tedu Exp $ */
/* $KAME: rtadvd.c,v 1.66 2002/05/29 14:18:36 itojun Exp $ */
/*
@@ -158,6 +158,8 @@ main(argc, argv)
log_init(1); /* log to stderr until daemonized */
+ closefrom(3);
+
/* get command line options and arguments */
#define OPTIONS "c:dM:Rs"
while ((ch = getopt(argc, argv, OPTIONS)) != -1) {