Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/openssh/dist add a missing GLOB_LIMIT to...



details:   https://anonhg.NetBSD.org/src/rev/787de58687f4
branches:  trunk
changeset: 758961:787de58687f4
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Nov 22 13:45:26 2010 +0000

description:
add a missing GLOB_LIMIT to the new glob for completion.

diffstat:

 crypto/external/bsd/openssh/dist/sftp.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5969ddc2d329 -r 787de58687f4 crypto/external/bsd/openssh/dist/sftp.c
--- a/crypto/external/bsd/openssh/dist/sftp.c   Mon Nov 22 11:29:07 2010 +0000
+++ b/crypto/external/bsd/openssh/dist/sftp.c   Mon Nov 22 13:45:26 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sftp.c,v 1.5 2010/11/22 09:53:01 adam Exp $    */
+/*     $NetBSD: sftp.c,v 1.6 2010/11/22 13:45:26 christos Exp $        */
 /* $OpenBSD: sftp.c,v 1.125 2010/06/18 00:58:39 djm Exp $ */
 /*
  * Copyright (c) 2001-2004 Damien Miller <djm%openbsd.org@localhost>
@@ -17,7 +17,7 @@
  */
 
 #include "includes.h"
-__RCSID("$NetBSD: sftp.c,v 1.5 2010/11/22 09:53:01 adam Exp $");
+__RCSID("$NetBSD: sftp.c,v 1.6 2010/11/22 13:45:26 christos Exp $");
 #include <sys/types.h>
 #include <sys/ioctl.h>
 #include <sys/wait.h>
@@ -1682,7 +1682,7 @@
                tmp = make_absolute(tmp, remote_path);
                remote_glob(conn, tmp, GLOB_DOOFFS|GLOB_MARK, NULL, &g);
        } else 
-               glob(tmp, GLOB_DOOFFS|GLOB_MARK, NULL, &g);
+               glob(tmp, GLOB_LIMIT|GLOB_DOOFFS|GLOB_MARK, NULL, &g);
        
        /* Determine length of pwd so we can trim completion display */
        for (hadglob = tmplen = pwdlen = 0; tmp[tmplen] != 0; tmplen++) {



Home | Main Index | Thread Index | Old Index