Date: Mon, 17 Jun 1996 00:55:33 -0700 (PDT) From: asami@cs.berkeley.edu (Satoshi Asami) To: committers@freebsd.org Cc: ports@freebsd.org, jmz@freebsd.org Subject: review: ftpget final source Message-ID: <199606170755.AAA04411@silvia.HIP.Berkeley.EDU>
next in thread | raw e-mail | index | archive | help
Here is the final source of /usr/bin/ftpget. Please review, I'd like to put this in -current (and ask David to pull it over to -stable) in the next couple of days. Notes: (1) Yes, I know the manpage is quite sparse. ;) (2) I changed the indentation from the original 4 spaces to 8 spaces. I'm still not sure if it conforms to the standard, can someone with more experience please check it? (3) The program can fetch using either ftp or http, so the name "ftpget" may be misleading. Anyone with a better idea? (4) Jordan asked if we can put the ftp function in a library others can use. If someone can convert it that way, that will be great. Satoshi ======= begin 644 ftpget.tar.gz M'XL(`%4-Q3$"`^P\^U?;1K/Y53[WCUC<#Y#`&-D\TMJ!-`E.PFE>%TB_WA*. MK[!DK,26A"1#2,O_?F=F']J592!)T][SG;@EEE:SL[.SL_/:D8=Y<A;DZ_>^ MY8=MNO>WMM@]UFIO;VS`-V.M[4WZ%A^7L>W6=JOM;F^Y&_#4W=K>N,>V[OT- MGVF6>REC][S,FX0WP)VEGG_O/^\SY.O_TOL0#,-Q\$W&:+GN]N;F#>M_ORW7 M?W.K!;+0:K>W8/W=[^O_S3]O#EX_8SN,BT'M\.#)(=Q-O#!J#K"Q.:C5FF$T M&$_]@#TXS?QFDL9GS<F'W=J][Y__G/U/2_VMQKAY_[<WMMM;2O]OWD?]W]K^ MOO__GL_Z2HVML+6_\(/XZD?/>^QQKW>P]N]'!SWV8O])[]5AK\[L@^`BS,(X M8IMMIX.0#Y+1AY_'\1DH'/]#%.3P[RZ[3.,\8/DHS!@:I29CCS(VCJ,SYF7L M*IZR-,A!17&(*,[#08#-B&_@1<R/V>7(RX.+("7H2R_*V668CWB'+)\.ATVV M/V27`9L$0<ZR>!(PW[MJ,"_RJ0L`1A\07]&#P<5EG`*6,&\0$(YU.KT"',QC MIP&,!C0!:=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