OpenBSD CVS

CVS log for src/usr.bin/ftp/cmds.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.85 / (download) - annotate - [select for diffs], Wed Mar 8 04:43:11 2023 UTC (14 months, 1 week ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.84: +1 -26 lines
Diff to previous 1.84 (colored)

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@

Revision 1.84 / (download) - annotate - [select for diffs], Mon Nov 18 04:37:35 2019 UTC (4 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, 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.83: +7 -7 lines
Diff to previous 1.83 (colored)

various knf and whitespace; ok jca

Revision 1.83 / (download) - annotate - [select for diffs], Fri Jun 28 13:35:01 2019 UTC (4 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.82: +2 -2 lines
Diff to previous 1.82 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.82 / (download) - annotate - [select for diffs], Thu May 16 12:44:17 2019 UTC (5 years ago) by florian
Branch: MAIN
Changes since 1.81: +0 -0 lines
Diff to previous 1.81 (colored)

Revert suni'ls ftp rewrite for now.
We are juggling too many things at the moment and we can't deal with
the differences in behaviour right now.

Revision 1.81, Sun May 12 20:44:39 2019 UTC (5 years ago) by kmos
Branch: MAIN
Changes since 1.80: +1 -1 lines
FILE REMOVED

Move us from old ftp(1) to Sunil's new ftp(1). The necessary modifications
have been made to make it behave. Any new misbehaviors can be fixed in tree.

OK florian@ deraadt@ "Have you committed ftp yet?"

Revision 1.80 / (download) - annotate - [select for diffs], Wed Jan 24 13:25:25 2018 UTC (6 years, 3 months ago) by tb
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
Changes since 1.79: +2 -3 lines
Diff to previous 1.79 (colored)

Use closefrom(3) instead of manually closing all file descriptors
between 3 and 19.

ok martijn, millert, jca

Revision 1.79 / (download) - annotate - [select for diffs], Sat Jan 21 08:33:07 2017 UTC (7 years, 3 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.78: +5 -5 lines
Diff to previous 1.78 (colored)

Nuke whitespace foolish enough to expose itself during the great
"warning:" rectification.

Revision 1.78 / (download) - annotate - [select for diffs], Sun Aug 14 18:34:48 2016 UTC (7 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.77: +6 -5 lines
Diff to previous 1.77 (colored)

Convert remaining calls to strtoq/strtouq in base with strtoll/strtoull.
Fix a type mismatch in ftp's "page" command and could make transfers restart
at the wrong position.

ok and a ull->ll tweak from natano@, ok tedu@

Revision 1.77 / (download) - annotate - [select for diffs], Wed May 25 15:36:01 2016 UTC (7 years, 11 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.76: +2 -4 lines
Diff to previous 1.76 (colored)

Avoid a use-after-free.

Diff from Vladimir Sotirov via tech@. Thanks!

ok millert@

Revision 1.76 / (download) - annotate - [select for diffs], Thu Mar 17 19:40:43 2016 UTC (8 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored)

Last parameter to execl[e]() functions *must* be cast to a pointer.
Just NULL is not good practise as NULL is theoretically allowed to
be an integer rather than a pointer.

Use (char *)NULL consistently instead of scattering a few (char *)0
and (void *)NULL into the mix.

Prompted by and probably ok deraadt@ millert@ kettenis@

Definitely ok mestre@ ratchov@

Revision 1.75 / (download) - annotate - [select for diffs], Sun Oct 18 03:04:11 2015 UTC (8 years, 7 months ago) by mmcc
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.74: +4 -4 lines
Diff to previous 1.74 (colored)

A whole buncha unsigned char casts for ctype function arguments.

ok guenther@

Revision 1.74 / (download) - annotate - [select for diffs], Fri Jan 30 04:45:45 2015 UTC (9 years, 3 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.73: +1 -13 lines
Diff to previous 1.73 (colored)

remove tenex transfer support. if you still have TOPS20 machines in
service, you'll need to stick with openbsd 5.6.
bonus: remove references to ebcdic.
ok deraadt

Revision 1.73 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:08 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.72: +8 -8 lines
Diff to previous 1.72 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.72 / (download) - annotate - [select for diffs], Sat Aug 16 07:49:27 2014 UTC (9 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.71: +4 -1 lines
Diff to previous 1.71 (colored)

I found a number of interactive events which can cause signals, and go
down paths not previously marked as signal handled unsafe.  Try to clean
up a few of them especially regarding errno, mark others as unsafe, and
repair a few by avoiding stdio.  Glanced at by misc people in Slovenia,
but considered too risky before release..

Revision 1.71 / (download) - annotate - [select for diffs], Mon Oct 15 21:20:05 2012 UTC (11 years, 7 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.70: +99 -22 lines
Diff to previous 1.70 (colored)

Add support for recursive ftp upload.  The mput command of the ftp
client got the -r switch and -d depth option.
From Jan Klemkow <j.klemkow AT wemelug DOT de>
OK haesbaert@

Revision 1.70 / (download) - annotate - [select for diffs], Tue May 5 19:35:30 2009 UTC (15 years ago) by martynas
Branch: MAIN
CVS Tags: 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, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.69: +7 -674 lines
Diff to previous 1.69 (colored)

make it clean removing the ifdef SMALL maze.  separate cmds and
small stuff.  make it a fetcher.  shrinks quite a bit
agreed by millert@, krw@
ok theo, sthen@

Revision 1.69 / (download) - annotate - [select for diffs], Mon Apr 27 22:51:51 2009 UTC (15 years ago) by martynas
Branch: MAIN
Changes since 1.68: +12 -2 lines
Diff to previous 1.68 (colored)

remove uploading and macros support from install media;  to save
some space
discussed with theo, todd@, millert@
tested and looked over by sthen@

Revision 1.68 / (download) - annotate - [select for diffs], Mon Apr 27 21:37:13 2009 UTC (15 years ago) by deraadt
Branch: MAIN
Changes since 1.67: +1 -5 lines
Diff to previous 1.67 (colored)

toast the rcsid strings which just get in the way

Revision 1.67 / (download) - annotate - [select for diffs], Thu Oct 16 23:15:53 2008 UTC (15 years, 7 months ago) by martynas
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.66: +6 -10 lines
Diff to previous 1.66 (colored)

- resume http transfers [-C], if local file does not exist
- resume ftp transfers [-C, reget, mget], if local file does not
exist
ok theo

Revision 1.66 / (download) - annotate - [select for diffs], Thu Sep 18 14:45:36 2008 UTC (15 years, 8 months ago) by todd
Branch: MAIN
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored)

unbreak for gcc2 archs; declaration before code!

Revision 1.65 / (download) - annotate - [select for diffs], Mon Sep 8 19:31:16 2008 UTC (15 years, 8 months ago) by martynas
Branch: MAIN
Changes since 1.64: +42 -49 lines
Diff to previous 1.64 (colored)

- simplify mget(): remove the duplicate code and just use getit(),
as a result it can do nice things getit() does such as:
- -n: use 'newer' for transfers (fetches files that are newer on
the server, than locally), this can be used for e.g. mirroring (mget
-cnr 4.* would fetch missing files, continue interrupted transfers,
and replace newer files of 4.X dirs)
- -d: spedify depth of the recurrence.  e.g. 'mget -rd 2 patches'
in pub/openbsd would fetch only archive files, not going further
into dirs
- use static restartit, max_depth instead of doing the magic
tested/requested&ok merdely@;  ok pyr@, millert@
man page tweaks&ok jmc@

Revision 1.64 / (download) - annotate - [select for diffs], Fri Aug 22 08:52:35 2008 UTC (15 years, 9 months ago) by sobrado
Branch: MAIN
Changes since 1.63: +31 -27 lines
Diff to previous 1.63 (colored)

default file transfer type is binary, not ascii;
commands which toggle settings can take an explicit on or off argument
to force the setting appropiately, show these arguments in usage;
synchronize synopsis and usage of commands; spacing; KNF;
other minor documentation tweaks.

written with help by jmc@

ok jmc@ (documentation), martynas@ (type usage and default file transfer type)

Revision 1.63 / (download) - annotate - [select for diffs], Tue Jul 8 21:07:57 2008 UTC (15 years, 10 months ago) by martynas
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.62: +116 -33 lines
Diff to previous 1.62 (colored)

- add support for recursive transfers (but not for floppies), e.g.
'mget -cr 4.*' would recursively fetch (-r), and resume the previous
transfers (-c) of 4.X release directories
uses local matching (fnmatch), but only for recursive transfers.
current behavior is not changed in any way.
- while here, ifndef SMALL debugging stuff, this saves some space,
for floppies
- some debugging code was enabled for non-debugging mode, checks
assume debug is set to zero, but it's not initially set
- all "Confirm with" prompts are forced, remove redundant argument
- fix usage: -C and -c are not available for SMALL

discussed a year ago w/ pyr@
looks good to millert@
previous version looked good to pyr@
man page tweaks & ok jmc@

Revision 1.62 / (download) - annotate - [select for diffs], Wed Jun 25 18:07:00 2008 UTC (15 years, 10 months ago) by martynas
Branch: MAIN
Changes since 1.61: +161 -24 lines
Diff to previous 1.61 (colored)

- fix -Wall (no behavior change, a || b && c = a || (b && c) anyway)
- use argv[0] for "Confirm with", as other confirm()s do
- fix confirm cases, pass force=1 for mdelete and mabort too, fixes
a bug when you end up deleting all files when you ^C, instead of
getting a confirmation
- add reput command, that will allow to continue transfer uploads
- add -c for mget and mput, that will allow to continue multiple
transfers
- fix a bug when you use restart command together with put.  the
progressmeter would start from zero, and eta would show fictional
time.  this actually allows reput/put -c to have correct progressmeter
too
- document everything
discussed with, suggestions, reminded to ifdef SMALL the code so
we're able to fit in floppies, and ok millert@, and jmc@

Revision 1.61 / (download) - annotate - [select for diffs], Mon Jun 16 19:56:04 2008 UTC (15 years, 11 months ago) by martynas
Branch: MAIN
Changes since 1.60: +7 -7 lines
Diff to previous 1.60 (colored)

- add 'q', which does the same as eof
- add '?', which will help
- make use of mflag, instead of special-case interactive
- change mflag++ to mflag = 1, because theoretically it can go out
of range
"i like it" millert@.  man page help and ok jmc@

Revision 1.60 / (download) - annotate - [select for diffs], Mon Jun 16 12:03:51 2008 UTC (15 years, 11 months ago) by martynas
Branch: MAIN
Changes since 1.59: +19 -57 lines
Diff to previous 1.59 (colored)

fix transfer interrupting when confirmrest mode is used.  change
confirm() to have a 'force' argument, so that ointer/oconf dance
is not needed, and to prevent further bugs like this;  ok millert@

Revision 1.59 / (download) - annotate - [select for diffs], Sun Jun 15 03:09:13 2008 UTC (15 years, 11 months ago) by martynas
Branch: MAIN
Changes since 1.58: +5 -3 lines
Diff to previous 1.58 (colored)

make further prompts work after eof, don't spam with prompts in
m*() cases;  ok millert@

Revision 1.58 / (download) - annotate - [select for diffs], Tue May 13 02:09:38 2008 UTC (16 years ago) by ray
Branch: MAIN
Changes since 1.57: +2 -17 lines
Diff to previous 1.57 (colored)

Remove #if 0 code that has been unused for nearly a decade (and
probably doesn't compile, since the types for some variables have
changed from long to char *).

OK millert@

Revision 1.57 / (download) - annotate - [select for diffs], Tue Sep 11 15:47:17 2007 UTC (16 years, 8 months ago) by gilles
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.56: +5 -6 lines
Diff to previous 1.56 (colored)

use strcspn to properly overwrite '\n' in fgets returned buffer

ok pyr@, ray@, millert@, moritz@, chl@

Revision 1.56 / (download) - annotate - [select for diffs], Thu Jul 26 17:48:41 2007 UTC (16 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored)

Remove the space after "Password:" in password prompts where echo is
turned off.  This is consistent with historic UNIX behavior.

Revision 1.55 / (download) - annotate - [select for diffs], Wed Nov 22 04:08:35 2006 UTC (17 years, 6 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.54: +3 -2 lines
Diff to previous 1.54 (colored)

Mark signal race.

``OK!'' deraadt@.

Revision 1.54 / (download) - annotate - [select for diffs], Thu Nov 2 01:51:33 2006 UTC (17 years, 6 months ago) by ray
Branch: MAIN
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored)

Pass full buffer size to fgets.

OK moritz@ and jaredy@.

Revision 1.53 / (download) - annotate - [select for diffs], Thu Nov 2 01:43:01 2006 UTC (17 years, 6 months ago) by ray
Branch: MAIN
Changes since 1.52: +9 -4 lines
Diff to previous 1.52 (colored)

Add checks for fgets and properly overwrite newline.

Initial patch from Charles Longeau <chl at tuxfamily dot org>.

OK moritz@ and jaredy@.

Revision 1.52 / (download) - annotate - [select for diffs], Fri May 19 04:05:35 2006 UTC (18 years ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.51: +2 -7 lines
Diff to previous 1.51 (colored)

Remove ``sanity check'' that is already done in loop.

OK beck@

Revision 1.51 / (download) - annotate - [select for diffs], Tue May 16 23:43:16 2006 UTC (18 years ago) by ray
Branch: MAIN
Changes since 1.50: +21 -20 lines
Diff to previous 1.50 (colored)

Remove shadowing variables and properly use /* FALLTHROUGH */
comments.  No binary change.

Found by lint.

OK beck@, deraadt@

Revision 1.50 / (download) - annotate - [select for diffs], Tue Apr 25 05:45:20 2006 UTC (18 years ago) by tedu
Branch: MAIN
Changes since 1.49: +15 -14 lines
Diff to previous 1.49 (colored)

two strtol calls that were begging to be converted to strtonum

Revision 1.49 / (download) - annotate - [select for diffs], Wed Oct 12 06:50:42 2005 UTC (18 years, 7 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.48: +14 -4 lines
Diff to previous 1.48 (colored)

Fix mget directory traversal vulnerability. From NetBSD. CAN-2002-1345.
ok millert@ deraadt@, prodding by david@

Revision 1.48 / (download) - annotate - [select for diffs], Thu Sep 16 04:39:16 2004 UTC (19 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.47: +27 -22 lines
Diff to previous 1.47 (colored)

type corrections and other delinting

Revision 1.47 / (download) - annotate - [select for diffs], Tue Jul 20 03:50:25 2004 UTC (19 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.46: +76 -223 lines
Diff to previous 1.46 (colored)

ansi; khalek@linuxgamers.net

Revision 1.46 / (download) - annotate - [select for diffs], Tue Dec 16 21:46:22 2003 UTC (20 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.45: +4 -8 lines
Diff to previous 1.45 (colored)

for -DSMALL, do not include rcsid[]s

Revision 1.45 / (download) - annotate - [select for diffs], Tue Jun 3 02:56:08 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.44: +3 -7 lines
Diff to previous 1.44 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.44 / (download) - annotate - [select for diffs], Sat Apr 5 17:19:47 2003 UTC (21 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.43: +4 -5 lines
Diff to previous 1.43 (colored)

string fixes; ok miod henning

Revision 1.43 / (download) - annotate - [select for diffs], Mon Mar 31 23:04:07 2003 UTC (21 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored)

Treat empty environment variables the same as NULL.  henning@ OK

Revision 1.42 / (download) - annotate - [select for diffs], Fri Jan 3 04:57:54 2003 UTC (21 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.41: +6 -2 lines
Diff to previous 1.41 (colored)

be more aware of directory change failures; s@msmith.net

Revision 1.41 / (download) - annotate - [select for diffs], Fri Jul 12 00:25:30 2002 UTC (21 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.40: +4 -2 lines
Diff to previous 1.40 (colored)

malloc/strdup failure not handled; cloder@acm.org

Revision 1.40 / (download) - annotate - [select for diffs], Fri Jan 4 16:18:59 2002 UTC (22 years, 4 months ago) by art
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.39: +4 -4 lines
Diff to previous 1.39 (colored)

Don't longjmp(..., 0)

Revision 1.39 / (download) - annotate - [select for diffs], Wed Oct 24 20:42:24 2001 UTC (22 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.38: +4 -4 lines
Diff to previous 1.38 (colored)

Misplaced space in fprintf "Execute get, put orappend  to initiate transfer"

Revision 1.38 / (download) - annotate - [select for diffs], Mon Oct 1 14:58:49 2001 UTC (22 years, 7 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

Typo, assign the new restart point to nrestart_point, not restart_point.
Fixes an uninitialized use of nrestart_point.

Revision 1.37 / (download) - annotate - [select for diffs], Thu Jul 12 05:17:07 2001 UTC (22 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.36: +5 -5 lines
Diff to previous 1.36 (colored)

first pass at a -Wall cleanup

Revision 1.36 / (download) - annotate - [select for diffs], Tue Jun 26 23:43:59 2001 UTC (22 years, 10 months ago) by lebel
Branch: MAIN
Changes since 1.35: +10 -17 lines
Diff to previous 1.35 (colored)

use strlcpy vs strncpy+a[len-1]='\0'.  millert@ ok.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Dec 24 00:29:00 2000 UTC (23 years, 5 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored)

Spelling: tripple -> triple

Revision 1.34 / (download) - annotate - [select for diffs], Wed Jun 21 19:22:54 2000 UTC (23 years, 11 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.33: +18 -2 lines
Diff to previous 1.33 (colored)

add epsv4 command, which turns off epsv on ipv4 (off by dfeault)
automagicaslly disable epsv on ipv4, if epsv fails for single connection.
merge from netbsd-current.

req from fgs.

Revision 1.33 / (download) - annotate - [select for diffs], Tue Jun 13 21:28:38 2000 UTC (23 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.32: +4 -7 lines
Diff to previous 1.32 (colored)

Make both ls and dir send a LIST command.  Perviously, ls would use
NLST but some ftp server (notably wu-ftpd 2.6.x) only list files
in the output of NLST.  This behavior appears to be RFC conforming
and it makes things like "mget *" behave more sanely.  To get just
the file list you can still use the "nlist" command.

Revision 1.32 / (download) - annotate - [select for diffs], Wed Dec 8 12:57:06 1999 UTC (24 years, 5 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.31: +42 -9 lines
Diff to previous 1.31 (colored)

ftp(1) from KAME, should be good for testing.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Jun 29 14:33:23 1999 UTC (24 years, 10 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

retreived -> retrieved

Revision 1.30 / (download) - annotate - [select for diffs], Thu Jun 10 22:38:02 1999 UTC (24 years, 11 months ago) by pjanzen
Branch: MAIN
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

Handle PAGER in a manner consistent with the Single Unix Specification:
that is, use PAGER rather than "more" if it is defined and non-null, not
just if it is defined.

Revision 1.29 / (download) - annotate - [select for diffs], Tue Sep 1 17:08:22 1998 UTC (25 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

use commands("%s", buf); lukem

Revision 1.28 / (download) - annotate - [select for diffs], Mon Jun 8 19:48:56 1998 UTC (25 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.27: +7 -4 lines
Diff to previous 1.27 (colored)

use endptr in a strtl()

Revision 1.27 / (download) - annotate - [select for diffs], Mon Jun 8 16:55:56 1998 UTC (25 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.26: +18 -10 lines
Diff to previous 1.26 (colored)

Fix some problems noted by lukem@netbsd.org
 o getopt string is wrong in main(); (missing : after P)
 o use of vprintf(...) instead of vfprintf(ttyout,...) in ftp.c::command()
 o missing \n in fputs in cmds.c::status()
 o should use strtol() instead of atol()
 o sometimes use 'NULL' instead of 'NUL' (in comments)

Revision 1.26 / (download) - annotate - [select for diffs], Tue Feb 10 02:13:10 1998 UTC (26 years, 3 months ago) by weingart
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.25: +27 -10 lines
Diff to previous 1.25 (colored)

Fix buffer overflows in quote1(), clear line buffer
before use.  Hopefully, this is the last of the
PR# 406 stuff that this will need.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Feb 8 21:04:16 1998 UTC (26 years, 3 months ago) by weingart
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

Apply fix for PR# 406.  Thanks to
Motomichi Matsuzaki (mzaki@e-mail.ne.jp)
for the fix.

Revision 1.24 / (download) - annotate - [select for diffs], Wed Sep 10 20:55:08 1997 UTC (26 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.23: +4 -4 lines
Diff to previous 1.23 (colored)

Die union wait die!

Revision 1.23 / (download) - annotate - [select for diffs], Thu Sep 4 04:37:13 1997 UTC (26 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.22: +132 -50 lines
Diff to previous 1.22 (colored)

Updtaes from NetBSD (lukem)
    bugs fixed:
      * don't interpret '-' or '|' when a local filename is determined from
        the remote name (i.e, in mget, and in get with only one argument).
        This is implemented using an extra argument to recvrequest().
        Fixes a major security hole.
      * clean up memory leak when using globulize()
      * clean up a couple of comments
      * fix wording in TNF copyright

    features added:
      * support for TIS fwtk gate-ftp servers:
        * read defaults from $FTPSERVER && $FTPSERVERPORT
        * start in gate-ftp mode if invoked as 'gate-ftp'
        * toggle or set with 'gate [host [port]]'

Other changes:
    * use symbolic flags in access(2)
    * Use USHRT_MAX, not 0xffff

Revision 1.22 / (download) - annotate - [select for diffs], Sat Aug 30 20:48:41 1997 UTC (26 years, 8 months ago) by kstailey
Branch: MAIN
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored)

s/toinitiate/to initiate/

Revision 1.21 / (download) - annotate - [select for diffs], Fri Jul 25 21:56:17 1997 UTC (26 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.20: +21 -21 lines
Diff to previous 1.20 (colored)

Updates from NetBSD (lukem) include -Wall cleanup.
More -W* cleanup and in_port_t usage by me.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Apr 23 20:32:57 1997 UTC (27 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.19: +103 -102 lines
Diff to previous 1.19 (colored)

allow "ftp -aV ftp://host/foo.tar.gz | tar xvfpz -" to work

Revision 1.19 / (download) - annotate - [select for diffs], Wed Apr 16 05:02:39 1997 UTC (27 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.18: +6 -4 lines
Diff to previous 1.18 (colored)

Sync with NetBSD (lukem):
 * differentiate between being connected, and being logged in
 * cleanup some text messages
 * support username & password ftp URLs (ftp://user:pass@host/) in non-proxy
   situations; assume proxy supports it for proxy situations.
 * cd to / before performing any autofetch transfers

Revision 1.18 / (download) - annotate - [select for diffs], Thu Apr 10 00:17:07 1997 UTC (27 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.17: +4 -3 lines
Diff to previous 1.17 (colored)

Sync with NetBSD (lukem)
    * support $ftp_proxy for ftp:// transfers [bin/3245]
    * add "more" & "less" as synonyms for "page"
    * move editline setup code into controlediting(), and call appropriately.
      only setup setup terminal if going into interactive mode.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Mar 21 20:59:26 1997 UTC (27 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.16: +7 -7 lines
Diff to previous 1.16 (colored)

Add in recent NetBSD changes we didn't already have:
    Always compile complete.c but ifdef out the bits if -DSMALL (christos)
    reset interactive mode correctly in auto_fetch() mget mode (lukem)

Revision 1.16 / (download) - annotate - [select for diffs], Fri Mar 14 04:32:12 1997 UTC (27 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.15: +85 -44 lines
Diff to previous 1.15 (colored)

Sync with NetBSD and fix "get foo.txt /dev/tty" wrt progress meter
and setting times.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Feb 5 04:55:12 1997 UTC (27 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.14: +9 -6 lines
Diff to previous 1.14 (colored)

Include signal.h where reasonable and make signal handlers match
what signal(3)'s prototype says (and cast when not).
Also change MAXFOO+1 -> MAXFOO since MAXFOO includes the NULL.
Support $TMPDIR and use utime(3) not utimes(2) for portability's sake.
Don't spew "Passive mode enabled/disabled" unless verbose (this means
togglevar() needs to watch for a NULL 'message').

Revision 1.14 / (download) - annotate - [select for diffs], Mon Feb 3 01:05:33 1997 UTC (27 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.13: +94 -93 lines
Diff to previous 1.13 (colored)

Add back ``-r'' option and fix strncpy() usage and other nits because
I'm anal.  Closer to KNF now.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Feb 3 01:02:32 1997 UTC (27 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.12: +271 -489 lines
Diff to previous 1.12 (colored)

Sync with NetBSD

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jan 29 22:11:36 1997 UTC (27 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.11: +4 -3 lines
Diff to previous 1.11 (colored)

only print passive toggle info is verbose set (like other commands)

Revision 1.11 / (download) - annotate - [select for diffs], Tue Jan 28 20:48:40 1997 UTC (27 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored)

getcwd() not getwd()

Revision 1.10 / (download) - annotate - [select for diffs], Sat Jan 25 21:42:27 1997 UTC (27 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.9: +12 -4 lines
Diff to previous 1.9 (colored)

split cd() into two pieces, whoever was here last did a bad job

Revision 1.9 / (download) - annotate - [select for diffs], Tue Dec 24 21:22:10 1996 UTC (27 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +2 -6 lines
Diff to previous 1.8 (colored)

do not need umask fiddling

Revision 1.8 / (download) - annotate - [select for diffs], Tue Dec 24 20:00:04 1996 UTC (27 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +9 -10 lines
Diff to previous 1.7 (colored)

use mkstemp instead

Revision 1.7 / (download) - annotate - [select for diffs], Tue Dec 17 02:11:46 1996 UTC (27 years, 5 months ago) by michaels
Branch: MAIN
Changes since 1.6: +11 -5 lines
Diff to previous 1.6 (colored)

if pathname given is a valid directory, cd to it at remote, also
assume empty pathname means cd to '/', like ncftp (?).

Revision 1.6 / (download) - annotate - [select for diffs], Sat Nov 9 19:53:59 1996 UTC (27 years, 6 months ago) by kstailey
Branch: MAIN
Changes since 1.5: +32 -8 lines
Diff to previous 1.5 (colored)

optional size argument to hash command

Revision 1.5 / (download) - annotate - [select for diffs], Sat Sep 28 09:56:54 1996 UTC (27 years, 7 months ago) by bitblt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.4: +14 -2 lines
Diff to previous 1.4 (colored)

the LIST carried out by mget in remglob() no longer follows symbolic links
on its temporary file.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Sep 16 02:26:06 1996 UTC (27 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

_PATH_TMP -> _PATH_TMPFILE; avoid /tmp//fooXXXX where possible too

Revision 1.3 / (download) - annotate - [select for diffs], Mon Sep 9 04:44:38 1996 UTC (27 years, 8 months ago) by downsj
Branch: MAIN
Changes since 1.2: +5 -2 lines
Diff to previous 1.2 (colored)

Add an fflush; from FreeBSD PR# bin/1589 (msmith@cain.atrad.adelaide.edu.au)

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jun 26 05:33:33 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

rcsid

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:45:17 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:45:17 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

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.