telnetd: properly close fds in child

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2009-06-09 23:01:24 +02:00
parent 9d617c44d2
commit a4bcbd0e04
2 changed files with 95 additions and 64 deletions

View File

@@ -718,7 +718,7 @@ static void parse_conf(const char *path, int flag)
/* form "/path/file" */
sprintf(cur->before_colon, "/%s%.*s",
path,
after_colon - buf - 1, /* includes "/", but not ":" */
(int) (after_colon - buf - 1), /* includes "/", but not ":" */
buf);
/* canonicalize it */
p = bb_simplify_abs_path_inplace(cur->before_colon);