Age | Commit message (Collapse) | Author |
|
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@
|
|
with their respective defines.
ok millert@
|
|
|
|
turned off. This is consistent with historic UNIX behavior.
|
|
From Nicholas Marriott. Reminded by ray@.
ok ray@ jaredy@
|
|
connection. The FTP protocol provides us with a NOOP operation that
is perfectly suitable for that, and so far servers are happy with it.
Sending the command slowly is an idea I borrowed from spamd.
No change for people not using the option, so it can't break normal ftp.
okay beck@, jmc@
|
|
- tidy up the description of -c and http_cookies
- add -c to usage()
|
|
and sending of appropriate cookies. No retrieval of new cookies is done.
Careful review and lots of input by millert and ray.
ok millert@, ray@
|
|
there is no .netrc file on the install media and keeping the parser
shaves a good deal of bytes in the binary.
ok millert@, "go on" deraadt@, "makes sense" steven@
|
|
|
|
based on code from Florent Thoumie, ok millert@
|
|
|
|
and fix handling of empty macdefs, which could result in the mac_end
ptr beeing smaller than mac_start, resulting in crashes later on.
From Nicholas Marriott.
ok millert@
|
|
and let snprintf(3) decide if the path fitted into the buffer.
Inspired by a diff from Nicholas Marriott.
OK millert@ ray@
|
|
From Nicholas Marriott.
ok millert@ deraadt@
|
|
older clients, dont' spew out "500 unimplimented" when a sever that
doesn't do EPSV doesn't like it, just notice, and fall back to PASV, then
complain if that fails.
ok deraadt@
|
|
From Pierre Riteau <pierre dot riteau at free dot fr>.
OK jaredy@ and moritz@.
|
|
OK otto@.
|
|
``OK!'' deraadt@.
|