diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | sftp.c | 5 |
2 files changed, 7 insertions, 2 deletions
@@ -70,6 +70,10 @@ | |||
70 | - markus@cvs.openbsd.org 2011/09/12 08:46:15 | 70 | - markus@cvs.openbsd.org 2011/09/12 08:46:15 |
71 | [sftp-client.c] | 71 | [sftp-client.c] |
72 | fix leak in do_lsreaddir(); ok djm | 72 | fix leak in do_lsreaddir(); ok djm |
73 | - djm@cvs.openbsd.org 2011/09/22 06:29:03 | ||
74 | [sftp.c] | ||
75 | don't let remote_glob() implicitly sort its results in do_globbed_ls() - | ||
76 | in all likelihood, they will be resorted anyway | ||
73 | 77 | ||
74 | 20110909 | 78 | 20110909 |
75 | - (dtucker) [entropy.h] Bug #1932: remove old definition of init_rng. From | 79 | - (dtucker) [entropy.h] Bug #1932: remove old definition of init_rng. From |
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sftp.c,v 1.132 2010/12/04 00:18:01 djm Exp $ */ | 1 | /* $OpenBSD: sftp.c,v 1.133 2011/09/22 06:29:03 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> | 3 | * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> |
4 | * | 4 | * |
@@ -793,7 +793,8 @@ do_globbed_ls(struct sftp_conn *conn, char *path, char *strip_path, | |||
793 | memset(&g, 0, sizeof(g)); | 793 | memset(&g, 0, sizeof(g)); |
794 | 794 | ||
795 | if (remote_glob(conn, path, | 795 | if (remote_glob(conn, path, |
796 | GLOB_MARK|GLOB_NOCHECK|GLOB_BRACE|GLOB_KEEPSTAT, NULL, &g) || | 796 | GLOB_MARK|GLOB_NOCHECK|GLOB_BRACE|GLOB_KEEPSTAT|GLOB_NOSORT, |
797 | NULL, &g) || | ||
797 | (g.gl_pathc && !g.gl_matchc)) { | 798 | (g.gl_pathc && !g.gl_matchc)) { |
798 | if (g.gl_pathc) | 799 | if (g.gl_pathc) |
799 | globfree(&g); | 800 | globfree(&g); |