aboutsummaryrefslogtreecommitdiff
path: root/networking/isrv_identd.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-04-21 18:38:51 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2016-04-21 18:38:51 +0200
commit9de2e5a22213842da5b116723392de88de9ed419 (patch)
treedff999a566382174e084d377dc3b4c03de1d4c62 /networking/isrv_identd.c
parent47cfbf32fd66563f8c4e09ad6cced6abfbe2fad5 (diff)
downloadbusybox-w32-9de2e5a22213842da5b116723392de88de9ed419.tar.gz
busybox-w32-9de2e5a22213842da5b116723392de88de9ed419.tar.bz2
busybox-w32-9de2e5a22213842da5b116723392de88de9ed419.zip
*: hopefully all setup_common_bufsiz() are in place
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/isrv_identd.c')
-rw-r--r--networking/isrv_identd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/networking/isrv_identd.c b/networking/isrv_identd.c
index f63ed8ee4..8a15926e5 100644
--- a/networking/isrv_identd.c
+++ b/networking/isrv_identd.c
@@ -29,8 +29,7 @@ typedef struct identd_buf_t {
29 char buf[64 - sizeof(int)]; 29 char buf[64 - sizeof(int)];
30} identd_buf_t; 30} identd_buf_t;
31 31
32#define bogouser bb_common_bufsiz1 32#define bogouser bb_common_bufsiz1
33#define sizeof_bogouser COMMON_BUFSIZE
34 33
35static int new_peer(isrv_state_t *state, int fd) 34static int new_peer(isrv_state_t *state, int fd)
36{ 35{
@@ -117,10 +116,12 @@ int fakeidentd_main(int argc UNUSED_PARAM, char **argv)
117 unsigned opt; 116 unsigned opt;
118 int fd; 117 int fd;
119 118
119 setup_common_bufsiz();
120
120 opt = getopt32(argv, "fiwb:", &bind_address); 121 opt = getopt32(argv, "fiwb:", &bind_address);
121 strcpy(bogouser, "nobody"); 122 strcpy(bogouser, "nobody");
122 if (argv[optind]) 123 if (argv[optind])
123 strncpy(bogouser, argv[optind], sizeof_bogouser - 1); 124 strncpy(bogouser, argv[optind], COMMON_BUFSIZE - 1);
124 125
125 /* Daemonize if no -f and no -i and no -w */ 126 /* Daemonize if no -f and no -i and no -w */
126 if (!(opt & OPT_fiw)) 127 if (!(opt & OPT_fiw))