aboutsummaryrefslogtreecommitdiff
path: root/networking/isrv_identd.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/isrv_identd.c')
-rw-r--r--networking/isrv_identd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/networking/isrv_identd.c b/networking/isrv_identd.c
index 252c8aba9..8a15926e5 100644
--- a/networking/isrv_identd.c
+++ b/networking/isrv_identd.c
@@ -18,6 +18,7 @@
18//usage: "\n STRING Ident answer string (default: nobody)" 18//usage: "\n STRING Ident answer string (default: nobody)"
19 19
20#include "libbb.h" 20#include "libbb.h"
21#include "common_bufsiz.h"
21#include <syslog.h> 22#include <syslog.h>
22#include "isrv.h" 23#include "isrv.h"
23 24
@@ -115,10 +116,12 @@ int fakeidentd_main(int argc UNUSED_PARAM, char **argv)
115 unsigned opt; 116 unsigned opt;
116 int fd; 117 int fd;
117 118
119 setup_common_bufsiz();
120
118 opt = getopt32(argv, "fiwb:", &bind_address); 121 opt = getopt32(argv, "fiwb:", &bind_address);
119 strcpy(bogouser, "nobody"); 122 strcpy(bogouser, "nobody");
120 if (argv[optind]) 123 if (argv[optind])
121 strncpy(bogouser, argv[optind], sizeof(bogouser) - 1); 124 strncpy(bogouser, argv[optind], COMMON_BUFSIZE - 1);
122 125
123 /* Daemonize if no -f and no -i and no -w */ 126 /* Daemonize if no -f and no -i and no -w */
124 if (!(opt & OPT_fiw)) 127 if (!(opt & OPT_fiw))