OpenBSD CVS

CVS log for src/usr.bin/ssh/sftp-glob.c


[BACK] Up to [local] / src / usr.bin / ssh

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.33 / (download) - annotate - [select for diffs], Sun Sep 10 23:12:32 2023 UTC (8 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

rename remote_glob() -> sftp_glob() to match other API

Revision 1.32 / (download) - annotate - [select for diffs], Fri Sep 8 05:56:13 2023 UTC (8 months, 1 week ago) by djm
Branch: MAIN
Changes since 1.31: +12 -12 lines
Diff to previous 1.31 (colored)

the sftp code was one of my first contributions to OpenSSH and it
shows - the function names are terrible.

Rename do_blah() to sftp_blah() to make them less so.

Completely mechanical except for sftp_stat() and sftp_lstat() which
change from returning a pointer to a static variable (error-prone) to
taking a pointer to a caller-provided receiver.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Oct 24 21:51:55 2022 UTC (18 months, 3 weeks ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.30: +32 -2 lines
Diff to previous 1.30 (colored)

when scp(1) is using the SFTP protocol for transport (the default),
better match scp/rcp's handling of globs that don't match the globbed
characters but do match literally (e.g. trying to transfer "foo.[1]").

Previously scp(1) in SFTP mode would not match these pathnames but
legacy scp/rcp mode would.

Reported by Michael Yagliyan in bz3488; ok dtucker@

Revision 1.30 / (download) - annotate - [select for diffs], Fri Feb 25 09:46:24 2022 UTC (2 years, 2 months ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.29: +4 -4 lines
Diff to previous 1.29 (colored)

Remove the char * casts from arguments to do_lstat, do_readdir and
do_stat paths since the underlying functions now take a const char *.
Patch from vapier at gentoo.org.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Nov 13 04:47:52 2019 UTC (4 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored)

stdarg.h required more broadly; ok djm

Revision 1.28 / (download) - annotate - [select for diffs], Wed Oct 2 00:42:30 2019 UTC (4 years, 7 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.27: +1 -2 lines
Diff to previous 1.27 (colored)

remove some duplicate #includes

Revision 1.27 / (download) - annotate - [select for diffs], Wed Jan 14 13:54:13 2015 UTC (9 years, 4 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

update sftp client and server to new buffer API.
pretty much just mechanical changes; with & ok markus

Revision 1.26 / (download) - annotate - [select for diffs], Fri Nov 8 11:15:19 2013 UTC (10 years, 6 months ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.25: +2 -1 lines
Diff to previous 1.25 (colored)

Include stdlib.h for free() as per the man page.

Revision 1.23.6.1 / (download) - annotate - [select for diffs], Fri Nov 8 05:52:21 2013 UTC (10 years, 6 months ago) by djm
Branch: OPENBSD_5_3
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored) next main 1.24 (colored)

openssh-6.4 for the 5.3 branch; reminded by deraadt@

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Fri Nov 8 01:33:56 2013 UTC (10 years, 6 months ago) by djm
Branch: OPENBSD_5_4
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

cherrypick commit:

date: 2013/11/08 00:39:15;  author: djm;  state: Exp;  lines: +2 -2;
use calloc for all structure allocations; from markus@

Revision 1.25 / (download) - annotate - [select for diffs], Fri Nov 8 00:39:15 2013 UTC (10 years, 6 months ago) by djm
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

use calloc for all structure allocations; from markus@

Revision 1.24 / (download) - annotate - [select for diffs], Fri May 17 00:13:14 2013 UTC (11 years ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE
Branch point for: OPENBSD_5_4
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

bye, bye xfree(); ok markus@

Revision 1.23 / (download) - annotate - [select for diffs], Tue Oct 4 14:17:32 2011 UTC (12 years, 7 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Branch point for: OPENBSD_5_3
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

silence error spam for "ls */foo" in directory with files; bz#1683

Revision 1.15.8.1 / (download) - annotate - [select for diffs], Fri Oct 6 03:19:33 2006 UTC (17 years, 7 months ago) by brad
Branch: OPENBSD_3_8
Changes since 1.15: +6 -6 lines
Diff to previous 1.15 (colored) next main 1.16 (colored)

upgrade to OpenSSH 4.4

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Sat Sep 30 04:06:51 2006 UTC (17 years, 7 months ago) by brad
Branch: OPENBSD_3_9
Changes since 1.17: +3 -7 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

upgrade to OpenSSH 4.4

Revision 1.22 / (download) - annotate - [select for diffs], Thu Aug 3 03:34:42 2006 UTC (17 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.21: +2 -4 lines
Diff to previous 1.21 (colored)

almost entirely get rid of the culture of ".h files that include .h files"
ok djm, sort of ok stevesk
makes the pain stop in one easy step

Revision 1.21 / (download) - annotate - [select for diffs], Sat Jul 22 20:48:23 2006 UTC (17 years, 9 months ago) by stevesk
Branch: MAIN
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

move #include <string.h> out of includes.h

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jul 10 16:01:57 2006 UTC (17 years, 10 months ago) by stevesk
Branch: MAIN
Changes since 1.19: +1 -4 lines
Diff to previous 1.19 (colored)

buffer.h only needed in sftp-common.h and remove some unneeded
user includes; ok djm@

Revision 1.19 / (download) - annotate - [select for diffs], Sat Mar 25 13:17:02 2006 UTC (18 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.18: +1 -0 lines
Diff to previous 1.18 (colored)

Put $OpenBSD$ tags back (as comments) to replace the RCSID()s that
Theo nuked - our scripts to sync -portable need them in the files

Revision 1.18 / (download) - annotate - [select for diffs], Sun Mar 19 18:51:18 2006 UTC (18 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.17: +0 -1 lines
Diff to previous 1.17 (colored)

RCSID() can die

Revision 1.17 / (download) - annotate - [select for diffs], Mon Feb 20 17:19:54 2006 UTC (18 years, 2 months ago) by stevesk
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE
Branch point for: OPENBSD_3_9
Changes since 1.16: +4 -1 lines
Diff to previous 1.16 (colored)

move #include <sys/stat.h> out of includes.h; ok markus@

Revision 1.16 / (download) - annotate - [select for diffs], Wed Feb 8 23:51:24 2006 UTC (18 years, 3 months ago) by stevesk
Branch: MAIN
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored)

move #include <dirent.h> out of includes.h; ok markus@

Revision 1.13.4.1 / (download) - annotate - [select for diffs], Thu Mar 4 18:18:16 2004 UTC (20 years, 2 months ago) by brad
Branch: OPENBSD_3_3
Changes since 1.13: +15 -21 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

upgrade to OpenSSH 3.8upgrade to OpenSSH 3.8upgrade to OpenSSH 3.8

Revision 1.13.6.1 / (download) - annotate - [select for diffs], Sat Feb 28 03:51:34 2004 UTC (20 years, 2 months ago) by brad
Branch: OPENBSD_3_4
Changes since 1.13: +15 -21 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

upgrade to OpenSSH 3.8

Revision 1.15 / (download) - annotate - [select for diffs], Tue Feb 17 07:17:29 2004 UTC (20 years, 3 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Branch point for: OPENBSD_3_8
Changes since 1.14: +4 -2 lines
Diff to previous 1.14 (colored)

Remove useless headers; ok deraadt@

Revision 1.14 / (download) - annotate - [select for diffs], Tue Feb 17 05:39:51 2004 UTC (20 years, 3 months ago) by djm
Branch: MAIN
Changes since 1.13: +12 -20 lines
Diff to previous 1.13 (colored)

switch to license.template for code written by me (belated, I know...)

Revision 1.8.2.2 / (download) - annotate - [select for diffs], Fri Oct 11 14:53:07 2002 UTC (21 years, 7 months ago) by miod
Branch: OPENBSD_3_0
Changes since 1.8.2.1: +7 -24 lines
Diff to previous 1.8.2.1 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

Update to OpenSSH 3.5

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Fri Oct 11 14:51:52 2002 UTC (21 years, 7 months ago) by miod
Branch: OPENBSD_3_1
Changes since 1.10: +7 -24 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Update to OpenSSH 3.5

Revision 1.13 / (download) - annotate - [select for diffs], Wed Sep 11 22:41:50 2002 UTC (21 years, 8 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_3_BASE, OPENBSD_3_2_BASE, OPENBSD_3_2
Branch point for: OPENBSD_3_4, OPENBSD_3_3
Changes since 1.12: +1 -20 lines
Diff to previous 1.12 (colored)

support for short/long listings and globbing in "ls"; ok markus@

Revision 1.12 / (download) - annotate - [select for diffs], Thu Jul 4 04:15:33 2002 UTC (21 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.11: +4 -2 lines
Diff to previous 1.11 (colored)

patch memory leaks; grendel@zeitbombe.org

Revision 1.11 / (download) - annotate - [select for diffs], Sun Jun 30 21:59:45 2002 UTC (21 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.10: +5 -5 lines
Diff to previous 1.10 (colored)

minor KNF

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Sat Mar 9 00:20:45 2002 UTC (22 years, 2 months ago) by miod
Branch: OPENBSD_2_9
Changes since 1.5.2.1: +20 -23 lines
Diff to previous 1.5.2.1 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Merge OpenSSH 3.1, keeping /etc as configuration files directory.
(i.e. OpenSSH 3.1 + openbsd29_3.1.patch)

Revision 1.2.4.4 / (download) - annotate - [select for diffs], Fri Mar 8 17:04:43 2002 UTC (22 years, 2 months ago) by brad
Branch: OPENBSD_2_8
Changes since 1.2.4.3: +20 -23 lines
Diff to previous 1.2.4.3 (colored) next main 1.3 (colored)

Merge OpenSSH 3.1.

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Thu Mar 7 17:37:47 2002 UTC (22 years, 2 months ago) by jason
Branch: OPENBSD_3_0
Changes since 1.8: +20 -23 lines
Diff to previous 1.8 (colored)

Update to OpenSSH-3.1 on 3.0-stable branch

Revision 1.10 / (download) - annotate - [select for diffs], Wed Feb 13 00:59:23 2002 UTC (22 years, 3 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE
Branch point for: OPENBSD_3_1
Changes since 1.9: +9 -12 lines
Diff to previous 1.9 (colored)

API cleanup and backwards compat for filexfer v.0 servers; ok markus@

Revision 1.9 / (download) - annotate - [select for diffs], Wed Dec 19 07:18:56 2001 UTC (22 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +12 -12 lines
Diff to previous 1.8 (colored)

basic KNF done while i was looking for something else

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Thu Sep 27 19:03:55 2001 UTC (22 years, 7 months ago) by jason
Branch: OPENBSD_2_9
Changes since 1.5: +17 -15 lines
Diff to previous 1.5 (colored)

Pull in OpenSSH-2.9.9

Revision 1.2.4.3 / (download) - annotate - [select for diffs], Thu Sep 27 00:15:42 2001 UTC (22 years, 7 months ago) by miod
Branch: OPENBSD_2_8
Changes since 1.2.4.2: +17 -15 lines
Diff to previous 1.2.4.2 (colored)

Pull in OpenSSH 2.9.9 to the 2.8 branch.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Jul 14 15:10:17 2001 UTC (22 years, 10 months ago) by stevesk
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE
Branch point for: OPENBSD_3_0
Changes since 1.7: +1 -5 lines
Diff to previous 1.7 (colored)

delete spurious #includes; ok deraadt@ markus@

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jul 5 11:43:33 2001 UTC (22 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.6: +5 -5 lines
Diff to previous 1.6 (colored)

Directly cast to the right type. Ok markus@

Revision 1.6 / (download) - annotate - [select for diffs], Sat Jun 23 15:12:20 2001 UTC (22 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.5: +13 -7 lines
Diff to previous 1.5 (colored)

more strict prototypes.  raise warning level in Makefile.inc.  markus ok'ed
TODO; cleanup headers

Revision 1.2.4.2 / (download) - annotate - [select for diffs], Mon May 7 21:09:34 2001 UTC (23 years ago) by jason
Branch: OPENBSD_2_8
Changes since 1.2.4.1: +6 -6 lines
Diff to previous 1.2.4.1 (colored)

Pull in OpenSSH-2.9 to 2.8 branch.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Apr 15 08:43:46 2001 UTC (23 years, 1 month ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE
Branch point for: OPENBSD_2_9
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

some unused variable and typos; from tomh@po.crl.go.jp

Revision 1.4 / (download) - annotate - [select for diffs], Thu Apr 5 10:42:53 2001 UTC (23 years, 1 month ago) by markus
Branch: MAIN
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

fix whitespace: unexpand + trailing spaces.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Apr 3 13:56:11 2001 UTC (23 years, 1 month ago) by stevesk
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

free() -> xfree()

Revision 1.2.4.1 / (download) - annotate - [select for diffs], Wed Mar 21 19:46:28 2001 UTC (23 years, 2 months ago) by jason
Branch: OPENBSD_2_8
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

Pull in OpenSSH-2.5.2 for 2.8 branch.

Revision 1.2.2.1 / (download) - annotate - [select for diffs], Wed Mar 21 18:53:05 2001 UTC (23 years, 2 months ago) by jason
Branch: OPENBSD_2_7
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

Pull in OpenSSH-2.5.2 for 2.7 branch.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Mar 16 08:16:18 2001 UTC (23 years, 2 months ago) by djm
Branch: MAIN
Branch point for: OPENBSD_2_8, OPENBSD_2_7
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

Revise globbing for get/put to be more shell-like. In particular,
"get/put file* directory/" now works. ok markus@

Revision 1.1 / (download) - annotate - [select for diffs], Tue Mar 13 22:42:54 2001 UTC (23 years, 2 months ago) by djm
Branch: MAIN

sftp client filename globbing for get, put, ch{mod,grp,own}. ok markus@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.