CVS log for src/usr.bin/ftp/cmds.c
Up to [cvs.NetBSD.org] / src / usr.bin / ftp
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.141.6.2: download - view: text, markup, annotated - select for diffs
Mon Dec 2 10:19:39 2024 UTC (6 weeks, 5 days ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-1-RELEASE
Diff to: previous 1.141.6.1: preferred, colored; branchpoint 1.141: preferred, colored; next MAIN 1.142: preferred, colored
Changes since revision 1.141.6.1: +48 -43
lines
Pull up following revision(s) (requested by lukem in ticket #1021):
usr.bin/ftp/ftp.c: revision 1.178
usr.bin/ftp/version.h: revision 1.99
usr.bin/ftp/ruserpass.c: revision 1.35
usr.bin/ftp/main.c: revision 1.134
usr.bin/ftp/main.c: revision 1.135
usr.bin/ftp/progressbar.c: revision 1.27
usr.bin/ftp/util.c: revision 1.165
usr.bin/ftp/cmds.c: revision 1.144
usr.bin/ftp/extern.h: revision 1.84
usr.bin/ftp/fetch.c: revision 1.242
usr.bin/ftp/ftp.1: revision 1.160
s/bninary/binary/ in comment.
extract duplicate code into a function.
Check bounds when copying to destination.
Remove const where the const string ended up being overwritten.
use unsigned when doing shifts.
remove const when string gets overwritten.
ftp: exit non-zero if short http transfer when filesize is known
If a http file size is known and the fetch finishes with less bytes
transferred, exit non-zero.
Bump version to 20241129.
PR bin/54713
PR bin/58281
ftp: help improvements
Document -? as a separate mode.
Document -H HEADER in the usage.
Clarify units for -b and -x.
Consistent argument names between ftp -? and ftp(1).
ftp: order getopt Upper before lower
Consistently order options in getopt and the switch
with the upper case option before the lower case option.
This makes it easier to cross-reference with -? and ftp(1).
No functional change.
Revision 1.141.6.1: download - view: text, markup, annotated - select for diffs
Sun Oct 13 16:06:36 2024 UTC (3 months ago) by martin
Branches: netbsd-10
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +13 -11
lines
Pull up following revision(s) (requested by riastradh in ticket #970):
tests/usr.bin/Makefile: revision 1.42
usr.bin/ftp/ruserpass.c: revision 1.34
usr.bin/ftp/main.c: revision 1.130
usr.bin/ftp/ssl.c: revision 1.17
usr.bin/ftp/main.c: revision 1.131
usr.bin/ftp/ssl.c: revision 1.18
usr.bin/ftp/main.c: revision 1.132
usr.bin/ftp/ssl.c: revision 1.19
usr.bin/ftp/main.c: revision 1.133
distrib/sets/lists/tests/mi: revision 1.1342
usr.bin/ftp/ftp.1: revision 1.151
usr.bin/ftp/ftp.1: revision 1.152
usr.bin/ftp/progressbar.c: revision 1.25
usr.bin/ftp/ftp.1: revision 1.153
usr.bin/ftp/progressbar.c: revision 1.26
usr.bin/ftp/ftp.1: revision 1.155
usr.bin/ftp/ftp.1: revision 1.156
usr.bin/ftp/fetch.c: revision 1.239
usr.bin/ftp/ftp.1: revision 1.157
usr.bin/ftp/ftp.1: revision 1.158
usr.bin/ftp/ftp.1: revision 1.159
usr.bin/ftp/ftp_var.h: revision 1.87
etc/mtree/NetBSD.dist.tests: revision 1.208
usr.bin/ftp/ftp_var.h: revision 1.88
usr.bin/ftp/ftp_var.h: revision 1.89
usr.bin/ftp/cmds.c: revision 1.142
usr.bin/ftp/util.c: revision 1.168
usr.bin/ftp/cmds.c: revision 1.143
tests/usr.bin/ftp/custom_headers.sh: revision 1.1
usr.bin/ftp/ssl.c: revision 1.20
usr.bin/ftp/complete.c: revision 1.48
tests/usr.bin/ftp/Makefile: revision 1.1
tests/usr.bin/ftp/t_custom_headers.sh: revision 1.1
usr.bin/ftp/fetch.c: revision 1.240
usr.bin/ftp/fetch.c: revision 1.241
usr.bin/ftp/ftp.c: revision 1.176
usr.bin/ftp/ftp.c: revision 1.177
(all via patch)
ftp(1): wording and formatting improvements
Fix grammar issue with "Support values" reported in private mail.
Document all file transfer types in "type" and cross-reference that.
Consistency fixes in describing file transfer parameters and types.
Fix some mandoc -Tlint issues (except "useless macro: Tn").
Add -b <buflen> to specify the buffer size.
ftp: bump FTPBUFLEN from 4kB to 16kB
sourceforge.net returns a 5kB content-security-policy.
Analyzed by mlelstv@ who reports usual limits are between 4kB and 48kB.
default is now 16K
ftp: improve -b documentation
Order -b bufsize in the synopsis.
Document the actual default value.
ftp: improve units used in comments and errors
Use "KiB" instead of "K" in errors.
Clarify related comments.
pass some lint.
PR/58581: Sunil Nimmagadda: Add flag to allow specifying extra http header
fields.
ftp(1): Nix trailing whitespace in man page.
No functional change intended.
PR bin/58581: ftp(1) should allow specifying header fields in http requests
fix markup (h -> H), explain about multiple headers, fix usage (from RVP)
Don't forget the dot, use the intended macro name (I think),
and improve the wording a little. (All related to the -H option.)
ftp(1): Add test for custom HTTP header fields.
Based on a patch from Sunil Nimmagadda.
PR bin/58581: ftp(1) should allow specifying header fields in http
requests
Revision 1.144: download - view: text, markup, annotated - select for diffs
Fri Oct 4 18:05:43 2024 UTC (3 months, 2 weeks ago) by christos
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +48 -43
lines
Check bounds when copying to destination.
Remove const where the const string ended up being overwritten.
Revision 1.143: download - view: text, markup, annotated - select for diffs
Wed Sep 25 16:53:58 2024 UTC (3 months, 3 weeks ago) by christos
Branches: MAIN
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +12 -10
lines
pass some lint.
Revision 1.142: download - view: text, markup, annotated - select for diffs
Fri Jul 19 03:53:13 2024 UTC (6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +3 -3
lines
ftp: improve units used in comments and errors
Use "KiB" instead of "K" in errors.
Clarify related comments.
Revision 1.137.8.3: download - view: text, markup, annotated - select for diffs
Mon Sep 12 17:08:13 2022 UTC (2 years, 4 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE
Diff to: previous 1.137.8.2: preferred, colored; branchpoint 1.137: preferred, colored; next MAIN 1.138: preferred, colored
Changes since revision 1.137.8.2: +23 -9
lines
Catch up to current, requested by christos in ticket #1763:
usr.bin/ftp/Makefile up to 1.39
usr.bin/ftp/cmds.c up to 1.141
usr.bin/ftp/complete.c up to 1.47
usr.bin/ftp/domacro.c up to 1.23
usr.bin/ftp/extern.h up to 1.82
usr.bin/ftp/fetch.c up to 1.235
usr.bin/ftp/ftp.1 up to 1.147
usr.bin/ftp/ftp.c up to 1.174
usr.bin/ftp/ftp_var.h up to 1.86
usr.bin/ftp/main.c up to 1.128
usr.bin/ftp/progressbar.c up to 1.24
usr.bin/ftp/progressbar.h up to 1.9
usr.bin/ftp/ssl.c up to 1.12
usr.bin/ftp/ssl.h up to 1.5
usr.bin/ftp/util.c up to 1.164
usr.bin/ftp/version.h up to 1.94
ftp(1): validate address from PASV and LPSV response.
ftp(1): use raw write(2) instead of fwrite(3) to avoid stream
corruption because of the progress bar interrupts.
Fixes for PR 56219 and PR 55857.
PR 57003: Support relative redirects.
Revision 1.140.2.2: download - view: text, markup, annotated - select for diffs
Mon Sep 12 17:06:56 2022 UTC (2 years, 4 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE
Diff to: previous 1.140.2.1: preferred, colored; branchpoint 1.140: preferred, colored; next MAIN 1.141: preferred, colored
Changes since revision 1.140.2.1: +2 -2
lines
Catch up to current, requested by christos in ticket #1523
usr.bin/ftp/Makefile up to 1.39
usr.bin/ftp/fetch.c up to 1.235
usr.bin/ftp/ftp.1 up to 1.147
usr.bin/ftp/ftp_var.h up to 1.86
usr.bin/ftp/main.c up to 1.128
usr.bin/ftp/ssl.c up to 1.12
usr.bin/ftp/util.c up to 1.164
usr.bin/ftp/version.h up to 1.94
PR 57003: Support relative redirects.
Revision 1.137.8.2: download - view: text, markup, annotated - select for diffs
Mon Sep 12 15:05:21 2022 UTC (2 years, 4 months ago) by martin
Branches: netbsd-8
Diff to: previous 1.137.8.1: preferred, colored; branchpoint 1.137: preferred, colored
Changes since revision 1.137.8.1: +9 -23
lines
Backout ticket #1763 for now - trust anchors are not solved.
Revision 1.137.8.1: download - view: text, markup, annotated - select for diffs
Mon Sep 12 14:46:51 2022 UTC (2 years, 4 months ago) by martin
Branches: netbsd-8
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +23 -9
lines
Catch up to current, requested by christos in ticket #1763:
usr.bin/ftp/Makefile up to 1.39
usr.bin/ftp/cmds.c up to 1.141
usr.bin/ftp/complete.c up to 1.47
usr.bin/ftp/domacro.c up to 1.23
usr.bin/ftp/extern.h up to 1.82
usr.bin/ftp/fetch.c up to 1.235
usr.bin/ftp/ftp.1 up to 1.147
usr.bin/ftp/ftp.c up to 1.174
usr.bin/ftp/ftp_var.h up to 1.86
usr.bin/ftp/main.c up to 1.128
usr.bin/ftp/progressbar.c up to 1.24
usr.bin/ftp/progressbar.h up to 1.9
usr.bin/ftp/ssl.c up to 1.11
usr.bin/ftp/ssl.h up to 1.5
usr.bin/ftp/util.c up to 1.164
usr.bin/ftp/version.h up to 1.94
ftp(1): validate address from PASV and LPSV response.
ftp(1): use raw write(2) instead of fwrite(3) to avoid stream
corruption because of the progress bar interrupts.
Fixes for PR 56219 and PR 55857.
PR 57003: Support relative redirects.
Revision 1.140.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 14 11:52:52 2021 UTC (3 years, 7 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-3-RELEASE
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +4 -4
lines
Pull up following revision(s) (requested by lukem in ticket #1294):
usr.bin/ftp/cmds.c: revision 1.141
usr.bin/ftp/ftp.1: revision 1.143
ftp(1): fix description of "debug"
"debug" command and documentation got accidentally renamed
to "ftp_debug" 13 years ago, and was only partially fixed.
Revision 1.141: download - view: text, markup, annotated - select for diffs
Wed Jan 6 09:15:59 2021 UTC (4 years ago) by lukem
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-10-base,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Branch point for: netbsd-10
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +4 -4
lines
ftp(1): fix description of "debug"
"debug" command and documentation got accidentally renamed
to "ftp_debug" 13 years ago, and was only partially fixed.
Revision 1.138.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:10:19 2019 UTC (5 years, 7 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.138: preferred, colored; next MAIN 1.139: preferred, colored
Changes since revision 1.138: +15 -3
lines
Sync with HEAD
Revision 1.140: download - view: text, markup, annotated - select for diffs
Wed Feb 6 07:56:42 2019 UTC (5 years, 11 months ago) by martin
Branches: MAIN
CVS tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
phil-wifi-20190609,
netbsd-9-base,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
is-mlppp-base,
is-mlppp
Branch point for: netbsd-9
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +7 -2
lines
Try to avoid a (bogus) fatal warning from clang.
Revision 1.139: download - view: text, markup, annotated - select for diffs
Mon Feb 4 04:09:13 2019 UTC (5 years, 11 months ago) by mrg
Branches: MAIN
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +10 -3
lines
- add justquit() that always exits. use it to avoid unreachable code.
Revision 1.138: download - view: text, markup, annotated - select for diffs
Mon Nov 20 21:11:36 2017 UTC (7 years, 2 months ago) by kre
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-merge-20190127,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
pgoyette-compat
Branch point for: phil-wifi
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +8 -6
lines
Issue PWD commands to the server only when we actually
need the results, not speculatively, just in case we might.
Allows operation with some broken servers that get confused
by PWD commands in some situations, and saves server round
trips in the (modern) common case of
ftp ftp://path/name
where we never need to know the results from PWD.
Revision 1.134.2.2: download - view: text, markup, annotated - select for diffs
Sat Aug 27 13:57:01 2016 UTC (8 years, 4 months ago) by bouyer
Branches: netbsd-6
Diff to: previous 1.134.2.1: preferred, colored; branchpoint 1.134: preferred, colored; next MAIN 1.135: preferred, colored
Changes since revision 1.134.2.1: +6 -6
lines
Apply patch, requested by nonaka in ticket #1375:
src/usr.bin/ftp/cmds.c: patch
src/usr.bin/ftp/fetch.c: patch
src/usr.bin/ftp/ftp.1: patch
src/usr.bin/ftp/ftp.c: patch
src/usr.bin/ftp/ftp_var.h: patch
src/usr.bin/ftp/main.c: patch
src/usr.bin/ftp/ssl.c: patch
src/usr.bin/ftp/ssl.h: patch
src/usr.bin/ftp/version.h: patch
Update ftp(1) to version 20150912, adding https via proxy support.
Revision 1.135.8.1: download - view: text, markup, annotated - select for diffs
Sun Mar 13 11:49:14 2016 UTC (8 years, 10 months ago) by martin
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1
Diff to: previous 1.135: preferred, colored; next MAIN 1.136: preferred, colored
Changes since revision 1.135: +6 -6
lines
Pull up following revision(s) (requested by nonakap in ticket #1133):
usr.bin/ftp/fetch.c: revision 1.208-1.221
usr.bin/ftp/cmds.c: revision 1.136-1.137
usr.bin/ftp/ssl.c: revision 1.5
usr.bin/ftp/ftp.c: revision 1.165-1.166
usr.bin/ftp/ftp_var.h: revision 1.84
Workaround const issues of SSL_set_tlsext_host_name.
Use the proper format "[IPv6 address]:port" when reporting connection
attempts to IPv6 endpoints.
(Hopefully) fix build without IPv6 support
Try to factor out some code, this is completely out of control.
Separate no_proxy handling.
Factor the proxy handling code out.
Fix compile failure without WITH_SSL.
PR/50438: NONAKA Kimihiro: ftp(1): CONNECT method support
make DPRINTF/DWARN always statements.
Fix to connect https via proxy.
Fix ttyout message.
Simplify and factor out connect message
Split the position/size parsing into a separate function.
Mark function as only needed with ssl.
Fix downloads of local files using file:// URLs
Initialize the token match pointer.
use sizeof() and array notation.
CID 1354295: Array overrun.
Revision 1.137: download - view: text, markup, annotated - select for diffs
Sat Feb 27 16:31:31 2016 UTC (8 years, 10 months ago) by christos
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
netbsd-8-base,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Branch point for: netbsd-8
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +3 -3
lines
CID 1354295: Array overrun.
Revision 1.136: download - view: text, markup, annotated - select for diffs
Sat Feb 6 21:23:09 2016 UTC (8 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +6 -6
lines
use sizeof() and array notation.
Revision 1.134.2.1: download - view: text, markup, annotated - select for diffs
Tue Dec 17 21:07:59 2013 UTC (11 years, 1 month ago) by bouyer
Branches: netbsd-6
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +3 -3
lines
Apply patch, requested by tron in ticket #997:
usr.bin/ftp/Makefile patch
usr.bin/ftp/cmds.c patch
usr.bin/ftp/cmdtab.c patch
usr.bin/ftp/extern.h patch
usr.bin/ftp/fetch.c patch
usr.bin/ftp/ftp.1 patch
usr.bin/ftp/ftp.c patch
usr.bin/ftp/ftp_var.h patch
usr.bin/ftp/main.c patch
usr.bin/ftp/progressbar.c patch
usr.bin/ftp/ssl.c patch
usr.bin/ftp/ssl.h patch
usr.bin/ftp/util.c patch
usr.bin/ftp/version.h patch
Add HTTPS support to ftp(1).
Revision 1.134.6.1: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:30:34 2013 UTC (11 years, 10 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.134: preferred, colored; next MAIN 1.135: preferred, colored
Changes since revision 1.134: +3 -3
lines
resync with head
Revision 1.132.2.2: download - view: text, markup, annotated - select for diffs
Wed Jan 23 00:06:37 2013 UTC (11 years, 11 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.132.2.1: preferred, colored; branchpoint 1.132: preferred, colored; next MAIN 1.133: preferred, colored
Changes since revision 1.132.2.1: +3 -3
lines
sync with head
Revision 1.135: download - view: text, markup, annotated - select for diffs
Sat Dec 22 16:57:09 2012 UTC (12 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base9,
yamt-pagecache-base8,
tls-maxphys-base,
tls-earlyentropy-base,
tls-earlyentropy,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
netbsd-7-base,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
agc-symver-base,
agc-symver
Branch point for: netbsd-7
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +3 -3
lines
document https support, mentioning certificates are not validated, and obey
https_proxy.
Revision 1.132.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:09:32 2012 UTC (12 years, 9 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +12 -7
lines
sync with head
Revision 1.134: download - view: text, markup, annotated - select for diffs
Sun Jan 15 20:43:24 2012 UTC (13 years ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus
Branch point for: tls-maxphys,
netbsd-6
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +4 -4
lines
fix previous; use append instead of write.
Revision 1.133: download - view: text, markup, annotated - select for diffs
Sun Jan 15 03:58:28 2012 UTC (13 years ago) by christos
Branches: MAIN
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +11 -6
lines
make -R work the same in ftp:// like it does for http:// (i.e. work if
there is no local file).
Revision 1.132: download - view: text, markup, annotated - select for diffs
Fri Sep 16 15:39:26 2011 UTC (13 years, 4 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base
Branch point for: yamt-pagecache
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +3 -3
lines
Use __dead
Revision 1.131: download - view: text, markup, annotated - select for diffs
Tue Jan 12 06:50:04 2010 UTC (15 years ago) by lukem
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +4 -4
lines
rename argument from "bool" to "val"
Revision 1.130: download - view: text, markup, annotated - select for diffs
Mon Jul 13 19:05:41 2009 UTC (15 years, 6 months ago) by roy
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +4 -4
lines
Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
Revision 1.127.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 19:19:50 2009 UTC (15 years, 8 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.127: preferred, colored; next MAIN 1.128: preferred, colored
Changes since revision 1.127: +95 -77
lines
Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
Revision 1.129: download - view: text, markup, annotated - select for diffs
Sun Apr 12 10:18:52 2009 UTC (15 years, 9 months ago) by lukem
Branches: MAIN
CVS tags: jym-xensuspend-nbase,
jym-xensuspend-base
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +77 -59
lines
Fix numerous WARNS=4 issues (-Wcast-qual -Wsign-compare).
Revision 1.128: download - view: text, markup, annotated - select for diffs
Sun Apr 12 07:07:41 2009 UTC (15 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +23 -23
lines
fix -Wshadow issues
Revision 1.127: download - view: text, markup, annotated - select for diffs
Fri Dec 5 05:28:12 2008 UTC (16 years, 1 month ago) by lukem
Branches: MAIN
Branch point for: jym-xensuspend
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +3 -3
lines
correct a comment
Revision 1.126: download - view: text, markup, annotated - select for diffs
Tue Sep 30 03:41:53 2008 UTC (16 years, 3 months ago) by lukem
Branches: MAIN
CVS tags: netbsd-5-base,
netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +3 -3
lines
update copyrights
Revision 1.124.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:32:10 2008 UTC (16 years, 7 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.124: preferred, colored; next MAIN 1.125: preferred, colored
Changes since revision 1.124: +20 -3
lines
Sync w/ -current. 34 merge conflicts to follow.
Revision 1.123.10.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:36:05 2008 UTC (16 years, 8 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.123: preferred, colored; next MAIN 1.124: preferred, colored
Changes since revision 1.123: +20 -10
lines
sync with head.
Revision 1.125: download - view: text, markup, annotated - select for diffs
Sat May 10 00:05:31 2008 UTC (16 years, 8 months ago) by skd
Branches: MAIN
CVS tags: yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
hpcarm-cleanup-nbase
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +20 -3
lines
Add epsv6 and epsv to disable extended passive mode for ipv6 or both ipv4 and ipv6 respectively. This hack is due to our friends a Juniper Networks who break
epsv in ipv6. Should be fixed in ScreenOS 6.2.X.
Revision 1.124: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:24:12 2008 UTC (16 years, 8 months ago) by martin
Branches: MAIN
Branch point for: wrstuden-revivesa
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +2 -9
lines
Remove clause 3 and 4 from TNF licenses
Revision 1.123: download - view: text, markup, annotated - select for diffs
Thu May 24 05:05:18 2007 UTC (17 years, 8 months ago) by lukem
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base,
matt-mips64-base,
matt-mips64,
matt-armv6-prevmlocking,
matt-armv6-nbase,
matt-armv6-base,
matt-armv6,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-base,
hpcarm-cleanup,
cube-autoconf-base,
cube-autoconf
Branch point for: yamt-pf42
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +4 -3
lines
Display times in RFC2822 form rather than using ctime(3), since
the former is more explicit about the timezone offset.
Revision 1.122: download - view: text, markup, annotated - select for diffs
Thu May 10 05:35:31 2007 UTC (17 years, 8 months ago) by lukem
Branches: MAIN
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +5 -6
lines
Use getline() instead of fparseln()
Revision 1.121: download - view: text, markup, annotated - select for diffs
Wed Apr 18 01:39:04 2007 UTC (17 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +35 -27
lines
Clean up use of confirm() and mbort() so that the current operation
is always passed in (instead of depending upon the 'mname' global).
For confirm(), if the second argument is NULL print the "Continue with <cmd>"
prompt. This fixes up the the display of interrupted prompts.
Revision 1.120: download - view: text, markup, annotated - select for diffs
Tue Apr 17 05:52:03 2007 UTC (17 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +10 -11
lines
* Implement -s srcaddr; uses srcaddr as the local IP address for all
connections.
Based on code in the version of ftp that FreeBSD had before they
replaced it with lukemftp.
* Move error message handling into ftp_connect() rather than in the
caller, so that more specific error reporting can occur.
* Improve consistency of various warning and error messages.
Revision 1.119: download - view: text, markup, annotated - select for diffs
Wed Apr 11 00:52:38 2007 UTC (17 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +14 -4
lines
getpass() can return NULL upon error in some implementations
(as documented in older standards documents, before the API was obsoleted).
Problem observed in tnftp on Solaris by Emil Mikulic.
Revision 1.118: download - view: text, markup, annotated - select for diffs
Tue Jan 31 20:05:35 2006 UTC (18 years, 11 months ago) by christos
Branches: MAIN
CVS tags: wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
chap-midi-nbase,
chap-midi-base,
chap-midi,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +11 -11
lines
rename debug to ftp_debug. grr libssh.
Revision 1.117: download - view: text, markup, annotated - select for diffs
Tue Jan 31 20:01:23 2006 UTC (18 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +7 -7
lines
Rename xfoo() to ftp_foo() to avoid collisions with libssh. Don't ask.
Revision 1.111.2.5: download - view: text, markup, annotated - select for diffs
Sun Jul 24 10:32:29 2005 UTC (19 years, 6 months ago) by tron
Branches: netbsd-3
CVS tags: netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0
Diff to: previous 1.111.2.4: preferred, colored; branchpoint 1.111: preferred, colored; next MAIN 1.112: preferred, colored
Changes since revision 1.111.2.4: +64 -69
lines
Pull up revision 1.116 (requested by lukem in ticket #606):
Add NO_USAGE and NO_DEBUG so that we can fit in the floppies again.
Revision 1.111.2.4: download - view: text, markup, annotated - select for diffs
Sun Jul 24 10:30:17 2005 UTC (19 years, 6 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.111.2.3: preferred, colored; branchpoint 1.111: preferred, colored
Changes since revision 1.111.2.3: +20 -23
lines
Pull up revision 1.115 (requested by lukem in ticket #606):
Implement:
int getline(FILE *stream, char *buf, size_t buflen, const char **errormsg)
Read a line from the FILE stream into buf/buflen using fgets(), so up
to buflen-1 chars will be read and the result will be NUL terminated.
If the line has a trailing newline it will be removed.
If the line is too long, excess characters will be read until
newline/EOF/error.
Various -ve return values indicate different errors, and errormsg
will be changed to an error description if it's not NULL.
Convert to use getline() instead of fgets() whenever reading user input
to ensure that an overly long input line doesn't leave excess characters
for the next input operation to accidentally use as input.
Zero out the password & account after we've finished with it.
Consistently use getpass(3) (i.e, character echo suppressed) when
reading the account data. For some reason, historically the "login"
code suppressed echo for Account: yet the "user" command did not!
Display the hostname in the "getaddrinfo failed" warning.
Appease some -Wcast-qual warnings. Fixing all of these requires
significant code refactoring. (mmm, legacy code).
Revision 1.111.2.3: download - view: text, markup, annotated - select for diffs
Sun Jul 24 10:20:53 2005 UTC (19 years, 6 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.111.2.2: preferred, colored; branchpoint 1.111: preferred, colored
Changes since revision 1.111.2.2: +6 -5
lines
Pull up revision 1.114 (requested by lukem in ticket #606):
Use size_t instead of int where appropriate.
Revision 1.111.2.2: download - view: text, markup, annotated - select for diffs
Sun Jul 24 10:19:34 2005 UTC (19 years, 6 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.111.2.1: preferred, colored; branchpoint 1.111: preferred, colored
Changes since revision 1.111.2.1: +1 -1
lines
Pull up revision 1.113 (requested by lukem in ticket #606):
Some const cleanups.
Revision 1.116: download - view: text, markup, annotated - select for diffs
Wed Jun 29 02:31:19 2005 UTC (19 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +64 -69
lines
Add NO_USAGE and NO_DEBUG so that we can fit in the floppies again.
Revision 1.115: download - view: text, markup, annotated - select for diffs
Fri Jun 10 00:18:46 2005 UTC (19 years, 7 months ago) by lukem
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +20 -23
lines
Implement:
int getline(FILE *stream, char *buf, size_t buflen, const char **errormsg)
Read a line from the FILE stream into buf/buflen using fgets(), so up
to buflen-1 chars will be read and the result will be NUL terminated.
If the line has a trailing newline it will be removed.
If the line is too long, excess characters will be read until
newline/EOF/error.
Various -ve return values indicate different errors, and errormsg
will be changed to an error description if it's not NULL.
Convert to use getline() instead of fgets() whenever reading user input
to ensure that an overly long input line doesn't leave excess characters
for the next input operation to accidentally use as input.
Zero out the password & account after we've finished with it.
Consistently use getpass(3) (i.e, character echo suppressed) when
reading the account data. For some reason, historically the "login"
code suppressed echo for Account: yet the "user" command did not!
Display the hostname in the "getaddrinfo failed" warning.
Appease some -Wcast-qual warnings. Fixing all of these requires
significant code refactoring. (mmm, legacy code).
Revision 1.114: download - view: text, markup, annotated - select for diffs
Thu May 19 03:05:04 2005 UTC (19 years, 8 months ago) by lukem
Branches: MAIN
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +6 -5
lines
Use size_t instead of int where appropriate.
Revision 1.113: download - view: text, markup, annotated - select for diffs
Thu May 19 02:55:37 2005 UTC (19 years, 8 months ago) by lukem
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +3 -3
lines
Some const cleanups.
Revision 1.111.2.1: download - view: text, markup, annotated - select for diffs
Mon May 9 17:05:34 2005 UTC (19 years, 8 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +7 -7
lines
Pull up revision 1.112 (requested by lukem in ticket #266):
gratuitous whitespace cleanup (before someone else jumps the gun...)
Revision 1.112: download - view: text, markup, annotated - select for diffs
Mon Apr 11 01:49:31 2005 UTC (19 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +7 -7
lines
gratuitous whitespace cleanup (before someone else jumps the gun...)
Revision 1.111: download - view: text, markup, annotated - select for diffs
Fri Feb 11 06:21:22 2005 UTC (19 years, 11 months ago) by simonb
Branches: MAIN
CVS tags: netbsd-3-base
Branch point for: netbsd-3
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +3 -3
lines
White space nit- don't put a space before/after increment/decrement
operators.
Revision 1.110: download - view: text, markup, annotated - select for diffs
Wed Feb 9 23:17:27 2005 UTC (19 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +123 -114
lines
Factor out common string processing code eliminating static buffers,
making functions that should be static be static, and cleaning up
const usage. Added a guard against buffer overflow, but the domap function
is a bit too complicated for me to tackle right now. I will leave it
to the author; hi luke!
Revision 1.109: download - view: text, markup, annotated - select for diffs
Mon Jan 3 09:50:09 2005 UTC (20 years ago) by lukem
Branches: MAIN
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +38 -30
lines
Forbid filenames returned from mget that aren't in (or below) the
current directory.
The previous behaviour (of trusting the remote server's response when
retrieving the list of files to mget with prompting disabled) has been
in ftp ~forever, and has been a "known issue" for a long time.
Recently an advisory was published by D.J. Bernstein on behalf of
Yosef Klein warning of the problems with the previous behaviour, so
to alleviate concern I've fixed this with a sledgehammer.
Remember the local cwd after any operation which may change it.
Use "remotecwd" instead of "remotepwd".
Revision 1.108: download - view: text, markup, annotated - select for diffs
Sat Oct 30 17:36:31 2004 UTC (20 years, 2 months ago) by dsl
Branches: MAIN
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +4 -4
lines
Add (unsigned char) cast to ctype functions
Revision 1.107: download - view: text, markup, annotated - select for diffs
Tue Jul 20 11:05:20 2004 UTC (20 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +5 -4
lines
Ensure that "mname" is set in ls() and mls() so that an aborted confirm()
prints the correct name.
Problem highlighted & suggested fix from PR [bin/17766] by Steve McClellan.
Revision 1.106: download - view: text, markup, annotated - select for diffs
Tue Jul 20 10:40:21 2004 UTC (20 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +7 -6
lines
If an ftp auto-fetch transfer is interrupted by SIGINT (usually ^C),
exit with 130 instead of 1 (or rarely, 0).
This allows an ftp auto-fetch in a shell loop to correctly terminate the loop.
Should fix PR [pkg/26351], and possibly others.
Revision 1.105: download - view: text, markup, annotated - select for diffs
Sun Jun 6 13:53:28 2004 UTC (20 years, 7 months ago) by kleink
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +4 -4
lines
Fix an inversed test for NO_STATUS in rev. 1.103; fixes the real issue
behind PR bin/25842.
Revision 1.104: download - view: text, markup, annotated - select for diffs
Sun Jun 6 13:37:16 2004 UTC (20 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +4 -3
lines
make this compile without NO_STATUS
fixes bin/25842 by Jukka Salmi
Revision 1.103: download - view: text, markup, annotated - select for diffs
Sun Jun 6 01:37:41 2004 UTC (20 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +5 -3
lines
Save approximately 8K by not including http authentication, extended status
messages and help strings when the appropriate options are set.
Revision 1.102: download - view: text, markup, annotated - select for diffs
Thu Aug 7 11:13:52 2003 UTC (21 years, 5 months ago) by agc
Branches: MAIN
CVS tags: netbsd-2-base,
netbsd-2-1-RELEASE,
netbsd-2-1-RC6,
netbsd-2-1-RC5,
netbsd-2-1-RC4,
netbsd-2-1-RC3,
netbsd-2-1-RC2,
netbsd-2-1-RC1,
netbsd-2-1,
netbsd-2-0-base,
netbsd-2-0-RELEASE,
netbsd-2-0-RC5,
netbsd-2-0-RC4,
netbsd-2-0-RC3,
netbsd-2-0-RC2,
netbsd-2-0-RC1,
netbsd-2-0-3-RELEASE,
netbsd-2-0-2-RELEASE,
netbsd-2-0-1-RELEASE,
netbsd-2-0,
netbsd-2
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +3 -7
lines
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
Revision 1.101: download - view: text, markup, annotated - select for diffs
Thu Jul 31 07:06:41 2003 UTC (21 years, 5 months ago) by lukem
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +22 -10
lines
Invalidate remote directory completion cache if any command which
may change the remote contents completes successfully, including:
del, mdel, ren, mkdir, rmdir, quote, and all upload commands
Patch from Yar Tikhiy <yar@comp.chem.msu.su>.
Revision 1.100: download - view: text, markup, annotated - select for diffs
Sat Nov 30 03:10:55 2002 UTC (22 years, 1 month ago) by lukem
Branches: MAIN
CVS tags: fvdl_fs64_base
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +2 -3
lines
tweaks for fparseln(3) move from libutil to libc:
- remove #include <util.h> if nothing else needed it
- remove LDFLAGS+=-lutil if nothing else needed it
Revision 1.99: download - view: text, markup, annotated - select for diffs
Fri Jul 12 03:05:13 2002 UTC (22 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +3 -3
lines
strdup -> xstrdup (handle malloc error right)
Revision 1.98: download - view: text, markup, annotated - select for diffs
Wed Jun 5 10:20:46 2002 UTC (22 years, 7 months ago) by lukem
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +3 -3
lines
- when showing the final progress bar, replace "00:00 ETA" with the
elapsed time. (suggested by simonb)
- actually display transfer stats after a URL fetch. (bug introduced a
*long* time ago)
- update copyright & version
Revision 1.97: download - view: text, markup, annotated - select for diffs
Tue May 7 02:04:09 2002 UTC (22 years, 8 months ago) by lukem
Branches: MAIN
CVS tags: netbsd-1-6-base,
netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1,
netbsd-1-6-PATCH002-RELEASE,
netbsd-1-6-PATCH002-RC4,
netbsd-1-6-PATCH002-RC3,
netbsd-1-6-PATCH002-RC2,
netbsd-1-6-PATCH002-RC1,
netbsd-1-6-PATCH002,
netbsd-1-6-PATCH001-RELEASE,
netbsd-1-6-PATCH001-RC3,
netbsd-1-6-PATCH001-RC2,
netbsd-1-6-PATCH001-RC1,
netbsd-1-6-PATCH001,
netbsd-1-6
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +7 -7
lines
Use "r+" instead of "r+w", since the latter is not standard.
Noted by <Steve.McClellan@radisys.com> in private email.
Revision 1.96: download - view: text, markup, annotated - select for diffs
Mon May 6 14:36:41 2002 UTC (22 years, 8 months ago) by lukem
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +4 -4
lines
- Only send port number in HTTP/1.1 Host: request if port != 80.
Fixes [bin/15415] from Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
- Fix bad mode passed by mls() to recvrequest().
Fixes [bin/16642] from <steve.mcclellan@radisys.com>
Revision 1.95: download - view: text, markup, annotated - select for diffs
Wed Dec 26 09:40:15 2001 UTC (23 years ago) by lukem
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +3 -3
lines
update copyrights
Revision 1.94: download - view: text, markup, annotated - select for diffs
Mon Feb 19 18:15:28 2001 UTC (23 years, 11 months ago) by lukem
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +5 -5
lines
minor knf
Revision 1.93: download - view: text, markup, annotated - select for diffs
Fri Dec 15 02:22:50 2000 UTC (24 years, 1 month ago) by lukem
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +3 -2
lines
invoke cmdtab.c_handler()s with argv[0] == c_name instead of the
supplied name. that way the full (unambiguous) name is displayed in
error messages and usage strings.
Revision 1.92: download - view: text, markup, annotated - select for diffs
Wed Nov 15 00:10:59 2000 UTC (24 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +44 -29
lines
- implement "mreget"; as per "mget" but uses "reget" instead of "get"
- add -N netrc and $NETRC, as methods to select an alternative .netrc file
- cache local user name and home directory for further use
- in mget(), use docase() instead of a local version to do the case
conversion.
Revision 1.87.2.1: download - view: text, markup, annotated - select for diffs
Wed Oct 18 01:32:42 2000 UTC (24 years, 3 months ago) by tv
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE,
netbsd-1-5-PATCH003,
netbsd-1-5-PATCH002,
netbsd-1-5-PATCH001,
netbsd-1-5-BETA2,
netbsd-1-5-BETA
Diff to: previous 1.87: preferred, colored; next MAIN 1.88: preferred, colored
Changes since revision 1.87: +12 -6
lines
Pullup usr.bin string format fixes [is].
See "cvs log" for explicit revision numbers per file, from sommerfeld.
Revision 1.91: download - view: text, markup, annotated - select for diffs
Wed Oct 11 14:46:03 2000 UTC (24 years, 3 months ago) by is
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +17 -8
lines
More format string cleanup by sommerfeld.
Revision 1.90: download - view: text, markup, annotated - select for diffs
Tue Aug 1 22:47:25 2000 UTC (24 years, 5 months ago) by lukem
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +5 -5
lines
- rename NO_QUAD to NO_LONG_LONG, QUAD* -> LL* and add ULL* (unsigned)
equivalents. name change suggested by Klaus Klein <kjk@netbsd.org>
- change defined(BSD4_4) || HAVE_SIN_LEN tests into HAVE_SOCKADDR_SA_LEN,
and set the latter if BSD4_4 exists
Revision 1.89: download - view: text, markup, annotated - select for diffs
Sun Jul 30 04:42:37 2000 UTC (24 years, 5 months ago) by lukem
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +6 -19
lines
clean up NO_QUAD support: create helper #defines and use as appropriate:
#define NOQUAD ! NOQUAD
------- ------ - ------
QUADF "%ld" "%lld"
QUADFP(x) "%" x "ld" "%" x "lld"
QUADT long long long
STRTOL(x,y,z) strtol(x,y,z) strtoll(x,y,z)
Revision 1.88: download - view: text, markup, annotated - select for diffs
Tue Jul 18 07:16:52 2000 UTC (24 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +181 -91
lines
add support for FEAT and OPTS commands with `features' and `opts'.
(from RFC 2389).
add support for MLST & MLSD (machine parseble listings) with 'mlst', 'mlsd'
and 'pmlsd' (mlsd |$PAGER) commands. (from draft-ietf-ftpext-mlst-11)
rename remotesyst() to getremoteinfo(), and modify to parse the result from
FEAT (if supported), and take into account the support for the various
extensions such as MDTM, SIZE, REST (STREAM), MLSD, and FEAT/OPTS.
put each feature into one of the following categories:
- known to work (explicit FEAT)
- unknown but assume works until explicit failure, when it's
then tagged as `known not to work'.
- known not to work (FEAT succeeded but didn't return anything,
or was unknown and then explicit failure)
assign results into features[] matrix.
add support to getreply() so that an optional callback will be called
for each line received from the server except for the first and last.
this is used in FEAT (and MLST) parsing.
modify various commands to check if REST (STREAM), MDTM and SIZE are
explicitly or implicitly supported before using.
fix `syst' when verbose is off.
minor knf (indent goto labels by one space, etc).
simply various command usage handlers by assuming that argv != NULL except
for quit() and disconnect().
Revision 1.85.2.1: download - view: text, markup, annotated - select for diffs
Fri Jun 23 16:30:21 2000 UTC (24 years, 7 months ago) by minoura
Branches: minoura-xpg4dl
Diff to: previous 1.85: preferred, colored; next MAIN 1.86: preferred, colored
Changes since revision 1.85: +6 -5
lines
Sync w/ netbsd-1-5-base.
Revision 1.87: download - view: text, markup, annotated - select for diffs
Thu Jun 15 13:08:23 2000 UTC (24 years, 7 months ago) by lukem
Branches: MAIN
CVS tags: netbsd-1-5-base,
netbsd-1-5-ALPHA2
Branch point for: netbsd-1-5
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +3 -2
lines
* migrate the SYST parsing from setpeer() into a separate remotesyst().
call remotesyst() only when login has been successful
some servers don't let you run SYST until you've successfully logged in.
* in fetch_ftp(), always call setpeer() with autologin disabled, and use
the following ftp_login() to DTRT.
this prevents ftp from trying to login a second time if the first autologin
fails when connecting to a remote site anonymously using autofetch.
* reset unix_proxy and unix_server in cleanuppeer()
* missed a function conversion in the KNF sweep...
Revision 1.86: download - view: text, markup, annotated - select for diffs
Sun May 28 07:53:30 2000 UTC (24 years, 7 months ago) by lukem
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +5 -5
lines
Change `ls' to use the `LIST' and not `NLST' FTP protocol command.
Now that after many years on not caring we find certain popular
ftp servers are starting to obey RFC959 to the letter of the law
and will only return a list of filenames (not directories or
other filetypes) in the output of `NLST', then `LIST' is more useful
in this case. (Note that the aforementioned pedanticness means that
filename completion isn't as useful as it could be...)
Fixes [bin/8937] by David A. Gatwood <dgatwood@deepspace.mklinux.org>
Revision 1.85: download - view: text, markup, annotated - select for diffs
Mon May 1 10:35:16 2000 UTC (24 years, 8 months ago) by lukem
Branches: MAIN
CVS tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +88 -251
lines
convert to ANSI KNF
Revision 1.84: download - view: text, markup, annotated - select for diffs
Mon May 1 09:44:53 2000 UTC (24 years, 8 months ago) by lukem
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +42 -3
lines
* Add support for `fget localfile', which reads a list of filenames to
retrieve from localfile. Based on work by Darren Reed.
* Crank version.
* Update copyright dates.
Revision 1.83: download - view: text, markup, annotated - select for diffs
Thu Apr 13 08:13:30 2000 UTC (24 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +3 -3
lines
s/strtoq/strtoll/ (the latter is standardised)
Revision 1.82: download - view: text, markup, annotated - select for diffs
Mon Jan 31 22:01:03 2000 UTC (24 years, 11 months ago) by lukem
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +9 -9
lines
define private type `sigfunc' as
typedef void (*sigfunc) __P((int));
and replace use of sig_t and void (*)(int).
certain other OSes define sig_t differently to that (they add extra arguments),
and it causes problems due to function mismatches, etc...
Revision 1.58.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:36:56 1999 UTC (25 years ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58: +624 -351
lines
Pull up to last week's -current.
Revision 1.81: download - view: text, markup, annotated - select for diffs
Sun Dec 5 22:54:35 1999 UTC (25 years, 1 month ago) by lukem
Branches: MAIN
CVS tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +3 -2
lines
move version into separate file to reduce recompilation after version crank.
Revision 1.80: download - view: text, markup, annotated - select for diffs
Fri Nov 26 21:41:55 1999 UTC (25 years, 1 month ago) by lukem
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +3 -3
lines
* complete_remote(): use remglob("", ...) instead of remglob(".", ...),
for listings of the current working directory; some ftp servers don't
like `NLST .'.
[noted by Giles Lean <giles@nemeton.com.au>]
* recvrequest(): treat remote=="" as remote==NULL when calling command().
(to support the above change)
* support `[user@]' in `[user@]host' and `[user@]host[:][path]'.
[based on idea (and initial code) from David Maxwell <david@fundy.ca>]
* `idle' may be invoked without any args
* reformat some comments
* reformat usage string in program and man page
* call updateremotepwd() after successful login, not after successful connect
* always call setsockopt(, IPPROTO_IP, IP_TOS, ) (et al); using #if
defined(IPPROTO_IP) doesn't work on certain foreign systems where
enums instead of #defines are used...
[noted by Matthias Pfaller <leo@dachau.marco.de>]
Revision 1.79: download - view: text, markup, annotated - select for diffs
Thu Nov 11 02:53:02 1999 UTC (25 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +8 -4
lines
- implement updateremotepwd(); update the global variable `remotepwd'
to contain the remote working directory.
- add `set prompt', a user configurable prompt. (defaults to `ftp> ').
the following escape characters a la tcsh(1) are supported: %/, %m,
%M, and %n.
- add global var `username'; used by prompt code
- fix a couple of minor memory leaks
- bump version
Revision 1.78: download - view: text, markup, annotated - select for diffs
Tue Nov 9 22:03:49 1999 UTC (25 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +3 -3
lines
- split the version string into product and version
- be consistent about reporting the version between:
+ status command
+ about:version URL fetch
+ User-agent sent in http requests
Revision 1.77: download - view: text, markup, annotated - select for diffs
Wed Nov 3 07:42:01 1999 UTC (25 years, 2 months ago) by lukem
Branches: MAIN
CVS tags: comdex-fall-1999-base,
comdex-fall-1999
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +3 -2
lines
support `about:version'. also display the version in the output of `status'.
Revision 1.76: download - view: text, markup, annotated - select for diffs
Sun Oct 24 12:31:36 1999 UTC (25 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +301 -106
lines
new features:
- add `usage'; displays the usage of a command.
implemented by calling the c_handler() with argc = 0, argv = "funcname".
- add `passive auto'; does the same as $FTPMODE=auto.
- add `set [option value]'; display all options, or set an option to a value.
- add `unset option'; unset an option.
- add getoptionvalue() to retrieve an option's value, and replace a few
global variables with calls to this.
- implement cleanuppeer(), which resets various bits of state back to
`disconnected'. call in disconnect() and lostpeer().
- support completing on `options'.
- improve recovery after a SIGINT may have closed the connection.
XXX: there's still a couple to fix
other stuff:
- various consistency fixes in the man page.
- ensure that the command usage strings in the code and man page match reality.
- mput/mget: check that the connection still exists before each xfer.
- minor cosmetic changes in confirm().
- set code correctly in sizecmd() and modtime()
- don't need \n in err() strings.
- change lostpeer to take an argument (rather than casting (sig_t)lostpeer
in signal handlers)
- knf and whitespace police.
Revision 1.75: download - view: text, markup, annotated - select for diffs
Wed Oct 13 02:47:54 1999 UTC (25 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +6 -8
lines
* fix up confirm() (broke `a' and `p' in last commit)
* simplify main loop (don't need `top' variable any more)
* use a struct sockaddr_in6.sin6_addr for the result from inet_pton(),
rather than u_char buf[16]
* add a few more comments
Revision 1.74: download - view: text, markup, annotated - select for diffs
Tue Oct 12 06:04:59 1999 UTC (25 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +69 -6
lines
a few user interface and cosmetic tweaks:
* confirm(): move from util.c to cmds.c. display mnemonic string in its prompt.
add support for `q' (terminate current xfer), `?' (show help list)
* in various signal handlers, output a linefeed only if fromatty.
* if fgets(stdin) returned NULL (i.e, EOF), clearerr(stdin) because you don't
want future fgets to fail. this is not done for the fgets() in the main
command loop, since ftp will quit at that point.
* unless ftp is invoked with -a, don't retain the anonftp setting between
hosts (`ftp somehost:' sets anonftp, but you don't want that to `stick'
if you close that connection and open a new one).
Revision 1.73: download - view: text, markup, annotated - select for diffs
Sun Oct 10 22:33:54 1999 UTC (25 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +5 -5
lines
use sigjmp_buf for sigsetjmp(), instead of jmp_buf.
noted by Havard.Eidnes@runit.sintef.no.
Revision 1.72: download - view: text, markup, annotated - select for diffs
Sat Oct 9 03:00:55 1999 UTC (25 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +29 -20
lines
* use sigsetjmp()/siglongjump() instead of setjmp()/longjmp(); the latter
don't save the signal mask on some foreign systems.
* ensure signal handlers don't use stdio and do reset errno if they
don't exit with siglongjmp()
* use a common SIGINT handler for {send,recv}request()
Revision 1.71: download - view: text, markup, annotated - select for diffs
Tue Oct 5 13:05:39 1999 UTC (25 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +6 -10
lines
* factor out SIGINFO setting into a handler that is always active (but only
prints out info if bytes > 0). only set the handler if SIGINFO is defined
* hijack SIGQUIT to be the same as SIGINFO (foreign ports have this, and it's
annoying to have SIGQUIT dump core on netbsd when it prints info on other
systems)
* in {recv,send}request(), factor a lot of duplicated code out into a
`cleanup' section at the end
* rework shell() a bit
Revision 1.70: download - view: text, markup, annotated - select for diffs
Tue Oct 5 01:16:11 1999 UTC (25 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +6 -6
lines
add TNFi copyright to all files i've done more than a minor amount of work to...
Revision 1.69: download - view: text, markup, annotated - select for diffs
Tue Oct 5 00:54:07 1999 UTC (25 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +15 -7
lines
enhancments from Marc Horowitz <marc@mit.edu> to improve connection timeouts:
* implement xsignal_restart(), which only sets the SA_RESTART flag if
specifically requested
* xsignal() is now a wrapper to xsignal_restart(). INFO, USR1, USR2 and WINCH
are restartable, ALRM, INT, PIPE and QUIT are not.
* improve getreply()'s timeout code to take advantage of the above.
other changes:
* improve wording of how globbing works for `classic' URLs (host:path).
suggested by John Refling <johnr@imageworks.com> in relation to PRs
[bin/8519] and [bin/8520]
* always compile in the `edit' command even if NO_EDITCOMPLETE defined.
it's just a no-op in the latter case, which is more consistent to
the users.
* always compile in about: support (i.e, remove NO_ABOUT).
i'm entitled to some vanity in this program...
* clean up some whitespace
Revision 1.68: download - view: text, markup, annotated - select for diffs
Fri Oct 1 08:01:12 1999 UTC (25 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +16 -14
lines
If EPSV or EPRT fails, disable epsv4 for the rest of the current connection.
the disabled state can be overridden by toggling epsv4.
(I got sick of the errors about EPSV not being supported on almost
every server I connect to. This way we retain support for epsv4, but
it's not so whiny after the first failure...)
Revision 1.67: download - view: text, markup, annotated - select for diffs
Fri Oct 1 06:18:32 1999 UTC (25 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +3 -3
lines
* don't bother with "pathnames.h"; it contained just a single #define.
instead, include <paths.h> in the files that need it
* slightly reorg ftp_var.h
Revision 1.66: download - view: text, markup, annotated - select for diffs
Fri Oct 1 05:08:31 1999 UTC (25 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +4 -4
lines
* newer takes an optional second arg, so document this
* be a bit more explicit that the arguments to rate are in bytes
Revision 1.65: download - view: text, markup, annotated - select for diffs
Thu Sep 30 23:51:26 1999 UTC (25 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +31 -31
lines
* In the !NI_NUMERICHOST case (i.e, getaddrinfo() challenged systems), portnum
should be in host order. found/fixed by Matthias Pfaller <leo@dachau.marco.de>
* parse_url(): improve checking of portnum, and add an extra argument to pass
back the parsed portnum to the caller (reduces a bit of code duplication)
* Move the KAME/WIDE copyrights after the BSD/TNFi ones. Since there was
significantly less code added under the former, it's only fair on the latter.
Revision 1.64: download - view: text, markup, annotated - select for diffs
Thu Sep 30 12:18:03 1999 UTC (25 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +6 -5
lines
* fix initialisation of home[]
* fetch_url(): if path would be NULL, return strdup("")
Revision 1.63: download - view: text, markup, annotated - select for diffs
Tue Sep 28 06:47:38 1999 UTC (25 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +167 -150
lines
* add new commands:
lpage page local files
pdir as dir, but through your $PAGER
pls as ls, but through your $PAGER
* implement docase() (a la dotrans() et al) and use appropriately, rototilling
some duplicated code
* globulize(): modify to return a pointer to the strdup()ed result in all cases,
and hack the code that calls it to take this into account
* replace strcpy() and strncpy() with strlcpy()
* put(), getit(): use some aptly named local vars instead of argv[...]
* delint
Revision 1.62: download - view: text, markup, annotated - select for diffs
Mon Sep 27 23:09:42 1999 UTC (25 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +25 -26
lines
* idle(): rename to idlecmd(). certain linux distributions have an incompatible
prototype for idle() in <unistd.h> (which i thought was against namespace
and sensibility guidelines, but...)
* consistently use xsignal() instead of signal(). we get known behaviour
in all cases (SA_RESTART), which is good for some borken foreign systems.
* remove signal.h from most files; it's unnecessary now
* fetch_url(): use `long chunksize' instead of ssize_t; it's more portable, and
we're setting chunksize with strtol() anyway
* xsignal(): only use SA_RESTART if it exists. SunOS 4.x doesn't have it
but has the inverse (SA_INTERRUPT). the original function i was inspired
from had this support (lib/signal.c, W. Richard Stevens' `UNP 2nd ed Vol 1').
* remove <termios.h> from util.c; it should be unnecessary now
Revision 1.61: download - view: text, markup, annotated - select for diffs
Fri Sep 24 14:28:14 1999 UTC (25 years, 4 months ago) by lukem
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +4 -4
lines
* use %lld instead of %qd to print out (long long) vars.
(slightly more portable; e.g, solaris supports this)
* remove some fluff (lint)
Revision 1.60: download - view: text, markup, annotated - select for diffs
Fri Sep 24 12:52:18 1999 UTC (25 years, 4 months ago) by lukem
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -7
lines
use an off_t instead of quad_t (or long #ifndef NO_QUAD) to store the
temporary restart point. (yet another portability fix...)
Revision 1.59: download - view: text, markup, annotated - select for diffs
Fri Sep 24 00:48:24 1999 UTC (25 years, 4 months ago) by lukem
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +3 -20
lines
* finish replacing snprintf() with sprintf(), for portability reasons.
add lots of comments about how to size up the buffers, and add extra
checks to hopefully ensure that there won't be an overflow (unless
someone modifies the length of the sprintf()s).
* as part of the above, slightly rework the way the `*' bar is calculated.
also fixes a display bug when > 160 stars were needed to be printed.
the maximum progress bar width at this time is 256.
* remove some code that checks the port that was #if 0-ed out as part of the
ipv6 migration; it's not going to be used again.
Revision 1.58: download - view: text, markup, annotated - select for diffs
Wed Sep 22 07:18:31 1999 UTC (25 years, 4 months ago) by lukem
Branches: MAIN
Branch point for: wrstuden-devbsize
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +29 -44
lines
* add support for `xferbuf', which sets both `sndbuf' and `rcvbuf'
* document the above three commands
* rototill the way the sndbuf and rcvbuf work. remove resetsockbufsize()
* use the appropriate socket buffer size as the size of the buffer that
the read()/write() loops use. speeds up things in some cases.
Revision 1.57: download - view: text, markup, annotated - select for diffs
Wed Sep 22 03:01:53 1999 UTC (25 years, 4 months ago) by lukem
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +4 -3
lines
replace snprintf() with strlcpy(), strlcat(), or direct assignment
where appropriate. (strlc*() are easier to port to foriegn systems).
XXX; there's still a few snprintf's in the progress meter stuff to convert
Revision 1.56: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:10:16 1999 UTC (25 years, 4 months ago) by lukem
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +3 -3
lines
reword EPSV status line
Revision 1.55: download - view: text, markup, annotated - select for diffs
Sun Jul 11 20:37:39 1999 UTC (25 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +13 -2
lines
add epsv4 command, which enable/disable the use of EPSV/EPRT.
this is mainly for (hypothetical) ftp server which disconnect clients
that use EPSV/EPRT. I've never seen any ftp server like this, but
epsv4 command may be of use when such an ftp server is found.
Revision 1.54: download - view: text, markup, annotated - select for diffs
Fri Jul 2 08:07:40 1999 UTC (25 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +41 -8
lines
add dual-stack (IPv4/v6) support. hope I broke no other part...
Revision 1.53: download - view: text, markup, annotated - select for diffs
Tue Jun 29 12:41:22 1999 UTC (25 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +4 -4
lines
s/xfer/transfer/
Revision 1.52: download - view: text, markup, annotated - select for diffs
Tue Jun 29 10:43:16 1999 UTC (25 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +99 -12
lines
[fear this; more ftp hacking from lukem :-]
features:
---------
* transfer rate throttling with the new `rate' command. syntax:
rate direction [max [incr]]
where direction is `all', `get' or `put'.
if max is not supplied, the current settings are displayed.
if max is supplied, then transfers in the given direction will
be throttled to this value.
if incr is supplied, the increment for the `on-the-fly' scaling
will be set to that, otherwise `1024' is used.
currently implemented for binary get, binary put, and url fetches.
not yet supported for ascii get or put, or local file copies.
* on-the-fly scaling of the throttle based on signals:
- SIGUSR1 raises the throttle rate by the increment for that direction
- SIGUSR2 lowers the throttle rate by the increment for that direction
* -T dir,max[,incr] option to set rate from the command line
* `k', `m', `g' suffix support for bytecounts in the `hash', `rate',
`rcvbuf' and `sndbuf' commands)
bug fixes and code mods:
------------------------
* fix up ftp_login() so that ruserpass() is always called, even for
command-line url fetches.
* implement strsuftoi(), which parses a given number into a int with
suffix support. replaces getsockbufsize()
* implement parserate(), which does the argv parsing for -T and rate
* save and restore errno in signal handlers (may not be necessary, but
it doesn't hurt)
notes:
------
the rate command has had reasonable testing, but I'd like feedback
if it doesn't do the right thing, especially from people on slower
(i.e, modem) links.
I haven't tested the rate throttle against a http server which does
`transfer-encoding: chunked' because I couldn't find a server to
test against.
Revision 1.47.2.3: download - view: text, markup, annotated - select for diffs
Fri Jun 25 01:14:39 1999 UTC (25 years, 7 months ago) by cgd
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH003,
netbsd-1-4-PATCH002,
netbsd-1-4-PATCH001
Diff to: previous 1.47.2.2: preferred, colored; branchpoint 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47.2.2: +4 -4
lines
pull up rev 1.51 from trunk. (cgd)
Revision 1.47.2.2: download - view: text, markup, annotated - select for diffs
Wed Jun 23 14:31:15 1999 UTC (25 years, 7 months ago) by perry
Branches: netbsd-1-4
Diff to: previous 1.47.2.1: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.2.1: +3 -3
lines
pullup 1.49->1.50 (kleink)
Revision 1.47.2.1: download - view: text, markup, annotated - select for diffs
Tue Jun 22 21:01:18 1999 UTC (25 years, 7 months ago) by perry
Branches: netbsd-1-4
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +19 -8
lines
pullup 1.47->1.49 (lukem)
Revision 1.51: download - view: text, markup, annotated - select for diffs
Sun Jun 20 22:07:28 1999 UTC (25 years, 7 months ago) by cgd
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +6 -6
lines
split the "SMALL" #ifdefs into ones for NO_ABOUT, NO_EDITCOMPLETE, and
NO_PROGRESS. -DSMALL still implies all of those. progress meter support
isn't necessary for the smallest possible ftp client, but it adds very
little space and makes users' lives much better. Therefore, it should
be enabled for installation media if at all possible.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Fri Jun 11 14:12:19 1999 UTC (25 years, 7 months ago) by lukem
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -3
lines
use default pager if $PAGER=""
Revision 1.49: download - view: text, markup, annotated - select for diffs
Wed Jun 2 02:03:57 1999 UTC (25 years, 7 months ago) by lukem
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +16 -8
lines
* fix gate mode to login as `user@realhost' rather than using PASSERVE;
the latter only seemed to work for TIS Gauntlet and not TIS fwtk.
thanks to simonb@netbsd.org for testing this. fixes [bin/5556].
* if EOF (e.g, ^D) is entered at a username/password/account prompt which
happens to use fgets(), exit the login rather than treating EOF as CR.
* don't use the comma operator where separate statements are valid
* always use snprintf to copy stuff into malloced buffers, just in case
typos creep in and mean that the buffer ends up being overflowed
Revision 1.48: download - view: text, markup, annotated - select for diffs
Wed May 12 11:06:00 1999 UTC (25 years, 8 months ago) by lukem
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +5 -2
lines
update copyright
Revision 1.47: download - view: text, markup, annotated - select for diffs
Mon Mar 8 03:09:08 1999 UTC (25 years, 10 months ago) by lukem
Branches: MAIN
CVS tags: netbsd-1-4-base,
netbsd-1-4-RELEASE
Branch point for: netbsd-1-4
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +5 -5
lines
whitespace & copyright fixes
Revision 1.46: download - view: text, markup, annotated - select for diffs
Sun Jan 24 02:39:29 1999 UTC (26 years ago) by lukem
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -15
lines
* -v enables verbose & progress, -V disables both
* set setvbuf(ttyout, NULL, _IOLBF, 0) and remove a bunch of fflush(ttyout).
* use fwrite() instead of write() for progressmeter (don't intermix stdio
with non stdio ops)
Revision 1.45: download - view: text, markup, annotated - select for diffs
Sun Jan 24 00:51:08 1999 UTC (26 years ago) by lukem
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +6 -3
lines
flush ttyout in togglevar()
Revision 1.30.2.2: download - view: text, markup, annotated - select for diffs
Tue Nov 10 18:48:32 1998 UTC (26 years, 2 months ago) by cgd
Branches: netbsd-1-3
CVS tags: netbsd-1-3-PATCH003-CANDIDATE2,
netbsd-1-3-PATCH003-CANDIDATE1,
netbsd-1-3-PATCH003-CANDIDATE0,
netbsd-1-3-PATCH003
Diff to: previous 1.30.2.1: preferred, colored; branchpoint 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30.2.1: +283 -131
lines
pull up rev(s) 1.33-1.44 from trunk. (feyrer)
Revision 1.44: download - view: text, markup, annotated - select for diffs
Thu Oct 8 14:45:26 1998 UTC (26 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +6 -2
lines
* hash & progress are mutually exclusive. [noted by mrg@netbsd.org]
* in autofetch mode, don't attempt to 'cd /' on first xfer (only on
subsequent xfers), as some ftp daemons don't permit that.
[noted by dbj@netbsd.org].
XXX: code could be smarter (but a lot more complicated to boot); this
works for now.
Revision 1.43: download - view: text, markup, annotated - select for diffs
Tue Sep 1 14:25:52 1998 UTC (26 years, 4 months ago) by lukem
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -3
lines
replace command(buf) with command("%s", buf) in quote1(), thus preventing
'quote' commands that contain % formats from being mis-intepreted.
noted by Lundman <lundman@argonaut.com> on current-users@netbsd.org
Revision 1.42: download - view: text, markup, annotated - select for diffs
Sat Aug 8 02:51:49 1998 UTC (26 years, 5 months ago) by lukem
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +3 -2
lines
use <limits.h> for INT_MAX (more portable)
Revision 1.41: download - view: text, markup, annotated - select for diffs
Mon Aug 3 01:49:25 1998 UTC (26 years, 5 months ago) by lukem
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -4
lines
features:
* support $no_proxy, which is a comma or space separated list of
host[:port] elements for which proxying is to be disabled.
(asked for by cgd in [bin/5027])
* if $FTPANONPASS is defined, use that as the anon ftp password
(instead of "`whoami`@")
* allow http URL's without a filename as long as an output file
is specified.
other stuff:
* implement parse_url(), which breaks up a URL into its bits, and use.
* simplify url_get() and auto_fetch() to use parse_url() and to not
modify the supplied URL or a copy of it.
* implement xmalloc() and xstrdup(); error-checked malloc()/strdup()
* add more consistency to messages, quoting strings in output as `%s'
Revision 1.40: download - view: text, markup, annotated - select for diffs
Sun Jul 26 12:58:16 1998 UTC (26 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -3
lines
* spell `retrieved' correctly!
* parse Last-Modified: HTTP headers for date, and change time of
retrieved file if parsing succeeded
* support file:/// and file://localhost/ URLs
* in url_get(), re-write byte moving code to consistently use fread()
and fwrite(), and check errors at end with ferror()
* add about:* easter-egg (#ifndef SMALL :-)
Revision 1.39: download - view: text, markup, annotated - select for diffs
Fri Jul 10 04:39:03 1998 UTC (26 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +99 -2
lines
Add "sndbuf" and "rcvbuf" commands for setting the socket buffer sizes,
which in turn can allow the use of larger TCP windows. This is a work in
progress; there is not yet support for specifying global defaults or
user prefrences on a host/network basis.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Fri Jun 19 23:01:21 1998 UTC (26 years, 7 months ago) by kleink
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -3
lines
GLOB_QUOTE is dead; per POSIX, backslash quoting of special characters being
enabled is the default behaviour.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Thu Jun 4 08:28:35 1998 UTC (26 years, 7 months ago) by lukem
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +149 -120
lines
some fixes & enhancements from openbsd's ftp, with extra fixes by me:
* default to passive with active fallback. $FTPMODE modifies this behaviour.
-A forces active connection.
* support '-o outfile' for auto-fetched files. outfile can be a file,
`-' (for stdout), or '|command' (to output each file through command).
* support '-r waittime', which retries the connection after waittime seconds
if it fails.
* fix 'page file' when restart is non-zero.
* try all ip-addresses of a host in a http fetch (as the normal ftp fetch
does).
XXX: a ``broken pipe'' error sometimes occurs with -o '|command';
i haven't tracked this down yet.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Wed May 20 00:52:29 1998 UTC (26 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +29 -9
lines
- add <signal.h> since we are using signals.
- cast arg to is*() to unsigned char.
- don't require quad_t to exist to compile.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Apr 1 21:07:03 1998 UTC (26 years, 9 months ago) by kleink
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -2
lines
Need <time.h> for asctime() and localtime() prototypes.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Sun Jan 18 22:09:39 1998 UTC (27 years ago) by lukem
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -3
lines
define MAX_IN_PORT_T and use instead of USHRT_MAX. suggested by cgd@netbsd.org
Revision 1.33: download - view: text, markup, annotated - select for diffs
Sun Jan 18 14:23:33 1998 UTC (27 years ago) by lukem
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +4 -3
lines
* ensure buffer for username is initialised, so ^D on username prompt
doesn't use garbage for the username. from "Soren S. Jorvang" <soren@t.dk>
in [bin/4559]
* use in_port_t for ports, and USHRT_MAX instead of 0xffff
(from millert@openbsd.org)
* use `NULL' instead of `(.... *)0' where appropriate.
Revision 1.30.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 18 00:58:26 1997 UTC (27 years, 2 months ago) by mellon
Branches: netbsd-1-3
CVS tags: netbsd-1-3-RELEASE,
netbsd-1-3-PATCH002,
netbsd-1-3-PATCH001,
netbsd-1-3-BETA
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +29 -15
lines
Pull rev 1.31 and 1.32 up from trunk (lukem)
Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun Nov 2 00:18:46 1997 UTC (27 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -3
lines
correctly detect good vs bad hash mark values. (found by <enami@netbsd.org>)
Revision 1.31: download - view: text, markup, annotated - select for diffs
Sat Nov 1 14:36:49 1997 UTC (27 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +29 -15
lines
* in recvrequest(), ignore restart_point unless "RETR"ieving. fixes problems
where a remote completion or `mget' would confuse the client a `restart'
had been issued beforehand. now, `restart' is remembered until an operation
that can actually use it is invoked.
* in sendrequest(), don't reset restart_point upon entry. fixes `restart'
for `put' operations.
* if `restart' is invoked with no arguments, print current setting instead
of displaying a usage
* consistently use printf("%qd", (long long)restart_point) when displaying
restart_point
* use strto[lq]() instead of atol() when parsing `mark' and `restart' values
* remove unnecessary strlen()s when result of previous snprintf() will do
* replace a few malloc()/strcpy()s with strdup()s
* use SECSPERHOUR instead of '3600'
Revision 1.30: download - view: text, markup, annotated - select for diffs
Fri Sep 26 15:22:46 1997 UTC (27 years, 3 months ago) by lukem
Branches: MAIN
CVS tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -3
lines
add a space to restart message. from geoff wing in [bin/4161]
Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Sep 21 01:06:30 1997 UTC (27 years, 4 months ago) by lukem
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +4 -4
lines
More cleanups from Todd Miller <Todd.Miller@courtesan.com>:
* Use an int, not "union wait".
* Move the "parsed_url" label so that the next statement is not an "else" --
some ansi C compilers don't like it the old way (SGI's for example).
* Deal with the possibility of getlogin(2) failing.
* Don't error out if the remote server doesn't support the "MDTM" command.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Sat Sep 13 09:05:52 1997 UTC (27 years, 4 months ago) by lukem
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -2
lines
Fixes from Todd Miller <Todd.Miller@courtesan.com>:
* use size_t instead of int in places
* use symbolic constants when using access()
Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Aug 18 10:20:15 1997 UTC (27 years, 5 months ago) by lukem
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +125 -45
lines
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]]'
Revision 1.26: download - view: text, markup, annotated - select for diffs
Mon Jul 21 14:03:48 1997 UTC (27 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +4 -4
lines
fix compile on alpha:
* cast all %qd printfs to (long long) [inspired by billc@warped.net]
* replace sscanf %qd with strtoq() et al
Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun Jul 20 09:45:38 1997 UTC (27 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +12 -10
lines
* use RCSID() && COPYRIGHT() macros
* cleanup for WARNS=1 (including some ugly '(void)&var' bits wrapped in
#ifdef __GNUC__ to shut up gcc warnings WRT setjmp/longjmp)
* use strtol() instead of atoi(), and more extensively check result of
conversion
* use u_int16_t instead of short or int for TCP port addresses
Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat May 17 19:44:36 1997 UTC (27 years, 8 months ago) by pk
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +6 -6
lines
NULL => 0 (Arne Juul; PR#3629)
Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Apr 14 09:09:15 1997 UTC (27 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +5 -3
lines
More enhancements/bugfixes (when will it end?)
* 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
* use strncasecmp in URL parsing. fix from <Todd.Miller@courtesan.com>
Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat Apr 5 03:27:32 1997 UTC (27 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -2
lines
* 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. inspired
by Todd Miller <todd.miller@courtesan.com>
Revision 1.21: download - view: text, markup, annotated - select for diffs
Sun Mar 16 14:24:14 1997 UTC (27 years, 10 months ago) by lukem
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +6 -5
lines
Fixes from <Todd.Miller@cs.colorado.edu>, with some cleanup and reworks by me:
* only echo "Passive mode" in verbose mode; scripts that use ftp
may get unwanted output otherwise
* disable progress bar and modification time preservation when
retreiving to a non-regular files. fixes progress bar getting in
way of "get file /dev/tty"
* setup el_init() et al if editing is set, not if fromatty.
TODO: migrate this to a function, and call if editing is turned on later
in the session. also implement edit_cleanup if editing is turned off
* call el_set() after setting SIGWINCH handler. This fixes the problem
when suspending in a non-cbreak shell (e.g, csh) would trash your tty mode.
* reset interactive mode correctly in auto_fetch() mget mode
Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Mar 14 01:39:32 1997 UTC (27 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +6 -6
lines
SMALLFTP->SMALL; remove SMALL from Makefile
Revision 1.19: download - view: text, markup, annotated - select for diffs
Thu Mar 13 06:23:11 1997 UTC (27 years, 10 months ago) by lukem
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +162 -119
lines
Features:
* support remglobbing of auto_fetch arguments
* new flag - '-e'; disable editing
* "page file" == "get file |${PAGER-less}"
Bugfixes/cleanup:
* consistently use a trailing '.' on messages
* code cleanup, including buffer overrun fixes, use puts
and putchar in places, etc (inspired by OpenBSD mods)
* disable progress bar when local-file is a pipe or '-'
* skip \r in http headers
* fix remote ftpd slash bug more elegantly (so it works with ////)
* abort_remote(): check if cout==NULL before using it. should fix [bin/3273]
* fixed up cosmetic problems when complete_remote() generated errors from the
remote server (such as "no files found", "login with user and pass", ...)
done by adding extra argument to remglob(), which is a pointer to an error
buffer to put messages in rather than printing to stdout.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Feb 1 10:44:54 1997 UTC (27 years, 11 months ago) by lukem
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +8 -6
lines
[Yet Another Huge Ftp Commit - hopefully the last for a while,
barring any more little things people want added ...]
New features:
* progressmeter is now asynchronous, so "stalled" transfers can be
detected. "- stalled -" is displayed instead of the ETA in this case.
When the xfer resumes, the time that the xfer was stalled for is
factored out of the ETA. It is debatable whether this is better than
not factoring it out, but I like it this way (I.e, if it stalls for 8
seconds and the ETA was 30 seconds, when it resumes the ETA will still
be 30 seconds).
* verbosity can be disabled on the command line (-V), so that in auto-fetch
mode the only lines displayed will be a description of the file, and
the progress bar (if possible)
* if the screen is resized (and detected via the SIGWINCH signal), the
progress bar will rescale automatically.
Bugs fixed:
* progress bar will not use the last character on the line, as this can
cause problems on some terminals
* screen dimensions (via ioctl(TIOCWINSZ)) should use stdout not stdin
* progressmeter() used some vars before initialising them
* ^D will quit now. [fixes bin/3162]
* use hstrerror() to generate error message for host name lookup failure.
* use getcwd instead of getwd (it should have been OK, but why tempt fate?)
* auto-fetch transfers will always return a positive exit value upon failure
or interruption, relative to the file's position in argv[].
* remote completion of / will work, without putting a leading "///".
This is actually a bug in ftpd(1), where "NLST /" prefixes all names
with "//", but fixing every ftpd(1) is not an option...
Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Jan 19 20:17:37 1997 UTC (28 years ago) by veego
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3
lines
Add missing ;
Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Jan 19 14:19:04 1997 UTC (28 years ago) by lukem
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +38 -351
lines
New features:
* Command line editing via editline(3) library.
* Context sensitive command and file completion, including remote files.
Enhancements to auto-fetch feature:
* Support for http:// URLs using the http protocol, including proxy HTTP
support via $htty_proxy if it's defined.
* The connection is kept open between successive files on the same host.
(obviously, this does not count for http requests.)
* Return value of ftp is 0 on no error, or the offset in argv[] of the file
which failed (i.e., argv[x] failed, ftp returns x).
* If the path in an ftp URL or classic format line has a trailing '/',
cd to the path and enter interactive mode. Fixes [bin/3011], albiet
requiring the user to help ftp in determining the operation.
Other changes:
* '-P port' works for normal ftp, and is the default for all classic style
auto-fetch transfers and for ftp URLs that don't specify the port.
(previously it would just work for the first xfer.)
* Some code moved into separated files along logical divisions.
* Editing and completion can be compiled out with -DSMALLFTP.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Jan 9 20:19:33 1997 UTC (28 years ago) by tls
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -2
lines
RCS ID police
Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri Jan 3 02:55:59 1997 UTC (28 years ago) by lukem
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +6 -2
lines
doproxy(): remove leading "proxy " from input buffer so if another() is called
and line[] is reparsed to build margc/margv, commands don't get confused.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Dec 29 04:05:29 1996 UTC (28 years ago) by lukem
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +31 -38
lines
* preserve modtime if size is 0 [bin/3040, Enami Tsugutomo]
* in autofetch mode, don't retry a file if the connection failed - skip it
and move to the next file. [bin/3051, Matt Green]
* only print error messages from SIZE or MDTM if the user used 'size' or
'modt' (respectively). prevents extraneous warnings during normal transfers
when connected to a site which doesn't support these (behaviour prior to
last commit), but still allows error feedback to specific user requests
for this info (which the last commit broke).
* 'account': only accept one optional argument
* if invoked as pftp, default to passive mode on (from FreeBSD)
* remove leading '0 ' in progress bar - looked ugly
* use warn instead of perror
* use strncpy when src isn't known to have safe length
* remglob(): use mkstemp() to prevent symlink games, and don't override
_PATH_TMP, use it as the prefix to the temp file
Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Dec 25 16:00:38 1996 UTC (28 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +5 -5
lines
- Don't print the '500 command not understood' reply for the SIZE and
MDTM commands which are not supported by all ftp servers, unless we
are in debugging mode.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri Dec 6 02:06:46 1996 UTC (28 years, 1 month ago) by lukem
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +64 -20
lines
functionality mods:
* implement 'progress bar/meter' (inspired by ncftp). use 'progress' to
toggle on. it will display current file size to 5 digits, automatically
determining suffix (up to 16384 P (petabytes) == 2^64).
* 'ls' now uses NLST (unadorned listing), a la older ftp clients. 'dir'
still does LIST (long listing). idea from John Nemeth <jnemeth@cue.bc.ca>
bug fixes:
* return first line of reply in reply_string[] from getreply(), instead
of last line. This fixes [bin/741] (parsing of SYST), and also means
that SIZE and MDTM messages will be parsed correctly if they're longer
than 1 line.
* parse URL-style auto-ftps that have no filename correctly
(e.g, ftp://host, ftp://host/, ftp://host/dir/). pointed out by
Jaromir Dolecek <dolecek@saruman.ics.muni.cz>
* pass the correct size array in 2nd arg of utimes() when setting the
modification time
Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Nov 28 03:12:28 1996 UTC (28 years, 1 month ago) by lukem
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +247 -161
lines
More features, some of which were inspired by changes that
friedman@gnu.ai.mit.edu (Noah Friedman) made to his modified ftp:
- implement "lpwd" - local pwd
- implement "preserve" - toggle preserving of file modification
times on retrieved files
- allow for explicit "on" or "off" arg to toggle commands
- "exit" synonym for "quit", "msend" synonym for "mput"
- in confirmation mode, allow 'a' (yes to rest of current command),
and 'p' (turn off prompt mode, as if 'prompt off' was done,
effective immediately)
- "modtime" returns time formatted as localtime, not GMT
Bug fixes:
- check for extraneous args on commands
- cleanup const usage, line formatting
- create 0 length temporary file in remglob() to prevent symlink games
(from OpenBSD)
- check length of filename of ~/.netrc (from OpenBSD)
Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Nov 25 05:13:18 1996 UTC (28 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +42 -26
lines
cleanups/bugfixes:
- don't echo 'ACCT' parameter when debugging (a la 'PASS')
- Fix checking of directory access for "/foo", the parent
directory is "/", not "" (from FreeBSD)
- remove trailing whitespace on lines
- add any missing NetBSD tags
- cleanups to man page, includinging sorting options description
feature additions:
- variable sized hash marks (from [bin/683], but done in the hash command
as an optional arg)
- more user-friendly transfer time printing (from FreeBSD, with mods)
- '-p' command line option to jump into PASV mode (closes [bin/2857],
but with an option rather than checking argv[0])
- SIGINFO support for printing xfer stats when sending/receiving requests
- '-P port' for changing the port to connect to (from thorpej@netbsd.org)
- '-a': bypass normal login, and try anonymous login (from OpenBSD
via thorpej)
- autofetch files via url (ftp://...) or "classic" (host:/file)
(from OpenBSD via thorpej)
- 'ftp' synonymous with 'open' (from FreeBSD)
Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Sep 8 01:06:05 1995 UTC (29 years, 4 months ago) by tls
Branches: MAIN
CVS tags: netbsd-1-2-base,
netbsd-1-2-RELEASE,
netbsd-1-2-PATCH001,
netbsd-1-2-BETA,
netbsd-1-2,
netbsd-1-1-base,
netbsd-1-1-RELEASE,
netbsd-1-1-PATCH001,
netbsd-1-1
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +7 -2
lines
Sync with 4.4lite2
Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Tue Sep 5 01:20:22 1995 UTC (29 years, 4 months ago) by tls
Branches: WFJ-920714,
CSRG
CVS tags: lite-2
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +253 -171
lines
imported from 44lite2
Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Dec 15 08:58:44 1994 UTC (30 years, 1 month ago) by jtc
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -1
lines
Null terminate case-mapped filenames (PR #640).
Revision 1.6.2.2: download - view: text, markup, annotated - select for diffs
Mon Aug 29 03:09:07 1994 UTC (30 years, 4 months ago) by mycroft
Branches: netbsd-1-0
Diff to: previous 1.6.2.1: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.2.1: +2218 -0
lines
Add RCS ids.
Revision 1.6.2.1
Mon Aug 29 03:09:06 1994 UTC (30 years, 4 months ago) by mycroft
Branches: netbsd-1-0
FILE REMOVED
Changes since revision 1.6: +0 -2218
lines
file cmds.c was added on branch netbsd-1-0 on 1994-08-29 03:09:07 +0000
Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Aug 29 03:09:06 1994 UTC (30 years, 4 months ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-0-RELEASE,
netbsd-1-0-PATCH1,
netbsd-1-0-PATCH06,
netbsd-1-0-PATCH05,
netbsd-1-0-PATCH04,
netbsd-1-0-PATCH03,
netbsd-1-0-PATCH02,
netbsd-1-0-PATCH0
Branch point for: netbsd-1-0
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -1
lines
Add RCS ids.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Aug 25 04:27:41 1994 UTC (30 years, 5 months ago) by cgd
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +11 -0
lines
passive mode support, from David Carrel <carrel@cisco.com>, and cleaned
up for the new ftp sources by me.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Aug 25 03:47:52 1994 UTC (30 years, 5 months ago) by cgd
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +241 -171
lines
clean up import, no local changes.
Revision 1.1.2.1: download - view: text, markup, annotated - select for diffs
Thu Aug 25 03:27:59 1994 UTC (30 years, 5 months ago) by cgd
CVS tags: lite-1
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +242 -171
lines
import from 4.4-Lite
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Mar 27 10:05:14 1994 UTC (30 years, 10 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-0-base
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2
lines
off_t foo
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Aug 1 18:15:31 1993 UTC (31 years, 5 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -1
lines
Add RCS identifiers.
Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 10 months ago) by cgd
Branches: WFJ-920714,
CSRG
CVS tags: patchkit-0-2-2,
netbsd-alpha-1,
netbsd-0-9-base,
netbsd-0-9-RELEASE,
netbsd-0-9-BETA,
netbsd-0-9-ALPHA2,
netbsd-0-9-ALPHA,
netbsd-0-9,
netbsd-0-8,
WFJ-386bsd-01
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0
lines
initial import of 386bsd-0.1 sources
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 10 months ago) by cgd
Branches: MAIN
Initial revision
CVSweb <webmaster@jp.NetBSD.org>