search for: gl_matchc

Displaying 19 results from an estimated 19 matches for "gl_matchc".

2007 Dec 12
0
Revisiting sftp tab completion patch
...dcard */ + tmp = xmalloc(len); + snprintf(tmp, len, "%s*", file); + + memset(&g, 0, sizeof(g)); + if (remote != LOCAL) { + tmp = make_absolute(tmp, remote_path); + remote_glob(conn, tmp, 0, NULL, &g); + } else + glob(tmp, GLOB_DOOFFS, NULL, &g); + + xfree(tmp); + + if (g.gl_matchc == 0) + return (0); + + tmp2 = complete_ambiguous(file, g.gl_pathv, g.gl_matchc); + tmp = path_strip(tmp2, remote_path); + xfree(tmp2); + + if (g.gl_matchc > 1) { + char *pwd = strrchr(g.gl_pathv[0], '/'); + u_int len = 0; + + if (pwd != NULL) + len = strlen(g.gl_pathv[0]) - strle...
2003 Jan 16
1
Core dump in sftp from CVS
...sftp-server... sftp> version SFTP protocol version 3 sftp> get /bin/ls ./copy.1 sftp> put /bin/ls ./copy.2 Segmentation Fault (core dumped) The cause appears to be sftp-int.c line 508: 506 /* Only one match, dst may be file, directory or unspecified */ 507 if (g.gl_pathv[0] && g.gl_matchc == 1) { 508 if (!is_reg(g.gl_pathv[i])) { ^^^ The variable "i" is uninitialized at this point. The code is the same in OpenBSD and portable. Attached patch passes regression on Solaris 8. -- Darren Tucker (dtucker at zip.com.au) GPG Fingerprint D9A3 86E9 7EEE AF4B B2D4 3...
2006 Apr 01
0
sftp tab completion patch (First release - NOT FOR INCLUDING YET)
...) +{ + glob_t g; + size_t len = strlen(file) + 2; + char *tmp = xmalloc(len); + + memset(&g, 0, sizeof(g)); + snprintf(tmp, len, "%s*", file); + if (remote == LOCAL) + glob(tmp, GLOB_DOOFFS, NULL, &g); + else + remote_glob(conn, tmp, 0, NULL, &g); + + xfree(tmp); + + if (g.gl_matchc == 0) + return (0); + + tmp = complete_ambiguous(file, g.gl_pathv, g.gl_matchc); + globfree(&g); + if (tmp != NULL && strlen(tmp) > strlen(file)) { + if (el_insertstr(el, tmp + strlen(file)) == -1) + fatal("el_insertstr failed."); + xfree(tmp); + } + return (g.gl_matc...
2008 Jul 21
2
sftp needs a long time for sending a filelist
Hello all Im using sftp 1:4.7p1-8ubuntu1.2 in a batchjob Ive noticed that sftp needs a long time for sending a filelist. The timespan increases exponential if many files are on the remoteserver. for example "ls -la *.txt" needs 10 seconds for 2000 files but needs 50 seconds for 4000 files. For 150.000 Files i have to wait 15 minutes for example but the
2006 May 15
0
[PATCH 7/12] bugfix: openssh-4.3p2
...hanged, 2 insertions(+), 3 deletions(-) diff -uprN openssh-4.3p2/sftp.c openssh-4.3p2-kylie/sftp.c --- openssh-4.3p2/sftp.c 2006-01-31 04:49:28.000000000 -0600 +++ openssh-4.3p2-kylie/sftp.c 2006-05-08 15:01:49.907239064 -0500 @@ -539,14 +539,15 @@ process_get(struct sftp_conn *conn, char if (g.gl_matchc == 1 && dst) { /* If directory specified, append filename */ if (is_dir(dst)) { + xfree(tmp); if (infer_path(g.gl_pathv[0], &tmp)) { err = 1; goto out; } abs_dst = path_append(dst, tmp); - xfree(tmp); } else abs_dst = xstrdup(dst); + x...
2010 May 05
2
[Bug 1767] New: Inconsistend wildcard expansion in 'ls *'
https://bugzilla.mindrot.org/show_bug.cgi?id=1767 Summary: Inconsistend wildcard expansion in 'ls *' Product: Portable OpenSSH Version: 5.5p1 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: sftp AssignedTo: unassigned-bugs at mindrot.org
2001 Mar 28
0
sftp client globbing problems on Solaris, Irix, etc
...================================================================ RCS file: /var/cvs/openssh/acconfig.h,v retrieving revision 1.108 diff -u -r1.108 acconfig.h --- acconfig.h 2001/03/17 01:15:38 1.108 +++ acconfig.h 2001/03/28 03:28:37 @@ -308,6 +308,9 @@ /* Define if your system glob() function has gl_matchc options in glob_t */ #undef GLOB_HAS_GL_MATCHC +/* Define in your struct dirent expects you to allocate extra space for d_name */ +#undef BROKEN_ONE_BYTE_DIRENT_D_NAME + @BOTTOM@ /* ******************* Shouldn't need to edit below this line ************** */ Index: configure.in ===========...
2002 May 09
2
OSSH_PATH_ENTROPY_PROG' unexpected
...es checking for strcasecmp... yes checking for utimes... yes checking for libutil.h... no checking for library containing login... no checking for logout... no checking for updwtmp... yes checking for logwtmp... no checking for strftime... yes checking for GLOB_ALTDIRFUNC support... no checking for gl_matchc field in glob_t... no checking whether struct dirent allocates space for d_name... no checking for libwrap... yes checking for arc4random... no checking for atexit... yes checking for b64_ntop... no checking for bcopy... yes checking for bindresvport_sa... no checking for clock... yes checking for...
2001 Oct 26
2
problems building on solaris 2.6
...sys/ttcompat.h... yes checking for sys/un.h... yes checking for time.h... yes checking for ttyent.h... no checking for usersec.h... no checking for util.h... no checking for utime.h... yes checking for utmp.h... yes checking for utmpx.h... yes checking for GLOB_ALTDIRFUNC support... no checking for gl_matchc field in glob_t... no checking whether struct dirent allocates space for d_name... no checking for arc4random... no checking for atexit... yes checking for b64_ntop... no checking for bcopy... yes checking for bindresvport_sa... no checking for clock... yes checking for fchmod... yes checking for f...
2001 May 15
0
openssh 2.9p1 on Solaris 2.6 with AFS
...cking for stddef.h... yes checking for time.h... yes checking for ttyent.h... no checking for usersec.h... no checking for util.h... no checking for utime.h... yes checking for utmp.h... yes checking for utmpx.h... yes checking for vis.h... no checking for GLOB_ALTDIRFUNC support... no checking for gl_matchc field in glob_t... no checking whether struct dirent allocates space for d_name... no checking for libwrap... yes checking for arc4random... no checking for atexit... yes checking for b64_ntop... no checking for bcopy... yes checking for bindresvport_sa... no checking for clock... yes checking for...
2006 Aug 30
30
Testing for the 4.4p1 release
Hi, The 4.4p1 release is approaching now, so we are now asking people to actively test snapshots or CVS and report back to the mailing list. Snapshots are available from http://www.mindrot.org/openssh_snap or from any of the mirrors listed on http://www.openssh.org/portable.html The latter page also includes instructions for checking out portable OpenSSH via anonymous CVS. This release
2003 Jun 22
2
Problem with Configure
...il.h usability... no checking libutil.h presence... no checking for libutil.h... no checking for library containing login... -lutil checking for logout... yes checking for updwtmp... no checking for logwtmp... yes checking for strftime... yes checking for GLOB_ALTDIRFUNC support... yes checking for gl_matchc field in glob_t... no checking whether struct dirent allocates space for d_name... yes checking for arc4random... no checking for __b64_ntop... yes checking for b64_ntop... no checking for __b64_pton... yes checking for b64_pton... no checking for basename... no checking for bcopy... yes checking f...
2001 Jul 11
0
Solaris 2.6: Undefined symbol seed_rng
...cking for stddef.h... yes checking for time.h... yes checking for ttyent.h... no checking for usersec.h... no checking for util.h... no checking for utime.h... yes checking for utmp.h... yes checking for utmpx.h... yes checking for vis.h... no checking for GLOB_ALTDIRFUNC support... no checking for gl_matchc field in glob_t... no checking whether struct dirent allocates space for d_name... no checking for arc4random... no checking for atexit... yes checking for b64_ntop... no checking for bcopy... yes checking for bindresvport_sa... no checking for clock... yes checking for fchown... yes checking for f...
2006 Feb 06
1
Compile warning report of openssh 4.3p1 on Intel Macs
...sability... no checking libutil.h presence... no checking for libutil.h... no checking for library containing login... none required checking for logout... yes checking for updwtmp... no checking for logwtmp... yes checking for strftime... yes checking for GLOB_ALTDIRFUNC support... no checking for gl_matchc field in glob_t... no checking whether struct dirent allocates space for d_name... yes checking for /proc/pid/fd directory... no checking for arc4random... yes checking for asprintf... yes checking for b64_ntop... no checking for __b64_ntop... no checking for b64_pton... no checking for __b64_pton....
2006 Apr 23
0
Configuration Warnings OpenSSH 4.3p2
...h usability... yes checking libutil.h presence... yes checking for libutil.h... yes checking for library containing login... -lutil checking for logout... yes checking for updwtmp... no checking for logwtmp... yes checking for strftime... yes checking for GLOB_ALTDIRFUNC support... yes checking for gl_matchc field in glob_t... no checking whether struct dirent allocates space for d_name... yes checking for /proc/pid/fd directory... no checking for libwrap... yes checking for arc4random... yes checking for asprintf... yes checking for b64_ntop... no checking for __b64_ntop... yes checking for b64_pton.....
2011 Sep 02
1
problems building openssh-5.8p1 on qnx
....h presence... no checking for libutil.h... no checking for library containing login... none required checking for fmt_scaled... no checking for logout... yes checking for updwtmp... no checking for logwtmp... yes checking for strftime... yes checking for GLOB_ALTDIRFUNC support... yes checking for gl_matchc field in glob_t... yes checking for gl_statv and GLOB_KEEPSTAT extensions for glob... no checking whether GLOB_NOMATCH is declared... yes checking whether struct dirent allocates space for d_name... configure: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME checking for /proc/pid/f...
2003 Jun 24
20
[Bug 601] configure script doesen't setup preprocessor flags properly
...libutil.h usability... no checking libutil.h presence... no checking for libutil.h... no checking for library containing login... no checking for logout... no checking for updwtmp... yes checking for logwtmp... no checking for strftime... yes checking for GLOB_ALTDIRFUNC support... no checking for gl_matchc field in glob_t... no checking whether struct dirent allocates space for d_name... no checking for s/key support... yes checking for arc4random... no checking for __b64_ntop... no checking for b64_ntop... no checking for __b64_pton... no checking for b64_pton... no checking for basename... no check...
2002 Mar 15
1
Problems compiling on Redhat
...l.h usability... no checking libutil.h presence... no checking for libutil.h... no checking for library containing login... -lutil checking for logout... yes checking for updwtmp... yes checking for logwtmp... yes checking for strftime... yes checking for GLOB_ALTDIRFUNC support... yes checking for gl_matchc field in glob_t... no checking whether struct dirent allocates space for d_name... yes checking for arc4random... no checking for atexit... yes checking for b64_ntop... no checking for bcopy... yes checking for bindresvport_sa... no checking for clock... yes checking for fchmod... yes checking for...
2001 Jul 16
0
No subject
...ot find file <vis.h> specified in #include directive. (noinclfile) #include <vis.h> -^ configure: failed program was: #line 2955 "configure" #include "confdefs.h" #include <vis.h> configure:2989: checking for GLOB_ALTDIRFUNC support configure:3022: checking for gl_matchc field in glob_t configure:3052: checking whether struct dirent allocates space for d_name configure:3065: cc -o conftest -g conftest.c -lz -lsecurity -ldb -lm -laud -lutil 1>&5 configure:3213: checking for arc4random configure:3241: cc -o conftest -g conftest.c -lz -lsecurity -ldb -lm...