search for: fopt_count

Displaying 4 results from an estimated 4 matches for "fopt_count".

Did you mean: copy_count
2010 Mar 06
1
ssh-keyscan bug (not really exploitable)
...(*lb->errfun)("linebuf (%s): realloc failed\n", - lb->filename); - return (NULL); - } - lb->buf = p; - } -} - static int fdlim_get(int hard) { @@ -709,8 +593,10 @@ int main(int argc, char **argv) { int debug_flag = 0, log_level = SYSLOG_LEVEL_INFO; - int opt, fopt_count = 0; - char *tname; + int opt, fopt_count = 0, j; + char *tname, *line; + size_t i, line_len; + FILE *fp; extern int optind; extern char *optarg; @@ -808,20 +694,52 @@ main(int argc, char **argv) read_wait_nfdset = howmany(maxfd, NFDBITS); read_wait = xcalloc(read_wait_nfdset, sizeof(fd_m...
2003 Sep 10
3
[PATCH] No extern declarations of optarg & co if getopt.h is available
...============================================ RCS file: /cvs/openssh_cvs/ssh-keyscan.c,v retrieving revision 1.56 diff -p -u -r1.56 ssh-keyscan.c --- ssh-keyscan.c 21 Aug 2003 23:34:41 -0000 1.56 +++ ssh-keyscan.c 10 Sep 2003 18:59:01 -0000 @@ -694,8 +694,10 @@ main(int argc, char **argv) int opt, fopt_count = 0; char *tname; +#ifndef HAVE_GETOPT_H extern int optind; extern char *optarg; +#endif __progname = ssh_get_progname(argv[0]); init_rng(); Index: ssh-rand-helper.c =================================================================== RCS file: /cvs/openssh_cvs/ssh-rand-helper.c,v retr...
2002 Dec 18
2
patch for openssh3.5p1 - adds logging option
...etsid: %s", strerror(errno)); diff -urN openssh-3.5p1-orig/ssh-keyscan.c openssh-3.5p1/ssh-keyscan.c --- openssh-3.5p1-orig/ssh-keyscan.c 2002-12-18 10:10:13.000000000 -0500 +++ openssh-3.5p1/ssh-keyscan.c 2002-12-18 10:43:29.000000000 -0500 @@ -773,7 +773,7 @@ if (optind == argc && !fopt_count) usage(); - log_init("ssh-keyscan", log_level, SYSLOG_FACILITY_USER, 1); + log_init("ssh-keyscan", log_level, SYSLOG_FACILITY_USER, 1, NULL); maxfd = fdlim_get(1); if (maxfd < 0) diff -urN openssh-3.5p1-orig/ssh-keysign.c openssh-3.5p1/ssh-keysign.c --- openssh-3.5...
2012 Nov 24
0
ssh-keyscan continuity patch --
...ort(optarg); if (ssh_port <= 0) { @@ -714,7 +859,7 @@ fdlim_set(maxfd); fdcon = xcalloc(maxfd, sizeof(con)); - read_wait_nfdset = howmany(maxfd, NFDBITS); + read_wait_nfdset = howmany(maxfd + 1, NFDBITS); read_wait = xcalloc(read_wait_nfdset, sizeof(fd_mask)); for (j = 0; j < fopt_count; j++) {