Age | Commit message (Collapse) | Author |
|
No binary change.
|
|
needed not to make a status of 200 (OK) fall through to the redirect
handling.
This was not noticed since the later code would ignore the isredirect
flag unless it also received a "Location: " header.
ok martynas@
|
|
file transfers in all cases
- do it a bit earlier and use HTTP/1.0 if we won't send the range header
- change resume -> restart_point where it is intended
ok halex@, millert@
|
|
interrupt will do the standard abort procedure per rfc959. second
interrupt will force the abort, and close the connection.
done after email from halex@ couple of months ago. liked by many
"I like this a lot" marco@. ok halex@, millert@, phessler@
|
|
|
|
"looks sensible" deraadt@, "fine by me" martynas@
also removed an indeed misplaced/outdated comment per martynas@ request
|
|
actually know that that login is not provided in url; and we should
guess it. fixes a bug reported by halex@ where it tried to login
as 'ftp' after unsuccessful logins; ok theo, halex@, krw@
|
|
- don't spam ftp server with four anonftp logins; if ftp_login has
already failed in setpeer we give up. also makes install script
nicer; req'd by theo
- fix autologin = no case which never really worked in fetch since
it did not check for autologin before logging in...
part 1: ok theo, krw@
part 2: "looks right" millert@, ok sthen@
|
|
|
|
small stuff. make it a fetcher. shrinks quite a bit
agreed by millert@, krw@
ok theo, sthen@
|
|
install media if, e.g. ipv6 is not present
discussed with theo, sthen@, millert@, todd@
|
|
some space
discussed with theo, todd@, millert@
tested and looked over by sthen@
|
|
|
|
|
|
-T and just show titles by default for non-verbose transfers;
discussed with, ok theo, sthen@
|
|
the text segment slightly (though due to padding it does not change the size
of the binary). ok martynas@
|
|
server closes connection during any get/put transfer. it dereferences
cout, which will be NULL, oops
originally reported on misc@. pirofti@ can't reproduce it again
since the server has been fixed
tested by simulating the very same failure
sthen@ and pirofti@ agree that my analysis is correct
ok sthen@
|
|
show which filename is being used. ok krw, mdoc repair from jmc
|
|
so that recursive transfers don't cause a loop. problem reported
and tested by Jesus Sanchez. string compare inlining and looks
good to millert@
|
|
dante instead. "makes sense" sthen@, ajacoutot@, "no objections"
millert@; "i agree" jakob@. tested by Simon Kuhnle and myself
|
|
with strtonum
|
|
|
|
- resume ftp transfers [-C, reget, mget], if local file does not
exist
ok theo
|
|
from frantisek holop, ok millert
|
|
adapted from a patch by nikns, with tweaks by millert.
took forever to test for real...
okay miod@, henning@, millert@
|
|
|
|
as a result it can do nice things getit() does such as:
- -n: use 'newer' for transfers (fetches files that are newer on
the server, than locally), this can be used for e.g. mirroring (mget
-cnr 4.* would fetch missing files, continue interrupted transfers,
and replace newer files of 4.X dirs)
- -d: spedify depth of the recurrence. e.g. 'mget -rd 2 patches'
in pub/openbsd would fetch only archive files, not going further
into dirs
- use static restartit, max_depth instead of doing the magic
tested/requested&ok merdely@; ok pyr@, millert@
man page tweaks&ok jmc@
|
|
commands which toggle settings can take an explicit on or off argument
to force the setting appropiately, show these arguments in usage;
synchronize synopsis and usage of commands; spacing; KNF;
other minor documentation tweaks.
written with help by jmc@
ok jmc@ (documentation), martynas@ (type usage and default file transfer type)
|
|
|
|
'mget -cr 4.*' would recursively fetch (-r), and resume the previous
transfers (-c) of 4.X release directories
uses local matching (fnmatch), but only for recursive transfers.
current behavior is not changed in any way.
- while here, ifndef SMALL debugging stuff, this saves some space,
for floppies
- some debugging code was enabled for non-debugging mode, checks
assume debug is set to zero, but it's not initially set
- all "Confirm with" prompts are forced, remove redundant argument
- fix usage: -C and -c are not available for SMALL
discussed a year ago w/ pyr@
looks good to millert@
previous version looked good to pyr@
man page tweaks & ok jmc@
|
|
Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.
OK deraadt@
|
|
able to continue multiple transfers with -C; ok millert@
while here fix some comments (!SMALL vs. SMALL stuff), and add
missing
|
|
- use argv[0] for "Confirm with", as other confirm()s do
- fix confirm cases, pass force=1 for mdelete and mabort too, fixes
a bug when you end up deleting all files when you ^C, instead of
getting a confirmation
- add reput command, that will allow to continue transfer uploads
- add -c for mget and mput, that will allow to continue multiple
transfers
- fix a bug when you use restart command together with put. the
progressmeter would start from zero, and eta would show fictional
time. this actually allows reput/put -c to have correct progressmeter
too
- document everything
discussed with, suggestions, reminded to ifdef SMALL the code so
we're able to fit in floppies, and ok millert@, and jmc@
|
|
- add '?', which will help
- make use of mflag, instead of special-case interactive
- change mflag++ to mflag = 1, because theoretically it can go out
of range
"i like it" millert@. man page help and ok jmc@
|
|
confirm() to have a 'force' argument, so that ointer/oconf dance
is not needed, and to prevent further bugs like this; ok millert@
|
|
to do; theo agrees, millert oks
|
|
ok millert@
|
|
m*() cases; ok millert@
|
|
From Alexander Hall <alexander@beard.se>
ok henning@, ``I suppose so'' deraadt@
|
|
probably doesn't compile, since the types for some variables have
changed from long to char *).
OK millert@
|
|
okay okan.
|
|
okay beck@, deraadt@, krw@
|
|
|
|
0 seconds.
|
|
after some discussion with martynas
- tweak the description of -C a little more, for readability
|
|
|
|
ok millert@, pyr@
|
|
|
|
ok millert@
|
|
ok pyr@, ray@, millert@, moritz@, chl@
|