OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.34 / (download) - annotate - [select for diffs], Fri Mar 31 04:00:37 2023 UTC (13 months, 2 weeks 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.33: +3 -1 lines
Diff to previous 1.33 (colored)

don't attempt to decode a ridiculous number of attributes;
harmless because of bounds elsewhere, but better to be explicit

Revision 1.33 / (download) - annotate - [select for diffs], Mon Sep 19 10:41:58 2022 UTC (19 months, 3 weeks ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.32: +11 -7 lines
Diff to previous 1.32 (colored)

extend sftp-common.c:extend ls_file() to support supplied user/group
names; ok markus@

Revision 1.32 / (download) - annotate - [select for diffs], Sun Oct 18 11:32:02 2020 UTC (3 years, 6 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

use the new variant log macros instead of prepending __func__ and
appending ssh_err(r) manually; ok markus@

Revision 1.31 / (download) - annotate - [select for diffs], Thu Sep 13 15:23:32 2018 UTC (5 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

Fix warnings caused by user_from_uid() and group_from_gid() now
returning const char *.

Revision 1.30 / (download) - annotate - [select for diffs], Sat Jun 10 06:36:46 2017 UTC (6 years, 11 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.29: +12 -13 lines
Diff to previous 1.29 (colored)

print '?' instead of incorrect link count (that the protocol doesn't
provide) for remote listings. bz#2710 ok dtucker@

Revision 1.29 / (download) - annotate - [select for diffs], Mon Sep 12 01:22:38 2016 UTC (7 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.28: +4 -4 lines
Diff to previous 1.28 (colored)

Add MAXIMUM(), MINIMUM(), and ROUNDUP() to misc.h, then use those definitions
rather than pulling <sys/param.h> and unknown namespace pollution.
ok djm markus dtucker

Revision 1.28 / (download) - annotate - [select for diffs], Tue Jan 20 23:14:00 2015 UTC (9 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: 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.27: +2 -2 lines
Diff to previous 1.27 (colored)

Reduce use of <sys/param.h> and transition to <limits.h> throughout.
ok djm markus

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
Changes since 1.26: +60 -37 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], Thu Jan 9 03:26:00 2014 UTC (10 years, 4 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.25: +5 -2 lines
Diff to previous 1.25 (colored)

When formating the time for "ls -l"-style output, show dates in the future
with the year, and rearrange a comparison to avoid a potentional signed
arithmetic overflow that would give the wrong result.

ok djm@

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

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

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, 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], Fri Jan 15 09:24:23 2010 UTC (14 years, 4 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, 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
Changes since 1.22: +1 -3 lines
Diff to previous 1.22 (colored)

unused

Revision 1.22 / (download) - annotate - [select for diffs], Thu Jan 14 23:41:49 2010 UTC (14 years, 4 months ago) by dtucker
Branch: MAIN
Changes since 1.21: +5 -5 lines
Diff to previous 1.21 (colored)

use user_from{uid,gid} to lookup up ids since it keeps a small cache.  ok djm

Revision 1.21 / (download) - annotate - [select for diffs], Wed Jan 13 01:40:16 2010 UTC (14 years, 4 months ago) by djm
Branch: MAIN
Changes since 1.20: +14 -5 lines
Diff to previous 1.20 (colored)

support '-h' (human-readable units) for sftp's ls command, just like
ls(1); ok dtucker@

Revision 1.10.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.10: +12 -4 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

upgrade to OpenSSH 4.4

Revision 1.11.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.11: +10 -5 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

upgrade to OpenSSH 4.4

Revision 1.20 / (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_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.19: +3 -5 lines
Diff to previous 1.19 (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.19 / (download) - annotate - [select for diffs], Tue Aug 1 23:22:47 2006 UTC (17 years, 9 months ago) by stevesk
Branch: MAIN
Changes since 1.18: +2 -1 lines
Diff to previous 1.18 (colored)

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

Revision 1.18 / (download) - annotate - [select for diffs], Wed Jul 26 02:35:17 2006 UTC (17 years, 9 months ago) by stevesk
Branch: MAIN
Changes since 1.17: +2 -1 lines
Diff to previous 1.17 (colored)

move #include <sys/param.h> out of includes.h

Revision 1.17 / (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.16: +2 -1 lines
Diff to previous 1.16 (colored)

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

Revision 1.16 / (download) - annotate - [select for diffs], Sat Jul 22 19:08:54 2006 UTC (17 years, 9 months ago) by stevesk
Branch: MAIN
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored)

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

Revision 1.15 / (download) - annotate - [select for diffs], Thu Jul 6 16:03:53 2006 UTC (17 years, 10 months ago) by stevesk
Branch: MAIN
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (colored)

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

Revision 1.14 / (download) - annotate - [select for diffs], Sun Jul 2 22:45:59 2006 UTC (17 years, 10 months ago) by stevesk
Branch: MAIN
Changes since 1.13: +3 -1 lines
Diff to previous 1.13 (colored)

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

Revision 1.13 / (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.12: +1 -0 lines
Diff to previous 1.12 (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.12 / (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.11: +0 -1 lines
Diff to previous 1.11 (colored)

RCSID() can die

Revision 1.11 / (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.10: +4 -1 lines
Diff to previous 1.10 (colored)

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

Revision 1.8.2.2 / (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.8.2.1: +5 -5 lines
Diff to previous 1.8.2.1 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

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

Revision 1.9.2.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.9: +5 -5 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

upgrade to OpenSSH 3.8

Revision 1.10 / (download) - annotate - [select for diffs], Mon Nov 10 16:23:41 2003 UTC (20 years, 6 months ago) by jakob
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.9: +5 -5 lines
Diff to previous 1.9 (colored)

constify. ok markus@ & djm@

Revision 1.7.2.2 / (download) - annotate - [select for diffs], Tue Sep 16 21:20:27 2003 UTC (20 years, 8 months ago) by brad
Branch: OPENBSD_3_2
Changes since 1.7.2.1: +3 -3 lines
Diff to previous 1.7.2.1 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

upgrade to OpenSSH 3.7

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Tue Sep 16 20:50:43 2003 UTC (20 years, 8 months ago) by brad
Branch: OPENBSD_3_3
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

upgrade to OpenSSH 3.7

Revision 1.9 / (download) - annotate - [select for diffs], Sat May 24 09:30:40 2003 UTC (20 years, 11 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE
Branch point for: OPENBSD_3_4
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

cast some types for printing; ok markus@

Revision 1.5.2.3 / (download) - annotate - [select for diffs], Thu Apr 3 22:35:17 2003 UTC (21 years, 1 month ago) by miod
Branch: OPENBSD_3_1
Changes since 1.5.2.2: +2 -2 lines
Diff to previous 1.5.2.2 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Merge OpenSSH 3.6.1

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Tue Apr 1 00:12:14 2003 UTC (21 years, 1 month ago) by margarida
Branch: OPENBSD_3_2
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Update to OpenSSH 3.6

Revision 1.8 / (download) - annotate - [select for diffs], Wed Oct 16 14:31:48 2002 UTC (21 years, 7 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE
Branch point for: OPENBSD_3_3
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

64bit pedant.  %llu is "unsigned long long".  markus ok

Revision 1.4.2.3 / (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.4.2.2: +63 -1 lines
Diff to previous 1.4.2.2 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Update to OpenSSH 3.5

Revision 1.5.2.2 / (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.5.2.1: +63 -1 lines
Diff to previous 1.5.2.1 (colored) to branchpoint 1.5 (colored)

Update to OpenSSH 3.5

Revision 1.7 / (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_2_BASE
Branch point for: OPENBSD_3_2
Changes since 1.6: +63 -1 lines
Diff to previous 1.6 (colored)

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

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Wed Jun 26 18:22:36 2002 UTC (21 years, 10 months ago) by miod
Branch: OPENBSD_3_0
Changes since 1.4.2.1: +3 -1 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored)

There was an update to OpenSSH 3.4, and people rejoiced.

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Wed Jun 26 15:30:38 2002 UTC (21 years, 10 months ago) by jason
Branch: OPENBSD_3_1
Changes since 1.5: +3 -1 lines
Diff to previous 1.5 (colored)

Pull in OpenSSH-3.4

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jun 23 09:30:14 2002 UTC (21 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +3 -1 lines
Diff to previous 1.5 (colored)

bunch of u_int vs int stuff

Revision 1.2.6.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.2.6.1: +2 -2 lines
Diff to previous 1.2.6.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

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

Revision 1.2.2.6 / (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.2.5: +2 -2 lines
Diff to previous 1.2.2.5 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Merge OpenSSH 3.1.

Revision 1.4.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.4: +2 -2 lines
Diff to previous 1.4 (colored)

Update to OpenSSH-3.1 on 3.0-stable branch

Revision 1.5 / (download) - annotate - [select for diffs], Sun Dec 2 02:08:32 2001 UTC (22 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE
Branch point for: OPENBSD_3_1
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

zap };

Revision 1.2.6.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.2: +6 -3 lines
Diff to previous 1.2 (colored)

Pull in OpenSSH-2.9.9

Revision 1.2.2.5 / (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.2.4: +6 -3 lines
Diff to previous 1.2.2.4 (colored) to branchpoint 1.2 (colored)

Pull in OpenSSH 2.9.9 to the 2.8 branch.

Revision 1.4 / (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.3: +1 -2 lines
Diff to previous 1.3 (colored)

delete spurious #includes; ok deraadt@ markus@

Revision 1.3 / (download) - annotate - [select for diffs], Tue Jun 26 17:27:24 2001 UTC (22 years, 10 months ago) by markus
Branch: MAIN
Changes since 1.2: +6 -2 lines
Diff to previous 1.2 (colored)

remove comments from .h, since they are cut&paste from the .c files
and out of sync

Revision 1.2.2.4 / (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.2.3: +0 -0 lines
Diff to previous 1.2.2.3 (colored) to branchpoint 1.2 (colored)

Pull in OpenSSH-2.9 to 2.8 branch.

Revision 1.2.2.3 / (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.2.2: +0 -0 lines
Diff to previous 1.2.2.2 (colored) to branchpoint 1.2 (colored)

Pull in OpenSSH-2.5.2 for 2.8 branch.

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

Pull in OpenSSH-2.5.2 for 2.7 branch.

Revision 1.2.4.1 / (download) - annotate - [select for diffs], Mon Mar 12 15:44:15 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)

OpenSSH-2.5.1 for 2.7 patch branch

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Mon Feb 19 17:19:22 2001 UTC (23 years, 3 months ago) by jason
Branch: OPENBSD_2_8
Changes since 1.2.2.1: +0 -0 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored)

Pull in OpenSSH-2.5.1

Revision 1.2.2.1 / (download) - annotate - [select for diffs], Fri Feb 16 20:13:14 2001 UTC (23 years, 3 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.0

Revision 1.2 / (download) - annotate - [select for diffs], Tue Feb 6 23:50:10 2001 UTC (23 years, 3 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE
Branch point for: OPENBSD_2_9, OPENBSD_2_8, OPENBSD_2_7
Changes since 1.1: +5 -5 lines
Diff to previous 1.1 (colored)

use lower case error messages similar to errno.h

Revision 1.1 / (download) - annotate - [select for diffs], Sun Feb 4 11:11:54 2001 UTC (23 years, 3 months ago) by djm
Branch: MAIN

Basic interactive sftp client; ok theo@

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.