4
0

ChangeLog 202 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477
  1. 2004-08-30 Sergey Poznyakoff <[email protected]>
  2. * src/tar.c: Fix copy-n-paste errors in the license
  3. 2004-08-19 Sergey Poznyakoff <[email protected]>
  4. * scripts/backup.in: Renamed LIBPATH to LIBDIR.
  5. Use ROOT_FS with -C option. Do not send mail
  6. if ADMINISTRATOR is set to NONE.
  7. * scripts/backup.sh.in (test_root): Append / to
  8. ROOT_FS if it does not already end in it.
  9. * scripts/restore.in: Renamed LIBPATH to LIBDIR.
  10. New option -a (--all). Do not start restore unless
  11. -a or patterns are given.
  12. (restore_fs,restore_files): Fixed use of --listed option.
  13. * doc/tar.texi: Updated
  14. * NEWS: Updated
  15. 2004-08-17 Sergey Poznyakoff <[email protected]>
  16. * src/tar.c (find_argp_option): Fixed typo
  17. 2004-08-12 Paul Eggert <[email protected]>
  18. Merge argp, getopt, xalloc changes from gnulib.
  19. * bootstrap (gnulib_modules): Add xalloc-die.
  20. Remove code to test for patches; we don't have patches now.
  21. Set LC_ALL=C so that file names sort consistently.
  22. Prefer the gnulib copies of gettext.m4, glibc21.m4,
  23. lib-ld.m4, lib-prefix.m4, po.m4 too.
  24. * patches/getopt.diff: Remove; gnulib now works unpatched.
  25. * configure.ac (_getopt_long_only_r): Remove check.
  26. gl_ARGP now does this for us.
  27. * lib/.cvsignore: Add fnmatch.h, getopt_.h, sysexit.h,
  28. xalloc-die.c.
  29. * src/extract.c: Adjust to changes to gnulib xalloc module.
  30. (extr_init): Remove assignment to xalloc_fail_func; no longer needed.
  31. (xalloc_die): New function.
  32. 2004-08-10 Sergey Poznyakoff <[email protected]>
  33. * NEWS: Updated
  34. * src/buffer.c (flush_write): Limit filenames
  35. of the members that straddle multivolume archive
  36. boundary to 100 characters.
  37. (flush_read): Use strncmp when comparing multivolume member
  38. names.
  39. * tests/multiv03.sh: New file
  40. * tests/Makefile.am: Added multiv03.sh
  41. 2004-08-09 Sergey Poznyakoff <[email protected]>
  42. * src/list.c (read_and): Call decode_header before
  43. calling skip_member()
  44. (skip_member): Use is_sparse field to determine if the
  45. member is a sparse file.
  46. * tests/Makefile.am: Added extrac05.sh
  47. * tests/extrac05.sh: New file
  48. * tests/append.sh: Rearranged leading comments. Added explicit
  49. references to report messages wherever available.
  50. * tests/delete01.sh: Likewise
  51. * tests/delete02.sh: Likewise
  52. * tests/delete03.sh: Likewise
  53. * tests/delete04.sh: Likewise
  54. * tests/extrac01.sh: Likewise
  55. * tests/extrac02.sh: Likewise
  56. * tests/extrac03.sh: Likewise
  57. * tests/extrac04.sh: Likewise
  58. * tests/gzip.sh: Likewise
  59. * tests/ignfail.sh: Likewise
  60. * tests/incremen.sh: Likewise
  61. * tests/link01.sh: Likewise
  62. * tests/listed01.sh: Likewise
  63. * tests/longv7.sh: Likewise
  64. * tests/multiv01.sh: Likewise
  65. * tests/multiv02.sh: Likewise
  66. * tests/old.sh: Likewise
  67. * tests/options.sh: Likewise
  68. * tests/recurse.sh: Likewise
  69. * tests/same-order01.sh: Likewise
  70. * tests/same-order02.sh: Likewise
  71. * tests/sparse01.sh: Likewise
  72. * tests/version.sh: Likewise
  73. * tests/volume.sh: Likewise
  74. 2004-08-08 Sergey Poznyakoff <[email protected]>
  75. * bootstrap: Extended --update-po option to take an
  76. optional argument specifying the po file to update.
  77. * src/create.c: Improved compatibility with 1.13.25
  78. * tests/link01.sh: New file.
  79. * tests/Makefile.am: Added link01.sh
  80. 2004-08-06 Paul Eggert <[email protected]>
  81. Merge from gnulib.
  82. * patches/argp.diff: Remove; no longer needed.
  83. * lib/.cvsignore: Add stat-macros.h.
  84. Remove addext.c, malloc.c, realloc.c.
  85. * src/extract.c: Include <getcwd.h>.
  86. (extract_archive): Rewrite with new macro IS_ABSOLUTE_FILE_NAME.
  87. * src/extract.c (make_directories):
  88. FILESYSTEM_PREFIX_LEN -> FILE_SYSTEM_PREFIX_LEN.
  89. * src/misc.c (must_be_dot_or_slash): Likewise.
  90. * src/names.c (excluded_name, safer_name_suffix, stripped_prefix_len):
  91. Likewise.
  92. * src/tar.c (parse_opt): Likewise.
  93. * src/incremen.c (purge_directory): Fix format buffer typos in warning
  94. strings.
  95. * src/tar.c (options): Add missing initializers to pacify gcc.
  96. (decode_options): Remove unused var.
  97. 2004-08-02 Paul Eggert <[email protected]>
  98. * bootstrap (gnulib_modules): Add getpagesize.
  99. * configure.ac (valloc): Remove check; valloc no longer used.
  100. * lib/.cvsignore: Add getpagesize.h.
  101. * m4/.cvsignore: Add getpagesize.m4.
  102. * src/buffer.c (record_buffer): New var.
  103. (open_archive): Don't use valloc; on older or buggy hosts, you can't
  104. free the result. Use page_aligned_alloc instead.
  105. * src/compare.c (diff_init): Likewise.
  106. * src/buffer.c (open_archive): Record the pointer to be freed
  107. into record_buffer.
  108. (close_archive): Free record_buffer.
  109. * src/common.h (page_aligned_alloc): New decl.
  110. * src/misc.c (quote_n, quote): Remove these redundant functions.
  111. (ptr_align): New function, from coreutils/src/system.h.
  112. (page_aligned_alloc): New function.
  113. * src/system.h (valloc): Remove.
  114. 2004-07-09 Paul Eggert <[email protected]>
  115. * src/extract.c (extract_archive): Do not report an error
  116. when hard-linking X to X when X exists. Problem reported by
  117. Toby Peterson.
  118. * lib/.cvsignore: Add fchown-stub.c.
  119. 2004-06-29 Sergey Poznyakoff <[email protected]>
  120. * NEWS: Updated
  121. * src/common.h (root_device): New global.
  122. (gnu_restore): Renamed to purge_directory().
  123. * src/extract.c (extr_init): Save the device number
  124. of the root device.
  125. (extract_archive): Renamed gnu_restore() to purge_directory().
  126. * src/incremen.c (gnu_restore): Renamed to purge_directory().
  127. Do not attempt to purge the directory if it is on a different
  128. device and one_file_system_option is set.
  129. 2004-06-25 Sergey Poznyakoff <[email protected]>
  130. * doc/tar.texi: The actual default for exclude patterns
  131. is --no-anchored. Fixed.
  132. * src/tar.c (options): Likewise.
  133. Thanks "Felix Natter" <[email protected]> for noticing.
  134. 2004-06-22 Sergey Poznyakoff <[email protected]>
  135. * doc/tar.texi: Fixed several inconsistencies.
  136. * src/tar.c: Fixed docstring for --checkpoint option.
  137. 2004-05-19 Sergey Poznyakoff <[email protected]>
  138. * src/buffer.c (seek_archive): New function
  139. * src/common.h (seek_archive): New function
  140. (seekable_archive): New global.
  141. * src/list.c (skip_file): Use seek_archive() if
  142. possible.
  143. * src/tar.c (struct fmttab): Accept 'pax' as alias
  144. for 'posix'
  145. (options): New option -n (--seek).
  146. * src/update.c: Determine type of the archive before
  147. appending to it.
  148. * TODO: Updated.
  149. 2004-05-19 Sergey Poznyakoff <[email protected]>
  150. * bootstrap: New option --update-po
  151. * src/tar.c: New option -H (short alias to --format)
  152. * doc/tar.texi: Document -H option
  153. * src/names.c (safer_name_suffix): Fixed bug introduced
  154. 2004-05-11.
  155. 2004-05-16 Sergey Poznyakoff <[email protected]>
  156. * bootstrap: Apply patches from patch subdirectory
  157. * patches: New dir
  158. * patches/argp.diff: New file
  159. * patches/getopt.diff: New file
  160. * configure.ac: Check for _getopt_long_only_r and
  161. force using included version of getopt if the function
  162. is not available.
  163. * src/tar.c: Use argp for command line parsing.
  164. * src/system.h: Minor formatting fix
  165. * m4/.cvsignore: Updated
  166. * lib/.cvsignore: Updated
  167. * doc/tar.texi: Minor fix.
  168. * src/extract.c: Fix improper use of 'path' term
  169. * src/incremen.c: Likewise
  170. * src/list.c: Likewise
  171. * src/misc.c: Likewise
  172. * src/names.c: Likewise
  173. * src/rmt.h: Likewise
  174. * src/rtapelib.c: Likewise
  175. * src/update.c: Likewise
  176. * src/xheader.c: Likewise
  177. * tests/star/README: Minor fix
  178. 2004-05-13 Sergey Poznyakoff <[email protected]>
  179. * configure.ac: Raised version number to 1.14.1
  180. * src/tar.c: Renamed --strip-path to --strip-components
  181. Changed improper use of _() to ngettext().
  182. * src/extract.c: Renamed strip_path_option to strip_components_option
  183. * src/common.h: Likewise.
  184. * NEWS: Updated.
  185. * doc/tar.texi: Updated
  186. 2004-05-11 Sergey Poznyakoff <[email protected]>
  187. * src/system.c (sys_child_open_for_uncompress): Do not
  188. set read_full_records_option: the compressed archive is
  189. likely not to contain integer number of records. Should
  190. the user wish to use reblocking, he may always give tar
  191. -B option. This is a minor improvement over the change
  192. dated 2004-03-22.
  193. * src/buffer.c (open_archive): Removed assignment to
  194. read_full_records_option.
  195. * src/names.c (safer_name_suffix): (safer_name_suffix): Use "%s"
  196. as the format argument, rather than a possibly-translated variable
  197. string. Patch provided by Jim Meyering <[email protected]>
  198. * src/tar.c (decode_options): Fixed typo in the comment.
  199. * tests/star/README: Minor correction
  200. 2004-05-11 Sergey Poznyakoff <[email protected]>
  201. * directory: New file. GNU directory entry for tar.
  202. * doc/Makefile.am: Rewritten. Added rules for generating
  203. documentation for the project's website.
  204. * doc/.cvsignore: Updated
  205. * doc/index.html.in: New file.
  206. 2004-05-11 Sergey Poznyakoff <[email protected]>
  207. * configure.ac: Raised version number to 1.14
  208. * NEWS: Updated.
  209. * tests/after: Added copyleft statement
  210. * tests/before: Added copyleft statemente
  211. * tests/preset.in: Added copyleft statement
  212. Tar 1.14 is released. Sources up to this point are tagged
  213. release_1_14
  214. 2004-05-10 Sergey Poznyakoff <[email protected]>
  215. * configure.ac: Fixed prerequisite headers for sys/buf.h
  216. (needed on FreeBSD)
  217. * src/system.h: Likewise.
  218. * tests/after (compare): Fixed argument quoting under eval
  219. * tests/before: Quote TAR_ARCHIVE_FORMATS
  220. 2004-05-10 Sergey Poznyakoff <[email protected]>
  221. * NEWS: Updated
  222. * README: Updated
  223. * PORTS: Updated
  224. * configure.ac: Call gl_AC_TYPE_INTMAX_T. Document
  225. DEFAULT_.* variables. Use DEFAULT_RMT_COMMAND to set
  226. the pathname of the rmt utility.
  227. New option --enable-backup-scripts.
  228. * doc/tar.texi: Updated
  229. * scripts/Makefile.am: Install the scripts only if requested
  230. by the configure.
  231. * scripts/backup.in: Fixed --version output.
  232. Fixed initialization of the listing files and printing
  233. the time of the last previous level dump.
  234. * scripts/restore.in: Fixed --version output.
  235. * src/Makefile.am (localedir.h rule): Generate correct
  236. DEFAULT_RMT_COMMAND variable.
  237. * src/common.h (rmt_command_option): New variable.
  238. * src/list.c (read_and): Print block number before
  239. issuing 'Skipping to next header' diagnostics, if
  240. requested by block_number_option.
  241. * src/rtapelib.c: Use rmt_command_option instead of
  242. hardcoded "/etc/rmt".
  243. * src/tar.c: New option --rmt-command.
  244. (decode_options): Handle --rmt-command. Initialize
  245. rmt_command_option to DEFAULT_RMT_COMMAND.
  246. 2004-05-09 Sergey Poznyakoff <[email protected]>
  247. * doc/tar.texi: Further update.
  248. 2004-05-08 Sergey Poznyakoff <[email protected]>
  249. * configure.ac: Minor fix
  250. * scripts/Makefile.am: Updated
  251. * scripts/backup-specs: Updated
  252. * scripts/backup.in: Minor fixes
  253. * scripts/backup.sh: Removed
  254. * scripts/backup.sh.in: New file. Source for backup.sh
  255. * scripts/restore.in: New file
  256. * scripts/.cvsignore: Updated
  257. * scripts/WARNING: Removed
  258. * doc/tar.texi: Updated
  259. * NEWS: Updated
  260. 2004-05-07 Sergey Poznyakoff <[email protected]>
  261. * src/names.c (name_gather): Bugfix: Honor single -C with
  262. --same-order.
  263. * tests/same-order01.sh: New file
  264. * tests/same-order02.sh: New file
  265. * tests/Makefile.am: Updated
  266. * tests/append.sh: Added copyleft header
  267. * tests/delete01.sh: Likewise
  268. * tests/delete02.sh: Likewise
  269. * tests/delete04.sh: Likewise
  270. * tests/extrac01.sh: Likewise
  271. * tests/extrac02.sh: Likewise
  272. * tests/extrac03.sh: Likewise
  273. * tests/extrac04.sh: Likewise
  274. * tests/gzip.sh: Likewise
  275. * tests/ignfail.sh: Likewise
  276. * tests/incremen.sh: Likewise
  277. * tests/multiv01.sh: Likewise
  278. * tests/old.sh: Likewise
  279. * tests/options.sh: Likewise
  280. * tests/recurse.sh: Likewise
  281. * tests/version.sh: Likewise
  282. * tests/volume.sh: Likewise
  283. * tests/star/gtarfail.sh: Likewise
  284. * tests/star/gtarfail2.sh: Likewise
  285. * tests/star/multi-fail.sh: Likewise
  286. * tests/star/pax-big-10g.sh: Likewise
  287. * tests/star/qucktest.sh: Likewise
  288. * tests/star/ustar-big-2g.sh: Likewise
  289. * tests/star/ustar-big-8g.sh: Likewise
  290. * doc/.cvsignore: Updated
  291. 2004-05-06 Sergey Poznyakoff <[email protected]>
  292. * configure.ac: Check whether date accepts +format argument
  293. (for backup scripts).
  294. * scripts/level-0: Removed
  295. * scripts/level-1: Removed
  296. * scripts/weekly.new: Removed
  297. * scripts/dump-remind: Removed
  298. * scripts/backup.in: New file
  299. * scripts/backup.sh: New file
  300. * scripts/dump-remind.in: New file
  301. * scripts/backup-specs: Updated
  302. * scripts/Makefile.am: Updated for new directory contents.
  303. * scripts/.cvsignore: Updated
  304. 2004-05-05 Sergey Poznyakoff <[email protected]>
  305. * TODO: Updated
  306. * doc/tar.texi: Updated
  307. * src/tar.c: --utc implies -vv
  308. 2004-04-28 Sergey Poznyakoff <[email protected]>
  309. * src/utf8.c: Make sure ICONV_CONST is defined. AM_ICONV
  310. does not define it if it fails to find iconv.h.
  311. 2004-04-26 Sergey Poznyakoff <[email protected]>
  312. * bootstrap: Use gnulib-tool to generate lib/Makefile.am
  313. and parts of configure.ac
  314. * configure.ac: Invoke tar_GNULIB to configure gnulib stuff.
  315. * lib/Makefile.am: Removed
  316. * lib/Makefile.tmpl: New file.
  317. * lib/.cvsignore: Updated
  318. * m4/.cvsignore: Updated
  319. * src/xheader.c: Include stpcpy.h
  320. * src/create.c: Produce an error, not warning, if the
  321. filename is too long.
  322. * tests/longv7.sh: Synchronized with the recent changes.
  323. 2004-04-20 Sergey Poznyakoff <[email protected]>
  324. * configure.ac: Fixed test for iconv_t
  325. * src/rmt.h: Bugfix by Jürgen Weigert
  326. * THANKS: Add Jürgen Weigert
  327. * tests/star/README: Fixed typo
  328. 2004-04-04 Paul Eggert <[email protected]>
  329. Merge getdate documentation changes from coreutils.
  330. * doc/getdate.texi: Update from coreutils CVS.
  331. * doc/tar.texi: Fix getdate menu to match getdate.texi's.
  332. Merge recent gnulib changes, and remove some lint.
  333. Improve support for nanosecond-resolution time stamps.
  334. * bootstrap: Add gettime, timespec modules.
  335. * configure.ac (gl_GETTIME, gl_TIMESPEC): Add.
  336. * lib/.cvsignore (getopt_int.h, gettime.c, gettimeofday.c,
  337. timespec.h): Add.
  338. * lib/Makefile.am (libtar_a_SOURCES): Add gettime.c, timespec.h.
  339. * m4/.cvsignore: Add clock_time.m4, gettime.m4, gettimeofday.m4,
  340. st_mtim.m4, timespec.m4. Remove malloc.m4, realloc.m4.
  341. * src/common.h (newer_mtime_option): Now a struct timespec, not
  342. time_t. All uses changed.
  343. (NEWER_OPTION_INITIALIZED, OLDER_STAT_MTIME): New macros.
  344. * src/create.c (dump_file0): Use OLDER_STAT_TIME to compare times.
  345. * src/incremen.c (scan_path): Likewise.
  346. * src/list.c (read_and): Likewise.
  347. * src/list.c (read_and): Use NEWER_OPTION_INITIALIZED to decide
  348. whether newer_mtime_option is initialized.
  349. * src/tar.c (decode_options): Likewise.
  350. * src/tar.c (decode_options): Adjust to new signature for get_date.
  351. * src/buffer.c (short_read, flush_read): Use size_t, not ssize_t, for
  352. result of safe_read, full_write, and similar functions.
  353. Detect safe_read error by comparing to SAFE_READ_ERROR;
  354. detect full_write error by comparing to 0.
  355. All uses changed.
  356. * src/common.h (write_error_details, sys_write_archive_buffer):
  357. Likewise.
  358. * src/misc.c (write_error_details): Likewise.
  359. * src/rmt.c (main): Likewise.
  360. * src/rmt.h (rmt_read__, rmt_write__): Likewise.
  361. * src/rtapelib.c (rmt_read__, rmt_write__, rmt_ioctl__): Likewise.
  362. * src/sparse.c (sparse_scan_file, sparse_dump_region,
  363. check_sparse_region, check_data_region): Likewise.
  364. * src/system.c (sys_write_archive_buffer, sys_drain_input_pipe,
  365. sys_child_open_for_compress, sys_child_open_for_uncompress): Likewise.
  366. * src/update.c (append_file): Likewise.
  367. * src/buffer.c (clear_read_error_count): Use explicit (void)
  368. to indicate a function with no arguments.
  369. * src/create.c (check_links): Likewise.
  370. * src/system.c (sys_get_archive_stat, sys_save_archive_dev_ino,
  371. sys_detect_dev_null_output, sys_drain_input_pipe, sys_spawn_shell,
  372. sys_reset_uid_gid, sys_get_archive_stat, sys_save_archive_dev_ino,
  373. sys_detect_dev_null_output, sys_drain_input_pipe, sys_spawn_shell):
  374. Likewise.
  375. * src/utf8.c (get_input_charset): Likewise.
  376. * src/xheader.c (xheader_ghdr_name, xheader_write_global,
  377. xheader_decode_global, extended_header_init): Likewise.
  378. * tests/mksparse.c (usage): Likewise.
  379. * src/buffer.c (new_volume): Rename local variables to avoid
  380. shadowing warnings.
  381. * src/common.h (file_dumpable_p, sys_stat_nanoseconds,
  382. sparse_file_p, sparse_member_p, sparse_fixup_header,
  383. sparse_dump_file, sparce_extract_file, sparse_skip_file,
  384. sparse_diff_file): Likewise.
  385. * src/compare.c (diff_archive): Likewise.
  386. * src/create.c (file_dumpable_p, dump_regular_file, dump_dir0,
  387. dump_dir, dump_hard_link, file_count_links, dump_file0, dump_file):
  388. Likewise.
  389. * src/extract.c (repair_delayed_set_stat): Likewise.
  390. * src/misc.c (maybe_backup_file, add_hierarchy_to_namelist):
  391. Likewise.
  392. * src/sparse.c (struct tar_sparse_optab, tar_sparse_dump_region,
  393. tar_sparse_extract_region, sparse_dump_region, sparse_extract_region,
  394. sparse_dump_file, sparse_file_p, sparse_member_p,
  395. sparse_fixup_header, sparse_extract_file, sparse_skip_file,
  396. check_data_region, sparse_diff_file): Likewise.
  397. * src/system.c (sys_stat_nanoseconds): Likewise.
  398. * src/xheader.c (xheader_format_name): Likewise.
  399. * src/common.h (enum old_files): Remove comma before }; not portable.
  400. * src/common.h (read_fatal_details): Add __attribute__ ((noreturn)).
  401. * src/rmt.c (usage): Likewise.
  402. * src/xheader.c (xheader_set_single_keyword): Likewise.
  403. * tests/genfile.c (usage): Likewise.
  404. * tests/mksparse.c (die, usage): Likewise. Also add printf attribute
  405. to die.
  406. * src/common.h (gname_to_gid, uname_to_uid): Add const to avoid
  407. some gcc warnings.
  408. * src/names.c (uname_to_uid, gname_to_gid): Likewise.
  409. * src/utf8.c (struct langtab.lang, struct langtab.terr, struct
  410. langtab.charset, charset_lookup): Likewise.
  411. * src/common.h (name_init): Remove unused args. All callers changed.
  412. * src/names.c (name_init): Likewise.
  413. * src/common.h (usage, xheader_write, xheader_write_global,
  414. sys_reset_uid_gid): New decls.
  415. * src/compare.c (report_difference, process_noop): Add
  416. __attribute__ ((unused)) for unused attributes.
  417. * src/sparse.c (oldgnu_sparse_member_p, star_sparse_member_p):
  418. Likewise.
  419. * src/xheader.c (dummy_coder, dummy_decoder, atime_coder,
  420. gid_coder, gname_coder, linkpath_coder, ctime_coder, mtime_coder,
  421. path_coder, size_coder, uid_coder, uname_coder,
  422. sparse_numblocks_coder): Likewise.
  423. * src/create.c (dump_regular_finish, dump_dir0, dump_dir,
  424. dump_file0): Now static.
  425. * src/utf8.c (charset_lookup): Likewise.
  426. * src/xheader.c (xheader_protected_pattern_p,
  427. xheader_protected_keyword_p, xheader_set_single_keyword,
  428. xheader_keyword_deleted_p, xheader_keyword_override_p,
  429. xheader_list_append, xheader_list_destroy, xheader_set_keyword_equal):
  430. Likewise.
  431. * tests/genfile.c (usage): Likewise.
  432. * tests/mksparse.c (die, mkhole, mksparse, usage, xlat_suffix):
  433. Likewise.
  434. * src/create.c (hash_link): Rewrite to avoid cast.
  435. * src/extract.c (file_newer_p): Use parameter, not global var.
  436. * src/misc.c (write_error_details): Likewise.
  437. * src/extract.c (prepare_to_extract): Remove directory arg; not
  438. used. All callers changed.
  439. * src/misc.c (close_fatal): Remove; not used.
  440. * src/system.c (sys_utimes): Likewise.
  441. * src/rmt.c (get_string): Avoid buffer overrun (off by 1 error).
  442. * src/rmt.c (main): Update copyright date to 2004.
  443. * src/tar.c (decode_options): Likewise.
  444. * src/rtapelib.c (get_status_string): Don't lose errno when
  445. skipping the error messages.
  446. (get_status): Report an error if atol returns a negative number.
  447. * src/utf8.c (struct langtab, langtab, charset_lookup,
  448. get_input_charset) [!defined HAVE_LIBCONV]: Omit unused
  449. definitions.
  450. (iconv_open, iconv, iconv_close) [!defined HAVE_LIBCONV]:
  451. Use macros, not definitions, to avoid type clashes with system
  452. headers.
  453. (charset_lookup): Local var is now auto, not static.
  454. (utf8_convert): Use ICONV_CONST instead of const, to avoid
  455. type clashes.
  456. * src/utf8.c (langtab): Initialize all elements of struct, to
  457. avoid gcc warning.
  458. * src/xheader.c (xhdr_tab): Likewise.
  459. * src/xheader.c: Include fnmatch.h, since we use fnmatch.
  460. * tests/mksparse.c (mkhole): Fix typo: bool was assigned to off_t.
  461. 2004-04-04 Sergey Poznyakoff <[email protected]>
  462. * NEWS: Updated
  463. * configure.ac: Raised version number to 1.13.94
  464. * src/system.h: Protect inclusion of <sys/time.h>
  465. by ifdef.
  466. Declare time() if HAVE_DECL_TIME is 0
  467. * tests/.cvsignore: Added mksparse
  468. * tests/sparse01.sh: New file
  469. * tests/multiv02.sh: New file
  470. * tests/Makefile.am: Add sparse01.sh and multiv02.sh
  471. * tests/longv7.sh: Added missing call to 'after'
  472. * src/common.h: Added missing prototypes
  473. * src/compare.c (diff_archive): Use is_sparse member
  474. instead of GNUTYPE_SPARSE.
  475. * src/create.c: Removed unused variables
  476. * src/extract.c (extract_archive): Use sparse_member_p instead
  477. of GNUTYPE_SPARSE.
  478. Removed unused variables
  479. * src/list.c (decode_header): Use sparse_fixup_header to correct
  480. the st_size value.
  481. (print_header): Do not rely on GNUTYPE_SPARSE type.
  482. Use st->stat.st_size to print real file size.
  483. (skip_member): Assign stat_info.file_name to save_name. This fixes
  484. bug reported by Mads Martin Joergensen <[email protected]>
  485. Use sparse_skip_file() to skip sparse members.
  486. * src/rtapelib.c: include "common.h"
  487. * src/sparse.c (struct tar_sparse_optab.sparse_member_p)
  488. (struct tar_sparse_optab.fixup_header): New member
  489. (tar_sparse_member_p): New function.
  490. (tar_sparse_init): Return true if decode_header is not provided
  491. (tar_sparse_fixup_header)
  492. (sparse_member_p,sparse_fixup_header)
  493. (sparse_skip_file)
  494. (oldgnu_sparse_member_p,oldgnu_fixup_header,star_sparse_member_p)
  495. (star_fixup_header, pax_sparse_member_p): New function
  496. (pax_decode_header): Remove
  497. * src/system.h: Include <sys/time.h> and <utime.h> when available
  498. * src/tar.c (usage): Prototype moved to common.h
  499. * src/tar.h (struct tar_stat_info.is_sparse): New member
  500. * src/utf8.c (utf8_convert): Changed prototype
  501. (get_input_charset): Removed unused variable
  502. * src/xheader.c: include <fnmatch.h>
  503. (size_decoder): Assign to both st->archive_file_size and
  504. st->stat.st_size.
  505. (st->stat.st_size): Assign to st->stat.st_size
  506. (sparse_numbytes_decoder): Removed unused variable
  507. * src/.cvsignore: Added .gdbinit
  508. * THANKS: Added Mads Martin Joergensen
  509. 2004-03-26 Sergey Poznyakoff <[email protected]>
  510. * src/create.c (write_long_name): Do not allow more than
  511. NAME_FIELD_SIZE-1 characters in a file name for V7 format
  512. archives.
  513. * tests/longv7.sh: New file.
  514. * tests/Makefile.am: Add longv7.sh
  515. 2004-03-22 Sergey Poznyakoff <[email protected]>
  516. * src/buffer.c (open_archive): Clear read_full_records_option
  517. if reading from a pipe.
  518. (short_read): Display warning about the deduced record size
  519. if version > 1
  520. * tests/star/pax-big-10g.sh: Updated to match the above changes.
  521. * tests/star/ustar-big-2g.sh: Likewise.
  522. * tests/star/ustar-big-8g.sh: Likewise.
  523. * configure.ac: Added gl_FUNC_STRTOULL
  524. * src/create.c (start_header): Check for GNU_FORMAT
  525. if incremental_option is set.
  526. * src/xheader.c (to_decimal): New function.
  527. (xheader_format_name): Use to_decimal() instead of snprintf.
  528. * tests/listed01.sh: Use genfile instead of dd
  529. * tests/multiv01.sh: Likewise.
  530. 2004-03-12 Sergey Poznyakoff <[email protected]>
  531. * src/list.c (read_and): Stop processing the archive after
  532. encountering a single zero record. Many old archives contain
  533. arbitrary garbage after it.
  534. The warning is issued anyway.
  535. 2004-03-02 Sergey Poznyakoff <[email protected]>
  536. * src/rtapelib.c (rmt_lseek__,rmt_ioctl__): Bugfix. The
  537. conversion buffer was not null terminated. Fix provided
  538. by Leland Lucius <[email protected]>
  539. * THANKS: Added Leland Lucius
  540. * src/utf8.c (utf8_convert): Indentation fix.
  541. 2004-02-29 Sergey Poznyakoff <[email protected]>
  542. * src/buffer.c (flush_read): Bugfix: the
  543. condition at line 714 included
  544. || (status > 0 && !read_full_records_option)
  545. which is grossly wrong, since even if new_volume() below succeeds,
  546. the subsequent call to rmtread will overwrite the chunk of data
  547. already read in the buffer and thus spoil everything.
  548. * src/system.c (sys_child_open_for_uncompress): Minor stylistic
  549. fix.
  550. * tests/star/multi-fail.sh: New test.
  551. * tests/Makefile.am: Added multi-fail.sh
  552. * tests/star/README: Updated
  553. 2004-02-29 Sergey Poznyakoff <[email protected]>
  554. * NEWS: Updated
  555. * configure.ac: Removed spurious AC_CHECK_LIB(iconv)
  556. * src/common.h (utc_option): new global
  557. (enum old_files.KEEP_NEWER_FILES): New element
  558. * src/extract.c: Handle --keep-newer-files option
  559. * src/list.c (tartime): Print UTC if --utc was given.
  560. * src/tar.c: New options: --utc and keep-newer-files
  561. * tests/Makefile.am: Added new tests
  562. * tests/after: Rewritten
  563. * tests/before: Rewritten
  564. * tests/preset.in: Rewritten
  565. * tests/delete03.sh: Accomodate for the new testsuite logic
  566. * tests/gzip.sh: Likewise
  567. * tests/incremen.sh: Likewise
  568. * tests/listed01.sh: Likewise
  569. * tests/multiv01.sh: Likewise
  570. * tests/old.sh: Likewise
  571. * tests/options.sh: Likewise
  572. * tests/version.sh: Likewise
  573. * tests/volume.sh: Likewise
  574. * tests/star: New directory
  575. * tests/star/README: New file
  576. * tests/star/gtarfail.sh: New file
  577. * tests/star/gtarfail2.sh: New file
  578. * tests/star/pax-big-10g.sh: New file
  579. * tests/star/qucktest.sh: New file
  580. * tests/star/ustar-big-2g.sh: New file
  581. * tests/star/ustar-big-8g.sh: New file
  582. 2004-02-26 Paul Eggert <[email protected]>
  583. * doc/tar.texi (dircategory Individual utilities): Append period,
  584. as suggested by Karl Berry.
  585. 2004-02-24 Sergey Poznyakoff <[email protected]>
  586. * src/list.c (decode_header): Call xheader_decode before
  587. the assignment to current_stat_info.archive_file_size.
  588. 2004-02-23 Paul Eggert <[email protected]>
  589. * configure.ac: Invoke AM_ICONV, to define ICONV_CONST if needed.
  590. 2004-02-23 Sergey Poznyakoff <[email protected]>
  591. 1.13.93 released.
  592. * NEWS: Updated
  593. * tests/before: Move testing of the prerequisite archive formats
  594. to the separate function 'prereq'. Do not expect any arguments
  595. * tests/delete03.sh: Use prereq() instead of passing arguments
  596. to 'before'.
  597. * tests/incremen.sh: Likewise.
  598. * tests/listed01.sh: Likewise.
  599. * tests/multiv01.sh: Likewise.
  600. 2004-02-22 Sergey Poznyakoff <[email protected]>
  601. Added UTF-8 support. Finished global extended header
  602. support.
  603. * NEWS: Minor fix
  604. * configure.ac: Detect libiconv
  605. * src/utf8.c: New file. Conversions to and from utf-8.
  606. * src/Makefile.am: Added utf8.c
  607. * src/create.c (write_header_name) In pax format, use
  608. "path" keyword if the file name is not ASCII
  609. (start_header): Likewise for uname and gname.
  610. * src/list.c: Decode encountered global headers.
  611. * src/xheader.c: Use keywords from the global
  612. headers.
  613. Correctly handle UTF-8 conversions.
  614. (xheader_list_destroy): New function.
  615. (xheader_set_single_keyword,xheader_set_keyword_equal): Added
  616. missing gettext markers
  617. (decode_record): Rewritten using caller-provided handler and
  618. data closure.
  619. * tests/listed01.sh: Give credit to Andreas Schuldei.
  620. 2004-02-21 Sergey Poznyakoff <[email protected]>
  621. * src/create.c (dump_file0): The conditional at line
  622. 1296 prevented incremental backups on individual files
  623. from working, as reported by Andreas Schuldei
  624. <[email protected]>.
  625. This is due to the condition
  626. (0 < top_level || !incremental_option)
  627. Removing it makes incremental backups work for individual
  628. files as well as for directories. On the other hand, it does
  629. not affect other functionality, as shown by the reasoning below:
  630. To begin with, the two parts of this condition are mutually
  631. superfluous, because
  632. 1) when top_level < 0, incremental_option == 1
  633. so the condition yields false
  634. 2) when top_level >= 0, incremental_option == 0
  635. so the condition yields true.
  636. In other words, it is completely equivalent to
  637. (!incremental_option)
  638. Now, let's consider the effect of its removal. There are two cases:
  639. 1) when incremental_option==1
  640. This means incremental backup in progress. In this case dump_file
  641. is invoked only for directories or for files marked with 'Y' by
  642. get_directory_contents. The latter are those that did not meet the
  643. condition in incremen.c:242, which is exactly the same condition
  644. as this at create.c:1296. So, for these files the check
  645. (!incremental_option) is useless, since the rest of the
  646. conditional will yield false anyway. On the other hand, if
  647. dump_file is invoked on a directory, the conditional will yield
  648. false due to !S_ISDIR assertion, so these will be processed as usual.
  649. Thus, for this case the extra condition (!incremental_option) is
  650. irrelevant, and its removal won't alter the behavior of tar,
  651. *except* that it will enable incremental backups on individual
  652. files, which is the wanted effect.
  653. 2) when incremental_option==0
  654. In this case the condition yields true and its removal does not
  655. affect the functionality.
  656. * THANKS: Updated
  657. * configure.ac: Raised patchlevel to 93
  658. * src/incremen.c: Minor stylistic fixes.
  659. * tests/listed01.sh: New test. Check listed incremental
  660. backups on individual files.
  661. * tests/Makefile.am: Added listed01.sh
  662. 2004-02-20 Sergey Poznyakoff <[email protected]>
  663. * src/common.h (simple_finish_header,start_private_header): New
  664. declarations
  665. (xheader_ghdr_name): Changed declaration
  666. * src/create.c (start_private_header): Removed static qualifier.
  667. (write_extended): Removed superfluous last argument. Use
  668. xheader_write()
  669. (simple_finish_header): New function.
  670. (finish_header): Use simple_finish_header() to break recursive
  671. dependency between this function and write_extended().
  672. * src/tar.c (assert_format): Do not bail out if several
  673. --format arguments are given. This is a common case when
  674. TAR_OPTIONS are used.
  675. (decode_options): New option --show-defaults displays the
  676. compiled-in defaults.
  677. Use POSIX format if no --format option was given and
  678. --pax-option was specified.
  679. Do not allow to use --pax-option unless the archive format is
  680. set to POSIX (or reading subcommand is requested).
  681. * src/update.c (update_archive): Write global extended header if
  682. constructed.
  683. * src/xheader.c (xheader_format_name): Bugfix.
  684. (xheader_xhdr_name): Changed the default extended header name
  685. to '%d/PaxHeaders.%p/%f', as POSIX requires.
  686. (xheader_ghdr_name): Removed unused argument.
  687. (xheader_write,xheader_write_global): New function.
  688. (xheader_decode): Modified to honor overrides whatever
  689. the current archive format is.
  690. * src/delete.c (delete_archive_members): Call xheader_decode
  691. unconditionally.
  692. * src/list.c (decode_header): Likewise.
  693. * src/incremen.c (sort_obstack): Fixed typo in the comment
  694. * doc/tar.texi: Document new default for extended
  695. header names.
  696. * tests/before: Accept an optional list of allowed archive
  697. formats. Exit with the status 77 if the current archive
  698. format does not match any of them.
  699. * tests/delete03.sh: Require gnu, oldgnu or posix format
  700. * tests/incremen.sh: Require gnu or oldgnu format
  701. * tests/multiv01.sh: Likewise
  702. 2004-02-20 Sergey Poznyakoff <[email protected]>
  703. * doc/tar.texi (Option Summary): Documented --pax-option
  704. * src/tar.c: Likewise.
  705. * NEWS: Likewise.
  706. * src/create.c (to_chars): Added a comment.
  707. * src/tar.h: Comment to GNU_FORMAT
  708. 2004-02-18 Sergey Poznyakoff <[email protected]>
  709. * README: Updated
  710. * configure.ac: Added stpcpy
  711. * bootstrap: Likewise
  712. * lib/Makefile.am: Likewise
  713. * src/common.h (xheader_xhdr_name,xheader_ghdr_name): New
  714. functions
  715. * src/create.c (write_extended): Call xheader_xhdr_name
  716. instead of using hardcoded "././@PaxHeader" name.
  717. * src/tar.c: New option --pax-option (equivalent to -o option
  718. of pax).
  719. * src/xheader.c: Implement pax -o option. Fixed misleading
  720. heading comment (introduced 2003-09-02).
  721. * src/incremen.c: Minor fixes
  722. * m4/.cvsignore: Updated
  723. 2004-02-17 Sergey Poznyakoff <[email protected]>
  724. * src/incremen.c: Removed accumulator stuff in favor of obstack.
  725. (get_directory_contents): Split into two functions
  726. * src/update.c: Minor changes
  727. * doc/tar.texi: Fixed typo
  728. 2004-02-15 Paul Eggert <[email protected]>
  729. Fix Debian bug 230872, originally reported by Jeff King in
  730. <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=230872>.
  731. * doc/tar.texi (posix compliance): Remove. The whole section
  732. was a misunderstanding of what POSIXLY_CORRECT is supposed to
  733. mean. The GNU Coding Standards says that POSIXLY_CORRECT
  734. is for disabling extensions that are incompatible with POSIX:
  735. it is not for disabling compatible extensions. All references
  736. to this section removed.
  737. (posix): This format is created only if the posix format is
  738. specified; it is no longer created if gnu format is specified
  739. and POSIXLY_CORRECT is set.
  740. * src/tar.c (decode_options): Ignore POSIXLY_CORRECT.
  741. POSIX does not specify the behavior of tar, so we should
  742. not worry about POSIXLY_CORRECT here.
  743. 2004-01-21 Sergey Poznyakoff <[email protected]>
  744. * Makefile.am: Removed m4
  745. * configure.ac: Require automake-1.8/autoconf-2.59. Removed
  746. m4/Makefile.
  747. * README-alpha: Updated
  748. * bootstrap: Updated TP URL, improved help output. Default
  749. to :ext:anoncvs and set CVS_RSH, unless already set.
  750. * m4/Makefile.am: Removed
  751. 2004-01-21 Sergey Poznyakoff <[email protected]>
  752. * bootstrap: Bugfix by Marco Gerards <[email protected]>:
  753. Use $option instead of $1 so all options will be parsed.
  754. 2004-01-04 Sergey Poznyakoff <[email protected]>
  755. Started rewriting buffer.c ...
  756. * bootstrap: New option --no-po
  757. * src/buffer.c (new_volume,check_label_pattern): Changed return type.
  758. (time_to_start_writing): Changed data type
  759. (file_to_switch_to): Removed. Variable never assigned to.
  760. (open_archive) Moved option compatibility checks to tar.c
  761. Other minor changes.
  762. * src/common.h (maybe_backup_file): Changed return type
  763. * src/misc.c: Likewise.
  764. * src/create.c: Updated invocations of safer_name_suffix
  765. * src/extract.c: Likewise
  766. * src/delete.c: Updated assignment to write_archive_to_stdout
  767. * src/tar.c (decode_options): More option compatibility checks
  768. (moved from buffer.c)
  769. * src/update.c (time_to_start_writing): Changed data type.
  770. * tests/recurse.sh: New test case.
  771. * tests/mksparse.c: New file.
  772. * tests/Makefile.am: Added recurse.sh and mksparse.c
  773. 2004-01-02 Sergey Poznyakoff <[email protected]>
  774. * src/sparse.c (sparse_diff_file): Bugfix. Thanks
  775. Martin Simmons for the patch.
  776. * src/create.c (dump_dir0): Bugfix. Thanks Piotr Czerwinski
  777. <[email protected]> for the patch.
  778. 2003-12-26 Paul Eggert <[email protected]>
  779. Synchronize with Gettext 0.13.1, Automake 1.8, Autoconf 2.59,
  780. and translation website.
  781. * bootstrap: Don't bother skipping codeset.m4, glibc21.m4,
  782. intdiv0.m4, inttypes_h.m4, inttypes.m4, inttypes-pri.m4,
  783. isc-posix.m4, and lcmessage.m4 from gnulib. This list of files is
  784. a bit obsolete anyway, now that gettext 0.13.1 is out. Also, the
  785. files are replaced by autoreconf. Also, there seems to be a bug
  786. in gettext/autoconf/automake if we try to omit these files after
  787. autoreconf has replaced them, even though the gettext manual says
  788. they're optional. So give up and just include them for now, even
  789. though they make 'configure' longer and slower.
  790. Change translation URL from
  791. <http://www.iro.umontreal.ca/contrib/po/maint/tar/> to
  792. <http://www2.iro.umontreal.ca/~gnutra/po/maint/tar/> to
  793. accommodate translator website revamp.
  794. Fail if autoreconf fails.
  795. * m4/.cvsignore: Add intmax.m4, longdouble.m4, printf-posix.m4,
  796. signed.m4, size_max.m4, wchar_t.m4, wint_t.m4, xsize.m4, to
  797. ignore files now supplied by gettext 0.13.1.
  798. 2003-12-25 Sergey Poznyakoff <[email protected]>
  799. Synchronized with the backup repository on Mirddin
  800. 2003-12-19 Sergey Poznyakoff <[email protected]>
  801. * configure.ac: Check for varios members of struct stat
  802. that may represent file modification times with a subsecond
  803. precision.
  804. Check for utimes (for future use)
  805. * src/buffer.c (short_read): Issue a warning on short reads.
  806. * src/common.h (sys_stat_nanoseconds): New function
  807. * src/create.c (dump_file0): Use sys_stat_nanoseconds().
  808. * src/list.c (read_and): Treat only two successive zero
  809. filled blocks as an EOF indicator. Issue a warning if
  810. a single one is encountered.
  811. * src/system.c (sys_stat_nanoseconds): New function
  812. * src/tar.h (tar_stat_info.atime_nsec,mtime_nsec,ctime_nsec): New
  813. members.
  814. * src/xheader.c (code_time,decode_time): Support for subsecond
  815. precision.
  816. (atime_coder,atime_decoder,ctime_coder,ctime_decoder)
  817. (mtime_coder,mtime_decoder): Update invocations of code_time and
  818. decode_time.
  819. (gid_decoder,size_decoder,uid_decoder,sparse_size_decoder)
  820. (sparse_numblocks_decoder,sparse_offset_decoder)
  821. (sparse_numbytes_decoder): Updated
  822. 2003-12-18 Sergey Poznyakoff <[email protected]>
  823. * src/names.c (safer_name_suffix): Reverted change made
  824. 2003-11-14. Reason: Discussion with Paul Eggert and
  825. Jean-Louis Martineau. See also ChangeLog entry from
  826. 1999-08-14.
  827. * tests/delete03.sh: Likewise.
  828. * tests/extrac04.sh: Likewise.
  829. * tests/multiv01.sh: Likewise.
  830. 2003-12-12 Sergey Poznyakoff <[email protected]>
  831. * src/incremen.c (write_directory_file): Use sys_truncate
  832. * src/list.c (print_header): Use archive_file_size member
  833. when printing real file size.
  834. * src/sparse.c (sparse_scan_file): Correctly handle files with
  835. a hole at the end.
  836. (sparse_dump_region,sparse_extract_region): Allow for zero size
  837. trailing blocks
  838. 2003-12-12 Sergey Poznyakoff <[email protected]>
  839. * configure.ac: Raised version number to 1.13.92
  840. * src/list.c (decode_header): Discern between pax and ustar
  841. formats
  842. Initialize current_stat_info.archive_file_size.
  843. NOTE: Modifications from this date on are temporarily
  844. stored on local CVS on mirddin. This repository will
  845. be synchronized with Savannah as soon as the latter
  846. becomes operational again.
  847. 2003-12-01 Sergey Poznyakoff <[email protected]>
  848. * TODO: Updated
  849. * src/sparse.c: Initial implementation of GNU/pax sparse
  850. file format.
  851. * src/common.h (xheader_store): Changed prototype.
  852. * src/create.c: Update calls to xheader_store
  853. * src/extract.c (extract_archive): Check reported size vs.
  854. archive file size to determine if we have to do with a
  855. sparse file.
  856. * src/tar.c (usage): Cleaned up the sample argument to --newer
  857. option.
  858. (decode_options): Allow --sparse for POSIX_FORMAT archives.
  859. * src/xheader.c (struct xhdr_tab.coder; all coder function): Added
  860. extra argument
  861. Implemented GNU.sparse.* keywords.
  862. 2003-11-30 Sergey Poznyakoff <[email protected]>
  863. * configure.ac: Check for setlocale. Thanks Bruno Haible for
  864. reporting.
  865. 2003-11-25 Sergey Poznyakoff <[email protected]>
  866. * src/create.c (write_gnu_long_link): Use oldgnu
  867. magic with @LongLink blocks.
  868. 2003-11-17 Sergey Poznyakoff <[email protected]>
  869. * src/tar.h: Support for star sparse format.
  870. * src/sparse.c: Likewise.
  871. 2003-11-17 Sergey Poznyakoff <[email protected]>
  872. * src/sparse.c (sparse_diff_file): New function
  873. * src/common.h (sys_compare_uid,sys_compare_gid): New functions
  874. (sys_compare_uid_gid): Removed.
  875. (sys_compare_links,report_difference): Changed prototype
  876. (sparse_diff_file): New function
  877. * src/system.c (sys_compare_uid,sys_compare_gid): New functions
  878. (sys_compare_uid_gid): Removed.
  879. (sys_compare_links): Changed declaration
  880. * src/compare.c (diff_archive): Use sparse_diff_file.
  881. 2003-11-16 Sergey Poznyakoff <[email protected]>
  882. Rewritten sparse file handling.
  883. * src/sparse.c: New file. Provides a universal framework
  884. for various methods for sparse files handling.
  885. * src/Makefile.am: Added sparse.c
  886. * src/common.h (struct sp_array,sparsearray,sp_array_size)
  887. (init_sparsearray,fill_in_sparse_array): Removed
  888. (enum dump_status): New data type
  889. (pad_archive,close_diag,open_diag,read_diag_details)
  890. (readlink_diag,savedir_diag,seek_diag_details,stat_diag): New
  891. functions.
  892. (sparse_file_p,sparse_dump_file,sparse_extract_file): New
  893. functions.
  894. (print_header): Changed prototype declaration.
  895. * src/tar.h (struct sp_array): Declaration from common.h
  896. (struct tar_stat_info): New members archive_file_size,
  897. sparse_map_avail,sparse_map.
  898. * src/create.c: Major rewrite.
  899. * src/extract.c: Use new sparse file interface.
  900. * src/compare.c (diff_sparse_files): Temporary placeholder.
  901. * src/buffer.c: Minor changes
  902. * src/tar.c: Likewise.
  903. * src/list.c: Likewise.
  904. * src/misc.c (close_diag,open_diag,read_diag_details)
  905. (readlink_diag,savedir_diag,seek_diag_details,stat_diag): New
  906. diagnostics functions.
  907. * src/incremen.c: Use new diagnostics functions.
  908. * src/names.c: Likewise.
  909. 2003-11-14 Sergey Poznyakoff <[email protected]>
  910. * configure.ac: Fixed check for setsockopt
  911. * src/create.c: Do not zero-terminate name field if
  912. the name is exactly 100 characters long.
  913. (write_ustar_long_name): Fixed cheking for unsplittable
  914. names.
  915. 2003-11-14 Sergey Poznyakoff <[email protected]>
  916. * src/create.c (start_header): Removed debugging hook
  917. (dump_file): Fixed handling of linkname field.
  918. * src/names.c (safer_name_suffix): If the input
  919. file name ends with a slash, output one should do so
  920. as well.
  921. * doc/tar.texi: Documented --format=ustar
  922. 2003-11-14 Sergey Poznyakoff <[email protected]>
  923. * src/tar.h (archive_format): USTAR_FORMAT: New type.
  924. * src/create.c: Added POSIX.1-1988 support.
  925. * src/names.c (safer_name_suffix): Skip leading ./
  926. * src/tar.c: New option --format=ustar forces
  927. POSIX.1-1988 archive format.
  928. * tests/delete03.sh: Updated.
  929. * tests/extrac04.sh: Updated.
  930. * tests/multiv01.sh: Updated.
  931. 2003-11-13 Sergey Poznyakoff <[email protected]>
  932. * src/list.c (read_and): Initialize current_stat_info
  933. and extended_header at the start of the loop.
  934. * src/names.c (all_names_found): Check if the argument
  935. contains valid filename. Fixes coredump on `not_a_tar_file'
  936. * src/xheader.c (atime_decoder,gid_decoder,ctime_decoder)
  937. (mtime_decoder,size_decoder,uid_decoder): Use xstrtoumax.
  938. Fixes `pax-big-10g' bug.
  939. 2003-11-12 Paul Eggert <[email protected]>
  940. Fix some C compatibility bugs reported by Joerg Schilling.
  941. * src/common.h (stripped_prefix_len): Fix misspelling
  942. "stripped_path_len" in declaration.
  943. * src/rmt.c (main): Use "return FOO;" rather than
  944. "exit (FOO);"; we no longer have to worry about
  945. pre-ANSI hosts that mishandled returned values from "main".
  946. * src/tar.c (main): Likewise. This avoids warnings on some
  947. compilers.
  948. * src/system.c: Include signal.h, for 'kill'.
  949. * src/system.h (DEV_BSIZE): Remove.
  950. (DEFAULT_ST_BLKSIZE): New macro.
  951. (ST_BLKSIZE): Use it, instead of DEV_BSIZE.
  952. * src/tar.c (enum): Remove comma just before }.
  953. 2003-11-12 Sergey Poznyakoff <[email protected]>
  954. * src/list.c (decode_header): Initialize st_atime and
  955. st_ctime.
  956. 2003-11-11 Sergey Poznyakoff <[email protected]>
  957. * configure.ac (tar_save_LIBS): Bugfix. Thanks Adrian
  958. Bunk <[email protected]> for reporting.
  959. * doc/tar.texi: Fixed spelling. Thanks Martin Buchholz
  960. <[email protected]> for spotting.
  961. 2003-11-04 Paul Eggert <[email protected]>
  962. * src/xheader.c (xhdr_tab): Make it extern, not static, as C89 and
  963. C99 require this.
  964. 2003-10-26 Paul Eggert <[email protected]>
  965. * src/system.c (sys_spawn_shell): Cast trailing null to (char *).
  966. Bug reported by Christian Weisgerber.
  967. 2003-10-19 Sergey Poznyakoff <[email protected]>
  968. * AUTHORS: Updated
  969. * NEWS: Updated
  970. * src/tar.c (decode_options): Removed superfluous archive format
  971. check
  972. * doc/tar.texi: Documented new features.
  973. 2003-10-08 Sergey Poznyakoff <[email protected]>
  974. * NEWS: Updated
  975. * THANKS: Added Wojciech Polak
  976. * configure.ac: Added checks for missing functions. Raised
  977. version number to indicate alpha release.
  978. * lib/Makefile.am: Added missing headers
  979. * lib/waitpid.c: Added missing includes.
  980. * src/extract.c: Likewise.
  981. * src/names.c: Removed spurious includes.
  982. * src/xheader.c: Likewise.
  983. * src/system.h [MSDOS]: Fixed spelling of EACCES. Added
  984. macro overriding broken mkdir prototypes.
  985. 2003-10-04 Sergey Poznyakoff <[email protected]>
  986. * configure.ac: Check for dev_t and ino_t.
  987. * m4/Makefile.am: Added missing files.
  988. * src/system.c: New file.
  989. * src/Makefile.am: Added system.c
  990. * src/common.h: Prototypes for functions from system.c
  991. * src/system.h (SET_BINARY_MODE, ERRNO_IS_EACCESS): New defines
  992. * src/buffer.c: Moved system dependencies to system.c
  993. * src/compare.c: Likewise.
  994. * src/create.c: Likewise.
  995. * src/delete.c: Likewise.
  996. * src/extract.c: Likewise.
  997. * src/rtapelib.c: Likewise.
  998. 2003-10-04 Sergey Poznyakoff <[email protected]>
  999. Implemented --occurrence option.
  1000. * NEWS: Updated.
  1001. * src/tar.c: New option --occurrence.
  1002. * src/common.h (occurrence_option): New global
  1003. (struct name): Changed `found' member to `uintmax_t
  1004. found_count'.
  1005. (names_done): Removed
  1006. (all_names_found): Changed prototype.
  1007. (ISFOUND,WASFOUND): New macros
  1008. * src/delete.c (delete_archive_members): Honor --occurrence
  1009. option.
  1010. * src/list.c (read_and): Likewise.
  1011. * src/names.c: Count number of occurrences of each name in the
  1012. archive.
  1013. (name_match): Honor --occurrence option.
  1014. (names_done): Removed
  1015. (all_names_found,names_notfound): Rewritten.
  1016. 2003-10-02 Sergey Poznyakoff <[email protected]>
  1017. * src/tar.c: Removed extra precaution regarding
  1018. subcommand_option == CAT_SUBCOMMAND
  1019. * lib/Makefile.am: Updated
  1020. 2003-10-02 Sergey Poznyakoff <[email protected]>
  1021. * src/common.h (names_done): New function.
  1022. * src/names.c: Likewise.
  1023. * src/list.c (read_and): Use all_names_found() as `while'
  1024. condition.
  1025. * src/tar.c: New option --first-copy
  1026. * NEWS: Updated
  1027. 2003-09-24 Paul Eggert <[email protected]>
  1028. * src/rmt.c (main): Don't translate Copyright string; international
  1029. law says the word "Copyright" should be in English.
  1030. * src/tar.c (decode_options): Likewise.
  1031. 2003-09-22 Paul Eggert <[email protected]>
  1032. * doc/tar.texi (extracting untrusted archives): New section.
  1033. * src/common.h (stripped_path_len): Renamed from cut_path_elements.
  1034. Return size_t, not pointer, so that we don't have to worry about
  1035. violating the C standard by converting char const * to char *.
  1036. All callers changed.
  1037. * src/names.c (stripped_path_len): Likewise. Strip file system
  1038. prefix, too. Count adjacent slashes as if they were one slash;
  1039. that is the POSIX standard.
  1040. 2003-09-17 Paul Eggert <[email protected]>
  1041. * README-alpha: Document maintainer tool assumptions a bit. GNU
  1042. 'sed' is no longer required. For GNU m4 1.4, suggest the patch in
  1043. Debian bug 211447. Fix minor misspellings/whitespace nits.
  1044. * configure.ac (AC_AIX, AC_MINIX): Remove; subsumed by
  1045. gl_USE_SYSTEM_EXTENSIONS.
  1046. * lib/.cvsignore: Add exit.h, time_r.c, time_r.h.
  1047. * m4/.cvsignore: Add restrict.m4, time_r.m4.
  1048. 2003-09-17 Paul Eggert <[email protected]>
  1049. * bootstrap: Don't use "for option; do";
  1050. Solaris 8 /bin/sh doesn't like that.
  1051. 2003-09-17 Sergey Poznyakoff <[email protected]>
  1052. * README-alpha: Updated
  1053. * bootstrap: Updated
  1054. 2003-09-17 Sergey Poznyakoff <[email protected]>
  1055. * README-alpha: Updated
  1056. * bootstrap: Updated
  1057. * po/POTFILES.in: Added src/xheader.c
  1058. * src/common.h (cut_path_elements): Added proto.
  1059. 2003-09-05 Sergey Poznyakoff <[email protected]>
  1060. * src/buffer.c: Use ngettext where appropriate.
  1061. * src/compare.c: Likewise.
  1062. * src/create.c: Likewise.
  1063. * src/misc.c: Likewise.
  1064. * src/tar.c: Likewise.
  1065. * src/update.c: Likewise.
  1066. 2003-09-04 Sergey Poznyakoff <[email protected]>
  1067. * .cvsignore: Added *.shar.gz
  1068. * NEWS: Updated
  1069. * TODO: Updated
  1070. * src/common.h (strip_path_elements): New variable.
  1071. * src/extract.c (extract_archive): Implemented --strip-path
  1072. * src/names.c (cut_path_elements): New functon.
  1073. * src/tar.c: New option --strip-path=NUM.
  1074. (decode_options) Assign boolean values to bool variables.
  1075. 2003-09-04 Sergey Poznyakoff <[email protected]>
  1076. * src/delete.c: Fixed deletion from the POSIX archives.
  1077. * src/list.c (read_header): Minor change.
  1078. * src/tar.c (main): Do not check for volume_label_option
  1079. if subcommand_option is not CREATE_SUBCOMMAND.
  1080. * src/xheader.c (xheader_decode): Store the header as
  1081. well (for eventual delete).
  1082. * tests/incremen.sh: Explicitly request GNU format. This will
  1083. disappear when GNU extended header keywords are working.
  1084. * tests/multiv01.sh: Likewise
  1085. * tests/volume.sh: Likewise
  1086. 2003-09-04 Sergey Poznyakoff <[email protected]>
  1087. * src/create.c: Support for "linkpath" extended keyword.
  1088. * src/xheader.c (decode_record): Reversed the return
  1089. condition.
  1090. 2003-09-03 Sergey Poznyakoff <[email protected]>
  1091. * configure.ac: Allow to redefine the default output format.
  1092. * src/tar.c: Use DEFAULT_ARCHIVE_FORMAT macro
  1093. (archive_format_string): New function.
  1094. (usage): Updated help output.
  1095. * README: Updated.
  1096. * NEWS: Updated.
  1097. * TODO: Updated.
  1098. 2003-09-02 Paul Eggert <[email protected]>
  1099. * src/common.h (destroy_stat, xheader_decode, xheader_store,
  1100. xheader_read, xheader_finish, xheader_destroy): Add decls;
  1101. C99 requires this.
  1102. * src/create.c (write_extended): Remove unused local 'bufsize'.
  1103. * src/delete.c (delete_archive_members): Handle case of
  1104. HEADER_SUCCESS_EXTENDED followed by HEADER_FAILURE.
  1105. * src/list.c (read_and): Abort if HEADER_SUCCESS_EXTENDED
  1106. occurs, as it's not possible.
  1107. * src/update.c (update_archive): Likewise.
  1108. Use "const" when possible in new code.
  1109. * src/tar.c (struct fmttab.name): Now char const *. All uses changed.
  1110. (fmttab): Now const. All uses changed.
  1111. * src/xheader.c (struct xhdr_tab.keyword): Now pointer to const.
  1112. (struct xhdr_tab.coder, struct xhdr_tab.decoder, locate_handler,
  1113. decode_record, xheader_store, xheader_print, code_string, code_time,
  1114. code_num, dummy_coder, dummy_decoder, atime_coder, atime_decoder,
  1115. gid_coder, gid_decoder, gname_coder, gname_decoder, linkpath_coder,
  1116. linkpath_decoder, ctime_coder, ctime_decoder, mtime_coder,
  1117. mtime_decoder, path_coder, path_decoder, size_coder, size_decoder,
  1118. uid_coder, uid_decoder, uname_coder, uname_decoder):
  1119. Use pointers to const when possible.
  1120. (xhdr_tab): Now const.
  1121. * src/tar.c (fmttab): Avoid GCC warning by not eliding initializers.
  1122. (set_archive_format): Report an error if no format name matches,
  1123. instead of returning an undefined value.
  1124. * src/xheader.c (struct xhdr_tab.decoder, dummy_decoder,
  1125. atime_decoder, gid_decoder, gname_decoder, linkpath_decoder,
  1126. ctime_decoder, mtime_decoder, path_decoder, size_decoder,
  1127. uid_decoder, uname_decoder): Remove unused keyword arg.
  1128. All uses changed.
  1129. * src/tar.c (set_archive_format): Now static.
  1130. * src/xheader.c (xhdr_tab, format_uintmax): Now static.
  1131. * src/xheader.c (dummy_coder, dummy_decoder, atime_coder,
  1132. atime_decoder, gid_coder, gid_decoder, gname_coder, gname_decoder,
  1133. linkpath_coder, linkpath_decoder, mtime_coder, mtime_decoder,
  1134. ctime_coder, ctime_decoder, path_coder, path_decoder, size_coder,
  1135. size_decoder, uid_coder, uid_decoder, uname_coder, uname_decoder):
  1136. Remove forward decls; no longer needed.
  1137. (xhdr_tab): Move to end, so that the forward decls aren't needed.
  1138. Add a forward declaration.
  1139. Use 'bool' in new code, when appropriate.
  1140. * src/xheader.c (decode_record): Return bool, not int.
  1141. * src/common.h (read_header): Since it accepts bool, change
  1142. all callers to use false and true rather than 0 and 1.
  1143. * src/xheader.c (decode_record): Fix misspelling in diagnostic
  1144. "extended headed" -> "extended header".
  1145. GNU coding style fixes.
  1146. * src/xheader.c (decode_record, xheader_decode):
  1147. Do not use decls like "char *p, *q;".
  1148. Minor style fixes.
  1149. (xheader_store): Avoid parentheses around object operand of sizeof.
  1150. 2003-09-03 Sergey Poznyakoff <[email protected]>
  1151. * src/create.c (start_header): Store long file names
  1152. in "path" keyword of an extended header if in POSIX
  1153. mode.
  1154. (finish_header): print header before calling write_extended().
  1155. * src/list.c (list_archive): Always decode the header. This
  1156. is necessary so the extended header is processed and the correct
  1157. filename is printed no matter what the state of verbose_option.
  1158. * src/xheader.c (xhdr_tab): Reserved GNU keywords (commented out
  1159. for the time being).
  1160. 2003-09-01 Paul Eggert <[email protected]>
  1161. Update from gnulib, and correct fnmatch to fnmatch-gnu.
  1162. * bootstrap (gnulib_modules): Change fnmatch to fnmatch-gnu.
  1163. Sort.
  1164. * configure.ac (gl_USE_SYSTEM_EXTENSIONS): Use this instead
  1165. of AC_GNU_SOURCE.
  1166. * lib/.cvsignore: Add alloca.h, stdbool.h. Sort. Append newline.
  1167. * lib/Makefile.am (lib_OBJECTS): New macro, for convenience when
  1168. copying rules from gnulib module descriptions.
  1169. (BUILT_SOURCES, EXTRA_DIST, all-local, alloca.h):
  1170. Update from gnulib modules alloca, fnmatch, getline, stdbool.
  1171. * m4/.cvsignore: Add utimes-null.m4. Sort.
  1172. 2003-09-01 Sergey Poznyakoff
  1173. Added initial support for creating POSIX headers.
  1174. * src/common.h (MAXOCTAL11,MAXOCTAL7): New defines
  1175. (string_to_chars): New functions
  1176. (struct xheader): Changed structure
  1177. (gid_to_gname,gname_to_gid,uid_to_uname,uname_to_uid): Changed
  1178. prototypes.
  1179. * src/create.c (string_to_chars): New function.
  1180. (write_extended): New function
  1181. (start_header): Create extended POSIX headers if necessary.
  1182. (finish_header): Likewise.
  1183. * src/list.c (print_header): Take user/group from
  1184. current_stat_info.
  1185. * src/names.c (gid_to_gname,gname_to_gid)
  1186. (uid_to_uname,uname_to_uid): Changed prototypes.
  1187. * src/tar.c: New option --format.
  1188. * src/tar.h (OLDGNU_COMPATIBILITY): Removed
  1189. (struct extra_header): Removed unused structure.
  1190. (union block.extra_header): Removed unused member.
  1191. * src/xheader.c: Implemented coder functions.
  1192. * bootstrap: Added obstack.
  1193. * lib/.cvsignore: Likewise.
  1194. * configure.ac: Added 'gl_OBSTACK'
  1195. * m4/Makefile.am: Added new files.
  1196. * m4/.cvsignore: Likewise.
  1197. * TODO: Minor formatting change
  1198. 2003-08-31 Sergey Poznyakoff
  1199. Added initial support for POSIX extended and STAR headers
  1200. (only for listing/extracting).
  1201. * src/xheader.c: New file.
  1202. * src/Makefile.am: Added xheader.c
  1203. * src/tar.h (struct star_header): New datatype
  1204. (XHDTYPE,XGLTYPE): New defines
  1205. (enum archive_format:STAR_FORMAT): New member
  1206. (struct tar_stat_info): New datatype.
  1207. (union block.star_header): New member.
  1208. * src/common.h (orig_file_name,current_file_name)
  1209. (current_trailing_slash,current_link_name): Removed variables.
  1210. (current_stat_info): New variable
  1211. (current_stat): Removed
  1212. (extended_header): New variable
  1213. (decode_header): Changed prototype.
  1214. * src/list.c (decode_header): Added initial support for POSIX extended
  1215. and STAR headers.
  1216. (skip_member): Check oldgnu_header only if current_format is set
  1217. to OLDGNU_FORMAT.
  1218. * src/buffer.c: Use current_stat_info
  1219. * src/compare.c: Likewise.
  1220. * src/create.c: Likewise.
  1221. * src/delete.c: Likewise.
  1222. * src/incremen.c: Likewise.
  1223. * src/mangle.c: Likewise.
  1224. * src/update.c: Likewise.
  1225. * src/extract.c: Likewise.
  1226. (make_directories): Improved check for the existence of the directory
  1227. * src/tar.c (destroy_stat): New function.
  1228. 2003-08-29 Paul Eggert <[email protected]>
  1229. * NEWS, bootstrap: Drop en_GB locale; it was more trouble than it
  1230. was worth (e.g., different users in en_GB disagree about -ize
  1231. versus -ise).
  1232. * po/en_GB.po: Remove.
  1233. 2003-07-28 Sergey Poznyakoff <[email protected]>
  1234. * TODO: Updated
  1235. * NEWS: Updated
  1236. * src/tar.c: Removed support for the obsolete command line
  1237. options.
  1238. * doc/tar.texi: Removed references to the obsolete command
  1239. line options.
  1240. 2003-07-27 Sergey Poznyakoff <[email protected]>
  1241. * TODO: Updated
  1242. * NEWS: Updated
  1243. * doc/tar.texi: Updated
  1244. * src/common.h (check_links_option): New variable
  1245. (orig_file_name): New variable
  1246. (check_links): New proto.
  1247. * src/create.c (struct link.nlink): New member
  1248. (link_table): Static for the module.
  1249. (dump_file): Update `link' member when adding new links
  1250. to the link_table.
  1251. (check_links): New function.
  1252. * src/list.c (print_header): Use orig_file_name.
  1253. * src/tar.c: New option --check-links. Changed semantics of
  1254. -o to comply to UNIX98 when extracting and to its previous
  1255. semantics otherwise.
  1256. (main): Call check_links if --check-links. was given.
  1257. 2003-07-25 Sergey Poznyakoff <[email protected]>
  1258. * src/list.c (print_header): Revised
  1259. * NEWS: Started the entry for 1.13.26
  1260. * doc/Makefile.am (tar.dvi): Fixed TEXINPUTS value.
  1261. 2003-07-24 Sergey Poznyakoff <[email protected]>
  1262. * .cvsignore: Added to the repository.
  1263. * doc/.cvsignore: Likewise.
  1264. * lib/.cvsignore: Likewise.
  1265. * m4/.cvsignore: Likewise.
  1266. * po/.cvsignore: Likewise.
  1267. * scripts/.cvsignore: Likewise.
  1268. * src/.cvsignore: Likewise.
  1269. * tests/.cvsignore: Likewise.
  1270. * lib/Makefile.am: Added exitfail.[hc]
  1271. * src/misc.c (chdir_do): Fixed call to restore_cwd
  1272. * src/buffer.c (flush_read): Fixed behavior on short
  1273. reads right after opening the new archive (multiv01.sh test).
  1274. (new_volume): Special handling for "-".
  1275. * src/list.c (print_header): Print trailing slash if
  1276. current_trailing_slash was set (extrac03.sh,extrac04.sh tests).
  1277. * tests/multiv01.sh: Minor changes.
  1278. * m4/Makefile.am: Added missing files.
  1279. 2003-07-05 Paul Eggert <[email protected]>
  1280. Finish the checkin begin yesterday.
  1281. * NEWS: Document the user-visible changes installed in the last
  1282. two days.
  1283. * TODO: New file (actually, resurrected; but with new contents).
  1284. * src/list.c (read_and): Give full type for procedure arg.
  1285. (read_header): Strip trailing slashes, setting current_trailing_slash.
  1286. (tartime): Avoid int overflow when printing year (!).
  1287. (print_header): New arg specifying block ordinal. All uses changed.
  1288. Print link as 'h' type. Give labels for long links and names.
  1289. * src/misc.c (contains_dot_dot): Moved to names.c
  1290. (must_be_dot_or_slash): New function.
  1291. (safer_rmdir): Use it.
  1292. (remove_any_file): Now takes enum as option, not boolean.
  1293. Check for (Linux) EISDIR as well as (POSIX) EPERM when attempting
  1294. to unlink a directory.
  1295. (deref_stat): Accept bool, not int.
  1296. * src/names.c (namelist_match): Allow partial matches only if
  1297. recursive.
  1298. (hash_string_hasher): Renamed from hash_avoided_name.
  1299. (hash_string_compare): Renamed from compare_avoided_anames.
  1300. (hash_string_insert, hash_string_lookup): New functions.
  1301. (add_avoided_name, is_avoided_name): Use them.
  1302. (safer_name_suffix): New function.
  1303. (contains_dot_dot): Moved here from misc.c. Now returns bool, not int.
  1304. * src/rmt.c: Don't include print-copyr.h.
  1305. (prepare_input_buffer): New arg FD.
  1306. Do not read more than INT_MAX bytes at once,
  1307. since it breaks on some brain damaged Tru64 hosts.
  1308. Divide size by two
  1309. when retrying instead of subtracting 1024; for speed.
  1310. (main): Use gettext to translate (C), not print_copyright.
  1311. * src/system.h: Include <alloca.h> and <stdbool.h> unconditionally,
  1312. now that gnulib handles this.
  1313. Include <stddef.h> and <limits.h> unconditionally, now that we assume
  1314. C89 or better.
  1315. Assume that offsetof is defined in stddef.h.
  1316. Do not include <sys/param.h>.
  1317. (realloc, lseek): Do not declare.
  1318. (HAVE_DECL_VALLOC): Renamed from HAVE_VALLOC.
  1319. (CHAR_BIT, CHAR_MAX, UCHAR_MAX, LONG_MAX): Remove
  1320. declarations, since we now assume C89 or better.
  1321. (PARAMS): Remove, as we now assume C89. All uses changed.
  1322. (bindtextdomain, textdomain): Include <gettext.h> to define.
  1323. Include <unlocked-io.h>.
  1324. (valloc): Define if not defined, and if valloc is not declared.
  1325. (xstrdup): Remove decl.
  1326. * src/tar.c: Do not include <print-copyr.h>.
  1327. Include <getdate.h>.
  1328. (get_date): Remove decl.
  1329. (ATIME_PRESERVE_OPTION, CHECKPOINT_OPTION, FORCE_LOCAL_OPTION,
  1330. IGNORE_FAILED_READ_OPTION, INDEX_FILE_OPTION, NO_OVERWRITE_DIR_OPTION,
  1331. NUMERIC_OWNER_OPTION, RECURSIVE_UNLINK_OPTION, REMOVE_FILES_OPTION,
  1332. SHOW_OMITTED_DIRS_OPTION, TOTALS_OPTION): New constants.
  1333. (long_options, decode_options): Use them.
  1334. (OVERWRITE_DIR_OPTION): Remove.
  1335. (long_options): New options --index-file, --no-overwrite-dir.
  1336. Remove --overwrite-dir option.
  1337. (usage): Use PACKAGE_BUGREPORT.
  1338. (decode_options): Terminate new argv properly.
  1339. Use PACKAGE_NAME, PACKAGE_VERSION.
  1340. If verbose, report how we grokked any textual date option.
  1341. (main): Add support for index-file.
  1342. * tests/Makefile.am: Convert to UTF-8.
  1343. (AUTOMAKE_OPTIONS): Remove.
  1344. (TESTS): Add delete04.sh, multiv01.sh, options.sh.
  1345. (INCLUDES): Remove ../intl.
  1346. (LDADD): Don't link libtar.a twice.
  1347. * tests/genfile.c: Convert to UTF-8.
  1348. Don't include <print-copyr.h>.
  1349. (DEFAULT_PATTERN): Renamed from DEFAULT.
  1350. (ZEROS_PATTERN): Renamed from ZEROS.
  1351. (main): Use gettext to translate (C), not print_copyright.
  1352. 2003-07-04 Paul Eggert <[email protected]>
  1353. Revamp to meet current standards of autoconf, automake,
  1354. gettext, and gnulib, and incorporate new translations.
  1355. * config/config.guess, config/config.sub, config/depcomp,
  1356. config/install-sh, config/mdate-sh, config/missing,
  1357. config/mkinstalldirs, config/texinfo.texi:
  1358. Moved here from parent directory, or from doc.
  1359. * config.hin: Renamed from config.h.in.
  1360. * config/config.rpath: New file.
  1361. * intl: Remove this subdirectory.
  1362. * lib/fnmatch_.h: Renamed from lib/fnmatch.hin.
  1363. * lib/getstr.c, lib/getstr.h, lib/msleep.c, lib/print-copyr.c,
  1364. lib/print-copyr.h, lib/readutmp.c, lib/rename.c, lib/stpcpy.c,
  1365. lib/strstr.c, lib/strtoimax.c, lib/strtoll.c, lib/strtoull.c,
  1366. lib/strtoumax.c, lib/unicodeio.c, lib/unicodeio.h,
  1367. lib/xstrtoimax.c, m4/c-bs-a.m4, m4/ccstdc.m4, m4/check-decl.m4,
  1368. m4/decl.m4, m4/jm-mktime.m4, m4/prereq.m4, m4/xstrtoimax.m4,
  1369. stamp-h.in: Remove.
  1370. * lib/alloca_.h, lib/fnmatch_loop.c, lib/gettext.h, lib/pathmax.h,
  1371. lib/safe-write.c, lib/safe-write.h, lib/stdbool_.h, lib/strcase.h,
  1372. lib/stripslash.c, lib/unlocked-io.h, lib/xgetcwd.h, m4/alloca.m4,
  1373. m4/backupfile.m4, m4/bison.m4, m4/chown.m4, m4/dirname.m4,
  1374. m4/dos.m4, m4/exclude.m4, m4/fileblocks.m4, m4/ftruncate.m4,
  1375. m4/getdate.m4, m4/getopt.m4, m4/hash.m4, m4/human.m4,
  1376. m4/intdiv0.m4, m4/intmax_t.m4, m4/inttypes-pri.m4,
  1377. m4/inttypes_h.m4, m4/isc-posix.m4, m4/lchown.m4, m4/lib-ld.m4,
  1378. m4/lib-link.m4, m4/lib-prefix.m4, m4/memset.m4, m4/mktime.m4,
  1379. m4/modechange.m4, m4/nls.m4, m4/onceonly.m4, m4/pathmax.m4,
  1380. m4/po.m4, m4/quote.m4, m4/quotearg.m4, m4/rmdir.m4,
  1381. m4/safe-read.m4, m4/safe-write.m4, m4/save-cwd.m4, m4/savedir.m4,
  1382. m4/ssize_t.m4, m4/stdbool.m4, m4/stdint_h.m4, m4/strcase.m4,
  1383. m4/strtoimax.m4, m4/strtol.m4, m4/strtoll.m4, m4/strtoul.m4,
  1384. m4/strtoull.m4, m4/strtoumax.m4, m4/tm_gmtoff.m4, m4/uintmax_t.m4,
  1385. m4/unlocked-io.m4, m4/xalloc.m4, m4/xgetcwd.m4, m4/xstrtol.m4,
  1386. po/LINGUAS, po/Makevars, po/Rules-quot, po/boldquot.sed,
  1387. po/[email protected], po/[email protected], po/en_GB.po,
  1388. po/insert-header.sin, po/remove-potcdate.sin, po/stamp-po: New files.
  1389. * ABOUT-NLS, INSTALL, lib/addext.c, lib/alloca.c, lib/argmatch.c,
  1390. lib/argmatch.h, lib/backupfile.c, lib/backupfile.h, lib/dirname.c,
  1391. lib/dirname.h, lib/error.c, lib/exclude.c, lib/exclude.h,
  1392. lib/fnmatch.h, lib/full-write.c, lib/full-write.h, lib/getdate.h,
  1393. lib/getdate.y, lib/getline.c, lib/getline.h, lib/getopt.c,
  1394. lib/getopt.h, lib/getopt1.c, lib/hash.c, lib/hash.h, lib/human.c,
  1395. lib/human.h, lib/lchown.c, lib/malloc.c, lib/mktime.c,
  1396. lib/modechange.c, lib/modechange.h, lib/quote.c, lib/quote.h,
  1397. lib/quotearg.c, lib/quotearg.h, lib/realloc.c, lib/safe-read.c,
  1398. lib/safe-read.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
  1399. lib/savedir.h, lib/strcasecmp.c, lib/utime.c, lib/xalloc.h,
  1400. lib/xgetcwd.c, lib/xmalloc.c, lib/xstrdup.c, lib/xstrtol.c,
  1401. lib/xstrtol.h, lib/xstrtoumax.c, m4/codeset.m4, m4/d-ino.m4,
  1402. m4/error.m4, m4/fnmatch.m4, m4/getcwd.m4, m4/getline.m4, m4/gettext.m4,
  1403. m4/glibc21.m4, m4/iconv.m4, m4/inttypes.m4, m4/lcmessage.m4,
  1404. m4/longlong.m4, m4/malloc.m4, m4/mbrtowc.m4, m4/mbstate_t.m4,
  1405. m4/progtest.m4, m4/realloc.m4, m4/strerror_r.m4, m4/ulonglong.m4,
  1406. m4/utimbuf.m4, m4/utime.m4, m4/utimes.m4, m4/xstrtoumax.m4,
  1407. po/Makefile.in.in:
  1408. Upgrade to latest version from external source. The file "bootstrap"
  1409. now grabs these automatically, so we needn't keep track of them
  1410. in this change long any longer.
  1411. * Makefile.am (AUTOMAKE_OPTIONS): Remove. Now done by configure.ac.
  1412. (SUBDIRS): Remove intl.
  1413. * PORTS: Update for star, Macintosh.
  1414. * README, README-alpha: Suggest Autoconf 2.57, Automake 1.7.5,
  1415. Bison 1.875, gettext 0.12.1.
  1416. * THANKS: Add Bernhard Rosenkraenzer, Solar Designer.
  1417. * configure.ac (AC_INIT, AM_INIT_AUTOMAKE): Convert to modern form.
  1418. (AC_CONFIG_AUX_DIR): New.
  1419. (AC_CONFIG_HEADERS): Rename config.h.in to config.hin, to be more
  1420. like coreutils.
  1421. (AC_PREREQ): Bump from 2.52 to 2.57.
  1422. (AC_GNU_SOURCE): New.
  1423. (AC_PROG_GCC_TRADITIONAL, AM_C_PROTOTYPES, AC_C_CONST): Remove;
  1424. we no longer support K&R C.
  1425. (YACC): Remove.
  1426. (AC_CHECK_HEADERS): Remove limits.h, poll.h, stdbool.h, stropts.h,
  1427. sys/ioccom.h, sys/param.h, sys/time.h, sys/timeb.h, wchar.h, wctype.h.
  1428. (AC_MBSTATE_T): Remove.
  1429. (HAVE_UTIME_H, HAVE_DECL_FREE, HAVE_DECL_GETGRGID, HAVE_DECL_GETPWUID,
  1430. HAVE_DECL_GETENV, HAVE_DECL_MALLOC, HAVE_DECL_STRTOUL,
  1431. HAVE_DECL_STRTOULL, HAVE_MKNOD): Remove our special code.
  1432. (AM_STDBOOL_H): Add.
  1433. (AC_HEADER_TIME, AC_STRUCT_TIMEZONE,
  1434. jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Remove.
  1435. (AC_CHECK_TYPE): Remove ssize_t.
  1436. (gt_TYPE_SSIZE_T): Add.
  1437. (jm_AC_PREREQ_XSTRTOUMAX, jm_PREREQ_ADDEXT, jm_PREREQ_ERROR,
  1438. jm_PREREQ_HUMAN, jm_PREREQ_QUOTEARG, jm_PREREQ_XGETCWD,
  1439. AC_FUNC_ALLOCA, AC_FUNC_CLOSEDIR_VOID, AC_FUNC_STRERROR_R,
  1440. AC_FUNC_FNMATCH, AC_FUNC_VPRINTF, AM_FUNC_GETLINE, jm_FUNC_MALLOC,
  1441. jm_FUNC_MKTIME, jm_FUNC_REALLOC):
  1442. Remove. Switch to gnulib macros like gl_BACKUPFILE instead.
  1443. (tar_LDADD): Rename to LIB_CLOCK_GETTIME. All uses changed.
  1444. (rmt_LDADD): Rename to LIB_SETSOCKOPT. All uses changed.
  1445. (AC_CHECK_FUNCS): Remove fchdir, ftime, getcwd, isascii, nap,
  1446. napms, poll, select, strstr, usleep.
  1447. (AC_REPLACE_FUNCS): Remove ftruncate, lchown, memset, rename,
  1448. rmdir, strcasecmp, strncasecmp, strtol, strtoul.
  1449. (AM_GNU_GETTEXT): Use external and need-ngettext options.
  1450. (AM_GNU_GETTEXT_VERSION): New.
  1451. (AC_OUTPUT): Remove intl/Makefile.
  1452. * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove.
  1453. ($(srcdir)/tar.info, tar.dvi): Remove obsolete warnings.
  1454. * doc/fdl.texi: Update to current GNU version.
  1455. * doc/gettext.texi: Update to current coreutils version,
  1456. plus a copyright notice.
  1457. * doc/tar.texi: Switch to new method for doing copyright notices.
  1458. Use @acronym instead of @sc where appropriate.
  1459. Remove empty examples. Give a few more examples.
  1460. * lib/Makefile.am (AUTOMAKE_OPTIONS): Remove.
  1461. (EXTRA_DIST, libtar_a_SOURCES): Switch to gnulib, so that they
  1462. are built up in pieces with +=.
  1463. (noinst_HEADERS, INCLUDES): Remove.
  1464. (BUILT_SOURCES, MAINTAINERCLEANFILES, MOSTLYCLEANFILES): New.
  1465. (libtar_a_LIBADD): Use $ rather than @.
  1466. (all-local, alloca.h, fnmatch.h, stdbool.h): New rules, from gnulib.
  1467. * m4/Makefile.am (EXTRA_DIST): Add alloca.m4, backupfile.m4,
  1468. bison.m4, chown.m4, dirname.m4, dos.m4, exclude.m4, fileblocks.m4,
  1469. ftruncate.m4, getdate.m4, getopt.m4, hash.m4, human.m4,
  1470. intdiv0.m4, intmax_t.m4, inttypes_h.m4, inttypes-pri.m4,
  1471. isc-posix.m4, lcown.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
  1472. memset.m4, mktime.m4, modechange.m4, nls.m4, onceonly.m4,
  1473. pathmax.m4, po.m4, quotearg.m4, quote.m4, rmdir.m4, safe-read.m4,
  1474. safe-write.m4, save-cwd.m4, savedir.m4, ssize_t.m4, stdbool.m4,
  1475. stdint_h.m4, strcase.m4, strtoimax.m4, strtoll.m4, strtol.m4,
  1476. strtoull.m4, strtoul.m4, strtoumax.m4, tm_gmtoff.m4, uintmax_t.m4,
  1477. unlocked-io.m4, xalloc.m4, xgetcwd.m4, xstrtol.m4.
  1478. Remove c-bs-a.m4, ccstdc.m4, check-decl.m4, decl.m4, jm-mktime.m4,
  1479. prereq.m4, xstrtoimax.m4.
  1480. * po/POTFILES.in: Remove tests/genfile.c; it doesn't need to
  1481. be translated, since it's not a user-visible tool.
  1482. * scripts/Makefile.am (AUTOMAKE_OPTIONS): Remove.
  1483. * src/Makefile.am (AUTOMAKE_OPTIONS): Remove.
  1484. (INCLUDES): Remove ../intl. Put top-srcdir before ., for
  1485. consistency with coreutils.
  1486. (LDADD): Link LIBINTL after libtar.a, since
  1487. it's now external and should stand by itself.
  1488. * src/buffer.c (print_total_written): Adjust to new human.h
  1489. interface.
  1490. (child_open_for_compress): Do not increase size to BLOCKSIZE.
  1491. (open_archive): Open index file name.
  1492. Strip trailing slahes from file names.
  1493. (flush_write): Set size to 0 if not saving names.
  1494. (flush_write, flush_read): Use safer_name_suffix rather than
  1495. inline code.
  1496. * src/common.h: Include <quote.h>.
  1497. (absolute_names_option, atime_preserve_option, backup_option,
  1498. block_number_option, checkpoint_option, dereference_option,
  1499. force_local_option, ignore_failed_read_option, ignore_zeros_option,
  1500. incremental_option, interactive_option, multi_volume_option,
  1501. numeric_owner_option, one_file_system_option, recursive_unlink_option,
  1502. read_full_records_option, remove_files_option, same_order_option,
  1503. show_omitted_dirs_option, sparse_option, starting_file_option,
  1504. to_stdout_option, totals_option, touch_option, verify_option,
  1505. dev_null_output, now_verifying, we_are_root): Now bool, not int.
  1506. (current_trailing_slash, index_file_name, recent_long_name_blocks,
  1507. recent_long_link_blocks): New vars.
  1508. (NO_OVERWRITE_DIR_OLD_FILES): New constant.
  1509. (OVERWRITE_OLD_DIRS): Remove.
  1510. (enum remove_option): New enum.
  1511. (remove_any_file): Use it as option arg, not int.
  1512. (is_avoided_name, contains_dot_dot): Return bool, not int.
  1513. (safer_name_suffix): New decl.
  1514. * src/compare.c (now_verifying): Now bool, not int.
  1515. (fill_in_sparse_array): Move to extract.c. Now returns bool;
  1516. all callers changed to test for failure.
  1517. (diff_sparse_files): Take size from current_stat, not from param.
  1518. (diff_archive): Do not count trailing slashes in archives.
  1519. (verify_volume): Test for header failure after loop, not before.
  1520. * src/create.c (relativize): Remove; replaced by safer_name_suffix.
  1521. All callers changed.
  1522. (start_header): Clear devmajor and devminor fields, too.
  1523. (finish_header): New arg block_ordinal.
  1524. (init_sparsearray): Now extern. Set sp_array_size to
  1525. SPARSES_IN_OLDGNU_HEADER if it is zero.
  1526. (dump_file): Keep link table as a hash.
  1527. Do not count "file changed as we read it" as a failure.
  1528. * src/delete.c (recent_long_name_blocks, recent_long_link_blocks):
  1529. Move extern decl to common.h.
  1530. * src/extract.c (we_are_root): Now bool, not int.
  1531. (check_time): Warn about implausibly old time stamps.
  1532. (set_stat): Use utimbuf, not stat_info.
  1533. (prepare_to_extract): New arg DIRECTORY.
  1534. (fill_in_sparse_array): Moved here from compare.c.
  1535. (extract_sparse_file): Now returns off_t, giving size left.
  1536. Truncate file at end.
  1537. (extract_archive): Use safer_name_suffix rather than rolling our own.
  1538. Use fill_in_sparse_array rather than rolling our own.
  1539. Strip trailing slashes more effectively.
  1540. Check for unsafe names.
  1541. * src/incremen.c (struct directory): nfs and found are now of type
  1542. bool, not int.
  1543. (gnu_restore): Now takes directory name as argument, not offset
  1544. of directory name in a global. All uses changed.
  1545. (CURRENT_FILE_NAME): Remove.
  1546. New tests.
  1547. * tests/delete04.sh, tests/multiv01.sh, tests/options.sh: New
  1548. files.
  1549. 2002-09-30 Paul Eggert <[email protected]>
  1550. * src/rmt.c (prepare_input_buffer): Renamed form
  1551. prepare_record_buffer. All uses changed. Do not assume that
  1552. size_t is the same width as int.
  1553. 2002-03-29 Paul Eggert <[email protected]>
  1554. * src/incremen.c (get_directory_contents):
  1555. If ignore_failed_read_option, only warn about
  1556. get_directory_contents failures. Fix suggested by
  1557. Mark Costlow.
  1558. 2002-01-31 Mark W. Eichin <[email protected]>
  1559. * src/buffer.c (child_open_for_compress): Don't try to read
  1560. past the end of the buffer.
  1561. 2001-10-11 Jim Meyering <[email protected]>
  1562. * argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
  1563. and quote_n (1, ... to avoid clobbering a buffer.
  1564. 2001-09-26 Paul Eggert <[email protected]>
  1565. * NEWS, configure.ac (AM_INIT_AUTOMAKE): Version 1.13.25.
  1566. * src/buffer.c (flush_read): Don't diagnose partial blocks before
  1567. end of file; just ignore them silently.
  1568. * src/list.c (read_header): Don't keep around extended name
  1569. and link info indefinitely; keep it only for the next file.
  1570. This fixes a bug introduced in 1.13.24, and removes the need
  1571. for some static variables. Set recent_long_name and
  1572. recent_long_link to zero if there were no long links; this
  1573. avoids a violation of ANSI C rules for pointers in delete.c.
  1574. * THANKS: Add Christian Laubscher.
  1575. 2001-09-26 Jim Meyering <[email protected]>
  1576. * doc/tar.texi (Remote Tape Server): is know -> is known
  1577. 2001-09-25 Paul Eggert <[email protected]>
  1578. * lib/unicodeio.c (EILSEQ): Include <iconv.h> first, since
  1579. <iconv.h> may define EILSEQ (e.g. libiconv). Define a
  1580. replacement EILSEQ to be ENOENT, not EINVAL, since callers may
  1581. want to distinguish EINVAL and EILSEQ.
  1582. 2001-09-24 Christophe Kalt <[email protected]>
  1583. * src/extract.c (maybe_recoverable):
  1584. Treat OVERWRITE_OLD_DIRS like DEFAULT_OLD_FILES.
  1585. 2001-09-22 Paul Eggert <[email protected]>
  1586. * NEWS, configure.ac (AM_INIT_AUTOMAKE): Version 1.13.24.
  1587. * ABOUT-NLS, intl/*: Update to gettext-0.10.40, replacing LGPL
  1588. with GPL.
  1589. * INSTALL, mkinstalldirs: Update to autoconf 2.52 version.
  1590. * PORTS: Add copyright notice, 'star' reference.
  1591. * README-alpha: Add copyright notice, autoconf 2.52 patch.
  1592. * THANKS: Add Christophe Kalt.
  1593. * config.sub: Upgrade to 2001-09-14 version.
  1594. * configure.ac (ALL_LINGUAS): Add ko.
  1595. * po/ko.po: Resurrected file.
  1596. * doc/convtexi.pl: Add coding advice for Emacs.
  1597. * doc/getdate.texi: Add copyright notice.
  1598. * doc/mdate-sh: Upgrade to automake 1.5 version.
  1599. * doc/tar.texi (extracting files): Mention --to-stdout.
  1600. (Option Summary, Dealing with Old Files): New option --overwrite-dir.
  1601. (Overwrite Old Files): Likewise.
  1602. * lib/Makefile.am (noinst_HEADERS):
  1603. Remove copysym.h. Add print-copyr.h, unicodeio.h.
  1604. (libtar_a_SOURCES): Remove copysym.c, Add print-copyr.c, unicodeio.c.
  1605. * lib/copysym.c, lib/copysym.h: Remove.
  1606. * lib/print-copyr.c, lib/print-copyr.h, lib/unicodeio.c,
  1607. lib/unicodeio.h: New files.
  1608. * lib/error.c, lib/getopt.c, lib/getopt.h, lib/getopt1.c,
  1609. lib/mktime.c, lib/strtoll.c: Switch from LGPL to GPL.
  1610. * lib/quotearg.c (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
  1611. (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
  1612. * m4/Makefile.am (EXTRA_DIST): Remove isc-posix.m4.
  1613. * m4/isc-posix.m4: Remove.
  1614. * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit.
  1615. * po/POTFILES.in: Add copyright notice.
  1616. * src/Makefile.am (LDADD): Like libtar.a before @INTLLIBS@ as
  1617. well as after.
  1618. * tests/Makefile.am (LDADD): Likewise.
  1619. * src/buffer.c (write_archive_buffer, close_archive):
  1620. If an archive is a socket, treat it like a FIFO.
  1621. (records_read, records_written): New vars.
  1622. (write_archive_to_stdout): Now bool, not int.
  1623. (open_archive, flush_write, flush_read): Keep records_read and
  1624. records_written up to date.
  1625. * src/common.h (enum old_files): New value OVERWRITE_OLD_DIRS.
  1626. (write_archive_to_stdout): Now bool, not int.
  1627. (enum read_header): New value HEADER_SUCCESS_EXTENDED.
  1628. (read_header): Now takes bool arg. Existing callers modified
  1629. to pass 0, unless otherwise specified.
  1630. * src/delete.c (records_read): Remove; now a global.
  1631. (acting_as_filter): Now bool, not int.
  1632. (recent_long_name, recent_long_link, recent_long_name_blocks,
  1633. recent_long_link_blocks, records_read, records_written): New decls.
  1634. (records_skipped): New var.
  1635. (move_archive): Don't divide by zero if arg is 0.
  1636. Use the above vars to compute how far to move.
  1637. (write_recent_blocks): New function.
  1638. (delete_archive_member): Pass 1 to read_header, so that it doesn't
  1639. read more than 1 block. Handle resulting HEADER_SUCCESS_EXTENDED code.
  1640. Keep track of how many records have been skipped.
  1641. Let the buffer code count records.
  1642. When copying a header, copy any extended headers that came before it.
  1643. * src/extract.c (extract_archive): When marking a directory to be
  1644. updated after symlinks, stat all directories after it in the
  1645. delayed-set-stat list too, since they will be checked after
  1646. symlinks. Add support for --overwrite-dir.
  1647. * src/list.c (recent_long_name, recent_long_link,
  1648. recent_long_name_blocks, recent_long_link_blocks): New vars.
  1649. (read_and): Pass 0 to read_header.
  1650. (read_header): New arg RAW_EXTENDED_HEADERS. Store away extended
  1651. headers into new vars. Null-terminate incoming symbolic links.
  1652. * src/rmt.c: Include print-copyr.h, not copysym.h.
  1653. (main): Use print_copyright, not copyright_symbol.
  1654. * src/tar.c (decode_options): Likewise.
  1655. (OVERWRITE_DIR_OPTION): New constant.
  1656. (long_options, usage, decode_options): Add --overwrite-dir.
  1657. * src/tar.h: Put copyright notice into documentation.
  1658. * tests/Makefile.am (TESTS): Add delete03.sh.
  1659. * tests/delete03.sh: New file.
  1660. * tests/genfile.c: Include print-copyr.h, not copysym.h.
  1661. (main): Use print_copyright, not copyright_symbol.
  1662. Include <argmatch.h>.
  1663. (pattern_strings): Remove.
  1664. (pattern_args, pattern_types): New constants.
  1665. (main): Use XARGMATCH, not argmatch.
  1666. 2001-09-20 Jim Meyering <[email protected]>
  1667. * lib/xstrtol.c (strtoimax): Guard declaration with
  1668. `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
  1669. The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
  1670. have their own, conflicting declaration of strtoimax in sys/inttypes.h.
  1671. (strtoumax): Likewise, for completeness (it wasn't necessary).
  1672. * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
  1673. Check for declaration of strtoimax.
  1674. * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
  1675. Check for declaration of strtoumax.
  1676. 2001-09-16 Paul Eggert <[email protected]>
  1677. * fnmatch.m4 (jm_FUNC_FNMATCH): Fix typo in previous patch: yes -> no.
  1678. 2001-09-14 Paul Eggert <[email protected]>
  1679. * NEWS, configure.ac (AC_INIT_AUTOMAKE): Version 1.13.23.
  1680. * README-alpha: Describe automake patch.
  1681. * configure.ac (LIBOBJS):
  1682. Remove automake 1.4 workaround, as we're using 1.5 now.
  1683. (USE_INCLUDED_LIBINTL): New AC_DEFINE.
  1684. * lib/copysym.c: Include stddef.h, for size_t.
  1685. Include langinfo.h if needed.
  1686. Use locale_charset only if USE_INCLUDED_LIBINTL;
  1687. if not, use nl_langinfo (CODESET) if available.
  1688. 2001-09-13 Paul Eggert <[email protected]>
  1689. * config.guess, config.sub: Sync with canonical versions.
  1690. * configure.ac (jm_PREREQ_XGETCWD): Add.
  1691. * lib/Makefile.am (noinst_HEADERS): Add copysym.h.
  1692. (libtar_a_SOURCES): Add copysym.c.
  1693. * copysym.c, copysym.h: New files.
  1694. * lib/error.c: Sync with fileutils version.
  1695. * m4/Makefile.am (EXTRA_DIST): Add getcwd.m4; remove uintmax_t.m4.
  1696. * m4/getcwd.m4: New file.
  1697. * m4/uintmax_t.m4: Remove.
  1698. * m4/gettext.m4 (AM_WITH_NLS):
  1699. Fix bug with calculating version of Bison 1.29.
  1700. Reported by Karl Berry.
  1701. * src/Makefile.am (datadir): Remove.
  1702. * src/rmt.c: Include copysym.h.
  1703. (main): Use copyright_symbol to translate copyright notice,
  1704. instead of gettext.
  1705. * src/tar.c: Likewise.
  1706. * tests/genfile.c: Likewise.
  1707. * src/system.h (MB_LEN_MAX): New symbol.
  1708. 2001-09-11 Paul Eggert <[email protected]>
  1709. * src/extract.c (struct delayed_set_stat): New member
  1710. 'after_symlinks'.
  1711. (delay_set_stat): Initialize it to 0.
  1712. (set_mode): New arg current_stat_info. Use it (if nonnull) to avoid
  1713. taking an extra stat ourselves. All callers changed.
  1714. (set_stat): Likewise.
  1715. (apply_nonancestor_delayed_set_stat): New arg 'after_symlinks'.
  1716. If false, stop when encountering a struct whose 'after_symlinks'
  1717. member is true. Otherwise, go through all structures but check
  1718. them more carefully. All callers changed.
  1719. (extract_archive): When extracting a deferred symlink, if its parent
  1720. directory's status needs fixing, then mark the directory as needing
  1721. to be fixed after symlinks.
  1722. (extract_finish): Fix status of ordinary directories, then apply
  1723. delayed symlinks, then fix the status of directories that are
  1724. ancestors of delayed symlinks.
  1725. * src/rtapelib.c (rexec):
  1726. Remove declaration; it ran afoul of prototypes on Crays.
  1727. Reported by Wendy Palm of Cray.
  1728. 2001-09-06 Paul Eggert <[email protected]>
  1729. * lib/strtoimax.c (HAVE_LONG_LONG):
  1730. Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
  1731. (strtoimax): Use sizeof (long), not
  1732. sizeof strtol (ptr, endptr, base),
  1733. to work around bug in IBM C compiler.
  1734. 2001-09-04 Paul Eggert <[email protected]>
  1735. * lib/xgetcwd.c: Include "xalloc.h".
  1736. (xgetcwd): Do not return NULL when memory is exhausted; instead,
  1737. report an error and exit.
  1738. * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
  1739. (jm_PREREQ): Use it.
  1740. 2001-09-03 Paul Eggert <[email protected]>
  1741. * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
  1742. (jm_PREREQ_XGETCWD): New macro.
  1743. * lib/exclude.c (fnmatch_no_wildcards):
  1744. Fix typo that caused us to do case-folding
  1745. search even when that was not desired. This occurred only in the
  1746. no-wildcard case.
  1747. * lib/xgetcwd.c: Include pathmax.h if not HAVE_GETCWD.
  1748. Do not include xalloc.h.
  1749. (INITIAL_BUFFER_SIZE): New symbol.
  1750. Do not use xmalloc / xrealloc, since the caller is responsible for
  1751. handling errors. Preserve errno around `free' during failure.
  1752. Do not overrun buffer when using getwd.
  1753. * lib/xgetcwd.c (xgetcwd):
  1754. Use HAVE_GETCWD_NULL, not defined __GLIBC__ && __GLIBC__ >= 2,
  1755. to decide whether to use getcwd (NULL, 0).
  1756. 2001-09-02 Paul Eggert <[email protected]>
  1757. * lib/xgetcwd.c: Fix typo in local var; from Jim Meyering.
  1758. 2001-09-01 Jim Meyering <[email protected]>
  1759. * exclude.c: Use `""', not `<>' to #include non-system header files.
  1760. (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
  1761. and strncasecmp as r-values. Unixware didn't have declarations.
  1762. 2001-08-31 Jim Meyering <[email protected]>
  1763. * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
  1764. Use an initial, malloc'd, buffer of length 128 rather than
  1765. a statically allocated one of length 1024.
  1766. 2001-08-30 Paul Eggert <[email protected]>
  1767. * lib/utime.c: Include full-write.h.
  1768. * lib/xstrtol.c (strtoimax): New decl.
  1769. 2001-08-29 Paul Eggert <[email protected]>
  1770. * NEWS, configure.ac (AC_INIT_AUTOMAKE): Version 1.13.22.
  1771. * src/create.c (dump_file): Relativize link names before dumping.
  1772. This fixes a bug reported by Jose Pedro Oliveira.
  1773. * src/create.c (dump_file): Use offsetof when computing sizes for
  1774. struct hack; this avoids wasted space in some cases.
  1775. * src/incremen.c (note_directory, find_directory): Likewise.
  1776. * src/names.c (name_gather, addname): Likewise.
  1777. * src/extract.c (extract_archive): Use strcpy, not memcpy,
  1778. for consistency with other code that does similar things.
  1779. * src/names.c (name_gather): Likewise.
  1780. * src/names.c (read_name_from_file, name_next, name_gather,
  1781. add_hierarchy_to_namelist): Avoid quadratic behavior when
  1782. reallocating buffers. Check for buffer size overflow.
  1783. (addname): Avoid unnecessary clearing of memory.
  1784. 2001-08-29 "Jan D." <[email protected]>
  1785. * src/extract.c (delay_set_stat): Fix off-by-one error in file
  1786. name size allocation that caused core dumps.
  1787. 2001-08-28 Paul Eggert <[email protected]>
  1788. * NEWS, configure.ac (AC_INIT_AUTOMAKE): Version 1.13.21.
  1789. * configure.ac (GNU_SOURCE): Define to 1, not /**/.
  1790. (major_t, minor_t, ssize_t): Use new-style AC_CHECK_TYPE.
  1791. (daddr_t): Remove; no longer used.
  1792. (jm_PREREQ_HUMAN): Add.
  1793. * acconfig.h: Remove; no longer needed.
  1794. * config.guess, config.sub:
  1795. New files, from automake 1.5. Gettext 0.10.39 needs them.
  1796. * depcomp, missing, mkinstalldirs: Upgrade to automake 1.5.
  1797. * Makefile.am (AUTOMAKE_OPTIONS): Add dist-bzip2.
  1798. (SUBDIRS): Put intl before lib, as gettext requires.
  1799. * ABOUT-NLS: Upgrade to gettext 0.10.39.
  1800. * intl: Upgrade entire directory to gettext 0.10.39.
  1801. * m4/codeset.m4, m4/glibc21.m4, m4/iconv.m4:
  1802. New files, from gettext 0.10.39.
  1803. * m4/gettext.m4, m4/isc-posix.m4, m4/lcmessage.m4, m4/progtest.m4,
  1804. Upgrade to gettext 0.10.39,
  1805. * po/Makefile.in.in: Likewise, except fix a typo in its copying
  1806. permissions.
  1807. * po/cat-id-tbl.c, po/stamp-cat-id:
  1808. Remove; no longer used by gettext 0.10.39.
  1809. * po/ChangeLog: New file.
  1810. * doc/Makefile.am (EXTRA_DIST): Add freemanuals.texi.
  1811. $(srcdir)/tar.texi: Likewise.
  1812. * doc/freemanuals.texi: New file.
  1813. * doc/tar.texi (Free Software Needs Free Documentation): New appendix.
  1814. `fileds' -> `fields'
  1815. * doc/texinfo.tex: Upgrade to version 2001-07-25.07.
  1816. * lib/Makefile.am (EXTRA_DIST): Add strtoll.c, strtoimax.c.
  1817. (noinst_HEADERS): Add quote.h.
  1818. (libtar_a_SOURCES): Add quote.c, xstrtoimax.c.
  1819. * lib/exclude.c: Fix typo in '#include <stdint.h>' directive.
  1820. * lib/full-write.c, lib/savedir.c: Comment fix.
  1821. * lib/pathmax.h: Remove.
  1822. * lib/quote.c, lib/quote.h: New files.
  1823. * lib/xgetcwd.c: Don't include pathmax.h.
  1824. Include stdlib.h and unistd.h if available.
  1825. Include xalloc.h.
  1826. (xmalloc, xstrdup, free): Remove decls.
  1827. (xgetcwd): Don't assume sizes fit in unsigned.
  1828. Check for overflow when computing sizes.
  1829. Simplify reallocation code.
  1830. * lib/xmalloc.c: Quote failure tests.
  1831. * lib/strtoumax.c, lib/xstrtoimax.c: New files.
  1832. * lib/strtoimax.c: Renamed from strtouxmax.c. Make it more
  1833. similar to strtol.c.
  1834. (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.
  1835. (verify): New macro.
  1836. (strtoumax, uintmax_t, strtoull, strtol): Remove.
  1837. (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
  1838. (strtoimax): Renamed from strtoumax. All uses of unsigned values
  1839. changed to signed values. Check sizes at compile-time, not
  1840. run-time. Prefer strtol to strtoll if both work.
  1841. (main): Remove.
  1842. * lib/xstrtol.h (xstrtoimax): New decl.
  1843. * m4/Makefile.am (EXTRA_DIST):
  1844. Add codeset.m4, glibc21.m4, iconv.m4, inttypes.m4,
  1845. longlong.m4, xstrtoimax.m4.
  1846. * m4/inttypes.m4 (jm_AC_HEADER_INTTYPES_H):
  1847. Remove; now done by autoconf.
  1848. (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T): Replace with
  1849. Use AC_CHECK_TYPE instead of merely looking for the header.
  1850. * m4/uintmax_t.m4: Use shorter comment.
  1851. * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
  1852. Quote first arg of AC_DEFUN.
  1853. Require jm_AC_TYPE_INTMAX_T and jm_AC_TYPE_LONG_LONG since they
  1854. is needed to parse the include file.
  1855. Simplify logic behind the args to AC_REPLACE.
  1856. * src/Makefile.am (OMIT_DEPENDENCIES): Remove.
  1857. * src/ansi2knr.1, src/ansi2knr.c: Remove; wasn't being used.
  1858. * src/rmt.c (main):
  1859. Use "Copyright %d" to simplify the translator's job in the future.
  1860. Advise translator about circle-C.
  1861. * src/tar.c: (decode_options): Likewise.
  1862. * tests/genfile.c (main): Likewise.
  1863. 2001-08-28 Jim Meyering <[email protected]>
  1864. * lib/argmatch.c: Include "quote.h".
  1865. (argmatch_invalid): Quote the context.
  1866. * lib/dirname.c (dir_name): Fix typo on PC platforms.
  1867. * lib/backupfile.c, lib/basename.c, lib/dirname.c, lib/strtoul.c:
  1868. Use single-quote for local .h files.
  1869. * lib/error.h (__attribute__): Don't depend on __STRICT_ANSI__.
  1870. * lib/getopt.c, lib/getopt.h, lib/getopt1.c: Upgrade to recent
  1871. glibc versions.
  1872. * lib/getdate.y (get_date): Initialize tm_isdst to -1 before
  1873. invoking mktime the last time.
  1874. * lib/pathmax.h: Use #if rather than #ifdef for HAVE_UNISTD_H.
  1875. * lib/rename.c: Major rewrite by Volker Borchert to use system
  1876. rename function, but to work around problems with trailing
  1877. slashes.
  1878. * lib/strtoll.c: New file, from glibc.
  1879. * lib/strtoul.c: Update from glibc.
  1880. * lib/strtouxmax.c: Renamed from lib/strtoumax.c.
  1881. Add support for signed numbers, too.
  1882. (strtoul, strtoull): Do not declare if STRTOUXMAX_UNSIGNED
  1883. is not defined.
  1884. (strtol, strtoll): Declare as needed, if STRTOUXMAX_UNSIGNED is
  1885. not defined.
  1886. (strtoumax, uintmax_t, strtoull, strtoul): New macros.
  1887. (main): Use generic names in debugging output.
  1888. * lib/strtoimax.c: Plus add the following changes of my own:
  1889. (main): Use accurate names in debugging output.
  1890. * lib/xgetcwd.c (xgetcwd): Use getcwd if glibc 2 or later.
  1891. Don't use PATH_MAX.
  1892. * m4/c-bs-a.m4, m4/check-decl.m4, m4/d-ino.m4, m4/error.m4,
  1893. m4/getline.m4, m4/jm-mktime.m4, m4/malloc.m4, m4/mbrtowc.m4,
  1894. m4/mbstate_t.m4, m4/realloc.m4, m4/uintmax_t.m4, m4/utimbuf.m4,
  1895. m4/utime.m4, m4/utimes.m4:
  1896. Quote the first argument in each use of AC_DEFUN.
  1897. * m4/getline.m4: Don't use string.h.
  1898. * m4/inttypes.m4, m4/longlong.m4, m4/xstrtoimax.m4: New files.
  1899. * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): @%:@ -> #.
  1900. 2001-08-27 Paul Eggert <[email protected]>
  1901. * NEWS, configure.ac (AC_INIT_AUTOMAKE): Version 1.13.20.
  1902. The biggest change is the new --exclude semantics and options.
  1903. The basic idea was suggested by Gerhard Poul; thanks!
  1904. * NEWS: Describe new --exclude semantics and options, and bug fixes.
  1905. * README: ignfail.sh fails on some NFS hosts.
  1906. * NEWS, README, lib/xstrtol.h: Add copyright notice.
  1907. * Makefile.am (ACLOCAL_AMFLAGS): Add -I m4.
  1908. (M4DIR, ACINCLUDE_INPUTS, $(srcdir)/acinclude.m4):
  1909. Remove; the automake bug has been fixed.
  1910. * acinclude.m4: Remove.
  1911. * configure.ac: Renamed from configure.in.
  1912. (AC_PREREQ): Bump from 2.13 to 2.52.
  1913. (ALL_LINGUAS): Add id, tr. Remove ko, as po/ko.po (dated
  1914. 1997-05-30) has an encoding error.
  1915. (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf.
  1916. (AC_FUNC_FNMATCH): Use AC_CONFIG_LINKS, not AC_LINK_FILES.
  1917. * doc/fdl.texi: Update to current GNU version.
  1918. * doc/tar.texi: Put leading '*' in direntry.
  1919. Accommodate new gfdl sectioning.
  1920. New option --recursion (the default) that is the inverse of
  1921. --no-recursion.
  1922. New options --anchored, --ignore-case, --wildcards,
  1923. --wildcards-match-slash, and their negations (e.g., --no-anchored).
  1924. Along with --recursion and --no-recursion, these control how exclude
  1925. patterns are interpreted. The default interpretation of exclude
  1926. patterns is now --no-anchored --no-ignore-case --recursion
  1927. --wildcards --wildcards-match-slash.
  1928. * lib/Makefile.am (OMIT_DEPENDENCIES): Remove.
  1929. * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
  1930. (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
  1931. (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
  1932. Include if available.
  1933. (<xalloc.h>): Include
  1934. (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
  1935. (verify): New macro. Use it to verify that EXCLUDE macros do not
  1936. collide with FNM macros.
  1937. (struct patopts): New struct.
  1938. (struct exclude): Use it, as exclude patterns now come with options.
  1939. (new_exclude): Support above changes.
  1940. (new_exclude, add_exclude_file):
  1941. Initial size must now be a power of two to simplify overflow checking.
  1942. (free_exclude, fnmatch_no_wildcards): New function.
  1943. (excluded_filename): No longer requires options arg, as the options
  1944. are determined by add_exclude. Now returns bool, not int.
  1945. (excluded_filename, add_exclude):
  1946. Add support for the fancy new exclusion options.
  1947. (add_exclude, add_exclude_file): Now takes int options arg.
  1948. Check for arithmetic overflow when computing sizes.
  1949. (add_exclude_file): xrealloc might modify errno, so don't
  1950. realloc until after errno might be used.
  1951. * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
  1952. New macros.
  1953. (free_exclude): New decl.
  1954. (add_exclude, add_exclude_file): Now takes int options arg.
  1955. (excluded_filename): No longer requires options arg, as the options
  1956. are determined by add_exclude. Now returns bool, not int.
  1957. * lib/prepargs.c: Include <string.h>; required for C99 since
  1958. we use strlen.
  1959. * lib/quotearg.c:
  1960. BSD/OS 4.1 wchar.h requires FILE and struct tm to be declared.
  1961. * lib/xstrtol.h (_DECLARE_XSTRTOL): Improve quality of
  1962. diagnostic for LONGINT_INVALID_SUFFIX_CHAR.
  1963. * m4/Makefile.am (EXTRA_DIST): Add check-decl.m4, mbrtowc.m4.
  1964. Remove inttypes_h.m4, largefile.m4, mktime.m4.
  1965. * m4/inttypes_h.m4, m4/largefile.m4, m4/mktime.m4: Remove;
  1966. subsumed by Autoconf 2.50.
  1967. * m4/error.m4: Upgrade to serial 2.
  1968. * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Upgrade to serial 4, but
  1969. remove test for GNU C library. It's not correct, as some
  1970. older glibcs are buggy.
  1971. * m4/getline.m4, m4/malloc.m4: Upgrade to serial 4.
  1972. * m4/prereq.m4: Upgrade to serial 20, but then:
  1973. (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
  1974. (jm_PREREQ_EXCLUDE): New macro.
  1975. (jm_PREREQ_HUMAN): Remove jm_AC_HEADER_INTTYPES_H, as it is subsumed
  1976. by autoconf 2.5x.
  1977. * m4/realloc.m4: Upgrade to serial 4.
  1978. * m4/strerror_r.m4: Revert to serial 1002.
  1979. * m4/uintmax_t.m4: Upgrade to autoconf 2.5x.
  1980. * m4/utimes.m4: Upgrade to latest version (still "serial 3").
  1981. * m4/xstrtoumax.m4: Upgrade to serial 3, but then:
  1982. (jm_AC_PREREQ_XSTRTOUMAX): Remove jm_AC_HEADER_INTTYPES_H, as
  1983. it is now subsumed by autoconf. Add inttypes.h.
  1984. * po/cs.po, po/da.po, po/de.po, po/es.po, po/et.po, po/fr.po,
  1985. po/it.po, po/pl.po, po/sl.po, po/sv.po: Sync with translation project.
  1986. * src/buffer.c (new_volume): Stop if the script exits with an error.
  1987. * src/common.h (excluded_with_slash, excluded_without_slash):
  1988. Remove, replacing by:
  1989. (excluded): New decl.
  1990. (link_error): New decl.
  1991. (excluded_name): Now returns bool.
  1992. * src/extract.c:
  1993. (struct delayed_symlinks, extract_archive, apply_delayed_symlinks):
  1994. Support hard links to symbolic links.
  1995. (struct delayed_symlink): Remove 'names' member, replacing it with
  1996. 'sources' and 'target' member. All uses changed.
  1997. (struct string_list): New type.
  1998. (delayed_set_stat, extract_archive): Use offsetof when computing sizes
  1999. for struct hack; this avoids wasted space in some cases.
  2000. (extract_archive): Fix test for absolute pathnames and/or "..".
  2001. Use link_error to report errors for links.
  2002. Remove redundant trailing '/' at "really_dir", for all uses, not
  2003. just before invoking mkdir.
  2004. If overwriting old files, do not worry so much about existing
  2005. directories.
  2006. Fix mode computation in the case where the directory exists.
  2007. (apply_delayed_symlinks): If we can't make a hard link to a symbolic
  2008. link, make a copy of the symbolic link.
  2009. * src/incremen.c (get_directory_contents):
  2010. If ignore_failed_read_option, only warn about
  2011. stat failures.
  2012. * src/list.c (from_header): Do not issue a diagnostic if TYPE is zero.
  2013. However, check for error even for '-' or '+' case.
  2014. (print_header): Try parsing uids and gids as unsigned integers first,
  2015. and as a uid_t or gid_t only if that fails. This adds support for
  2016. listing positive uids and gids that are greater than UID_MAX and
  2017. GID_MAX.
  2018. * src/misc.c (link_error): New function.
  2019. * src/names.c (collect_and_sort_names):
  2020. If ignore_failed_read_option, only warn about
  2021. stat errors.
  2022. (excluded_name): Now returns bool. Simplify, as the fancy
  2023. features are now all in excluded_filename.
  2024. * src/rtapelib.c (base_name): Remove decl, as system.h now
  2025. declares it.
  2026. * src/system.h: Include stddef.h if available.
  2027. (offsetof): Declare if stddef.h doesn't.
  2028. Include <dirname.h>.
  2029. (FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now defined by dirname.h.
  2030. * src/tar.c (ANCHORED_OPTION, IGNORE_CASE_OPTION,
  2031. NO_ANCHORED_OPTION, NO_IGNORE_CASE_OPTION, NO_WILDCARDS_OPTION,
  2032. NO_WILDCARDS_MATCH_SLASH_OPTION, WILDCARDS_OPTION,
  2033. WILDCARDS_MATCH_SLASH_OPTION):
  2034. New enum values.
  2035. (long_options, usage, decode_options): Add support for --anchored,
  2036. --ignore-case, --no-anchored, --no-ignore-case, --no-wildcards,
  2037. --no-wildcards-match-slash, --recursion, --wildcards,
  2038. --wildcards-match-slash.
  2039. (decode_options): Implement the new way of interpreting exclude
  2040. patterns.
  2041. (usage): --newer-mtime takes a DATE operand. DATE may be a file name.
  2042. (OPTION_STRING, decode_options): Add -I, -y. Currently these options
  2043. just print error messages suggesting alternatives.
  2044. (add_filtered_exclude): Remove.
  2045. * tests/Makefile.am (TESTS): Alphabetize, except put version.sh first.
  2046. * tests/extrac04.sh (out): Remove
  2047. directory/subdirectory/file1, as the new semantics for
  2048. --exclude exclude it.
  2049. * tests/genfile.c (main): Don't use non-ASCII char in msgid.
  2050. 2001-08-12 Paul Eggert <[email protected]>
  2051. * lib/addext.c (<errno.h>): Include.
  2052. (errno): Declare if not defined.
  2053. (addext): Work correctly on the Hurd, where pathconf returns -1 and
  2054. leaves errno alone, because there is no limit. Also, work even if
  2055. size_t is narrower than long.
  2056. 2001-07-08 Paul Eggert <[email protected]>
  2057. * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
  2058. 2001-05-10 Paul Eggert <[email protected]>
  2059. * lib/addext.c (ISSLASH, base_name): Remove decls; now in dirname.h.
  2060. Include <backupfile.h> and <dirname.h> after size_t is defined.
  2061. (addext): Use base_len to trim redundant trailing slashes instead of
  2062. doing it ourselves.
  2063. * lib/backupfile.c (ISSLASH, base_name):
  2064. Remove decls; now in dirname.h.
  2065. Include <argmatch.h>, <backupfile.h>, <dirname.h> after size_t
  2066. is defined.
  2067. (find_backup_file_name): Rename locals to avoid new functions.
  2068. Use base_len instead of rolling it ourselves.
  2069. Work even if dirlen is 0.
  2070. Use a dir of '.' if given the empty string.
  2071. * lib/basename.c:
  2072. Do not include <stdio.h>, <assert.h>; no longer needed.
  2073. (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Remove; now in dirname.h.
  2074. Include <string.h>, <dirname.h>.
  2075. (base_name): Allow file names ending in slashes, other than names
  2076. that are all slashes. In this case, return the basename followed
  2077. by the slashes.
  2078. * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
  2079. (FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now in dirname.h.
  2080. (dir_len): Renamed from dirlen.
  2081. All callers changed.
  2082. * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
  2083. New macros.
  2084. (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
  2085. 2001-02-16 Paul Eggert <[email protected]>
  2086. * lib/quotearg.c (mbrtowc, mbrtowc, mbsinit):
  2087. Do not declare or define if HAVE_MBRTOWC,
  2088. since the test for HAVE_MBRTOWC now requires proper declarations.
  2089. * lib/alloca.c (malloc): Undef before defining.
  2090. 2001-02-13 Paul Eggert <[email protected]>
  2091. * src/compare.c (read_and_process): Use off_t for size.
  2092. From Maciej W. Rozycki.
  2093. 2001-01-26 Paul Eggert <[email protected]>
  2094. * lib/quotearg.c: Include stddef.h. From Jim Meyering.
  2095. 2001-01-12 Paul Eggert <[email protected]>
  2096. * NEWS, configure.in (AC_INIT_AUTOMAKE): Version 1.13.19.
  2097. * lib/savedir.h (savedir): Remove size arg.
  2098. * doc/tar.texi: Add @setchapternewpage odd.
  2099. Remove -I as an alias for -T, for now.
  2100. Add @dircategory.
  2101. Update copyright. Remove "Published by".
  2102. Dates beginning with / or . are taken to be file names.
  2103. * src/tar.c (<time.h>): Do not include;
  2104. (time): Do not declare.
  2105. (usage): Remove -I as an alias for -T.
  2106. (OPTION_STRING): Remove -I.
  2107. (decode_options): Dates that look like an absolute path name,
  2108. or that start with '.', are presumed to be file names whose
  2109. dates are taken.
  2110. Remove 'I' as an aliase for 'T'.
  2111. Update copyright.
  2112. * src/extract.c (<time.h>): Do not include; system.h now does this.
  2113. (make_directories): Skip filesystem prefixes.
  2114. Don't assume '/' is the only separator.
  2115. (extract_sparse_file): Use new full_write semantics.
  2116. On write error, return instead of invoking skip_file.
  2117. Do not free sparsearray; caller does this now.
  2118. (apply_nonancestor_delayed_set_stat): Do not assume '/' is the only
  2119. separator.
  2120. (extract_archive): Don't assume file name lengths fit in int.
  2121. Report what got stripped from member name; it might be more than '/'.
  2122. Use new full_write semantics.
  2123. Do not pass redundant trailing "/" to mkdir, as POSIX does not allow
  2124. mkdir to ignore it.
  2125. Do not report mkdir error if old_files_option == KEEP_OLD_FILES.
  2126. * src/buffer.c (<time.h>): Do not include; system.h now does this.
  2127. (time): Remove decl; likewise.
  2128. (child_open_for_uncompress): Use new full_write semantics.
  2129. (flush_write): Use ISSLASH instead of testing for '/'.
  2130. (flush_read): Likewise.
  2131. * src/rmt.h (_remdev): Look for / anywhere in Path.
  2132. * src/misc.c (contains_dot_dot): Skip filesystem prefix.
  2133. Don't assume '/' is the only separator.
  2134. (safer_rmdir): Don't assume '/' is the only separator.
  2135. * src/compare.c (diff_archive): Don't assume '/' is the only separator.
  2136. * lib/dirname.h (dirlen): New decl.
  2137. * src/incremen.c (get_directory_contents):
  2138. Remove path_size arg; all callers changed.
  2139. Don't assume '/' is the only directory separator.
  2140. (gnu_restore): Work even if file name length doesn't fit in int.
  2141. * lib/addext.c (ISSLASH): New macro.
  2142. (addext): Trim any redundant trailing slashes.
  2143. * src/names.c (name_next):
  2144. Don't assume '/' is the only directory separator.
  2145. (namelist_match): Likewise.
  2146. (add_hierarchy_to_namelist): Remove dirsize arg.
  2147. Do not assume '/' is the only directory separator.
  2148. (new_name): Likewise.
  2149. * lib/Makefile.am (noinst_HEADERS): Add dirname.h, full-write.h.
  2150. (libtar_a_SOURCES): Add dirname.c.
  2151. * src/create.c (relativize):
  2152. New function, with much of old start_header's guts.
  2153. Handle filesystem prefixes.
  2154. (start_header): Use this new function.
  2155. (init_sparsearray): Don't bother to zero out the new array;
  2156. it's not needed.
  2157. (deal_with_sparse): Fix array allocation bug.
  2158. (create_archive): Don't assume '/' is the only separator.
  2159. (dump_file): Likewise.
  2160. Don't worry about leading / in symlink targets.
  2161. * lib/savedir.c (savedir):
  2162. Remove size arg; it wasn't portable. All callers changed.
  2163. * lib/utime.c (utime_null): Adjust to new full_write convention.
  2164. * configure.in (YACC): Avoid portability problem with Ultrix sh.
  2165. * lib/backupfile.c: Include <dirname.h>.
  2166. (ISSLASH): New macro.
  2167. (find_backup_file_name): Use dirlen to calculate directory lengths.
  2168. (max_backup_version): Strip redundant trailing slashes.
  2169. * src/common.h: Include <full-write.h>.
  2170. (get_directory_contents): No longer has size arg.
  2171. (gnu_restore): Arg is size_t, not int.
  2172. * src/system.h: Include <time.h>.
  2173. (time): Declare if not defined.
  2174. * lib/full-write.c: Include full-write.h, not safe-read.h.
  2175. full_write returns size_t, with short writes meaning failure.
  2176. All callers changed.
  2177. * src/rtapelib.c: Include full-write.h.
  2178. * src/rmt.c: Include full-write.h.
  2179. (main): Update copyright.
  2180. * doc/getdate.texi: Mention that only English is supported.
  2181. Show how to use "date" so that the output is acceptable to getdate.
  2182. Mention Z as an abbreviation for UTC.
  2183. * lib/full-write.h: New file.
  2184. * src/list.c: system.h now does time.h stuff.
  2185. * lib/dirname.c:
  2186. Use HAVE_STDLIB_H, not STDC_HEADERS, to decide whether to include
  2187. stdlib.h.
  2188. Do not include string.h, strings.h, or assert.h; no longer needed.
  2189. (strrchr, memrchr, malloc): Remove decls; no longer needed.
  2190. Include <xalloc.h>.
  2191. (base_name): New decl.
  2192. (BACKSLASH_IS_PATH_SEPARATOR): Remove.
  2193. (dir_name_r): Remove.
  2194. (dirlen): New function.
  2195. (dir_name): Use dirlen instead of dir_name_r.
  2196. (<string.h>, <strings.h>): Include only if test program.
  2197. (main): Use "return 0", not "exit (0)".
  2198. 2000-12-08 Paul Eggert <[email protected]>
  2199. * lib/dirname.h: New file.
  2200. 2000-11-02 Vesselin Atanasov <[email protected]>
  2201. * lib/fnmatch.c: Do not comment out all the code if we are using
  2202. the GNU C library, because in some cases we are replacing buggy
  2203. code in the GNU C library itself.
  2204. 2000-10-30 Paul Eggert <[email protected]>
  2205. * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
  2206. 2000-10-29 Paul Eggert <[email protected]>
  2207. * NEWS, configure.in (AC_INIT_AUTOMAKE): Version 1.13.18.
  2208. * src/tar.c: Include <fnmatch.h>, for FNM_LEADING_DIR.
  2209. 2000-10-28 Paul Eggert <[email protected]>
  2210. * doc/tar.texi: --no-recursion now applies to extraction, too.
  2211. * src/create.c (dump_file): no_recurse_option -> ! recursion_option
  2212. * src/names.c (namelist_match, excluded_name):
  2213. Do not match subfiles of a directory
  2214. if --no-recursion is specified.
  2215. * src/tar.c (NO_RECURSE_OPTION): Remove.
  2216. (long_options): Have getopt set the --no-recursion flag.
  2217. (decode_options): Initialize recursion_option to FNM_LEADING_DIR.
  2218. Remove case for NO_RECURSE_OPTION.
  2219. * src/common.h (recursion_option):
  2220. Renamed from no_recurse_option, with sense
  2221. negated, and with FNM_LEADING_DIR being the nonzero value.
  2222. * names.c (namelist_match): New function.
  2223. (name_match, name_scan): Use it to eliminate duplicate code.
  2224. (names_notfound): Remove special case for Amiga.
  2225. 2000-10-27 Paul Eggert <[email protected]>
  2226. * src/misc.c (read_error_details, read_warn_details,
  2227. read_fatal_details): Don't assume size_t is unsigned long.
  2228. * src/buffer.c (flush_read): If read_full_records_option, try to
  2229. fill the input buffer, as --delete -f - needs this.
  2230. 2000-10-24 Paul Eggert <[email protected]>
  2231. * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Port to autoconf 2.13.
  2232. * src/buffer.c (check_label_pattern):
  2233. Make sure header name is a string before
  2234. passing it to fnmatch.
  2235. (init_volume_number): Check for global_volno overflow.
  2236. (new_volume): Check for global_volno overflow.
  2237. * src/tar.c (decode_options):
  2238. Check that volume label is not too long to overflow
  2239. name in tar header block.
  2240. * Makefile.am (EXTRA_DIST): Remove rebox.el.
  2241. * configure.in (HAVE_DECL_STRERROR_R): Remove our handwritten code.
  2242. (AC_FUNC_STRERROR_R): Use this instead.
  2243. 2000-10-23 Paul Eggert <[email protected]>
  2244. * src/extract.c: Include <time.h>, since we invoke "time".
  2245. * lib/prepargs.c (prepend_default_options):
  2246. Don't use NULL, for portability.
  2247. * m4/fnmatch.m4: Add "working" to message.
  2248. * src/names.c: (_GNU_SOURCE): Remove; autoconf now does this.
  2249. Include <hash.h>.
  2250. (getpwuid, getgrgid): Declare only if system headers don't.
  2251. (gid_to_gname): Don't invoke setgrent.
  2252. (namelist): Now static, not global.
  2253. (nametail): New var. All uses of namelast changed to use
  2254. nametail, with one extra level of indirection.
  2255. (name_gather): Use memcpy instead of strncpy + assignment of NUL.
  2256. (name_match): Set nametail too, when setting namelist to null.
  2257. (add_hierarchy_to_namelist): Change type of dir arg from char * to
  2258. struct name *, so that we don't have to look up the name again
  2259. here. Get change_dir from dir rather than as a separate arg. Add
  2260. dirsize arg, and pass it along to get_directory_contents. Remove
  2261. unnecessary check of directory type.
  2262. (new_name): Do not append a slash if PATH already ends in one.
  2263. (avoided_names, struct avoided_name): Remove.
  2264. (avoided_name_table): New var, replacing avoided_names.
  2265. (hash_avoided_name, compare_avoided_names): New function.
  2266. (add_avoided_name, is_avoided_name): Use hash table rather than
  2267. linked list.
  2268. * src/buffer.c (_GNU_SOURCE): Remove; autoconf now does this.
  2269. (child_open_for_compress, child_open_for_uncompress,
  2270. close_archive): Propagate any failure of the compression process
  2271. back to "tar".
  2272. (open_archive, flush_write, flush_read, close_archive): Do not
  2273. allocate an array of size PATH_MAX, as PATH_MAX might be (size_t)
  2274. -1. Instead, allocate an array with the size that's needed.
  2275. (open_archive): Don't bother checking S_ISCHR of /dev/null.
  2276. (backspace_output): Don't try to backspace past start of archive.
  2277. (close_archive): Remove special case for DELETE_SUBCOMMAND.
  2278. * acconfig.h (_GNU_SOURCE, DEFAULT_ARCHIVE, DEFAULT_BLOCKING,
  2279. DENSITY_LETTER, DEVICE_PREFIX, EMUL_OPEN3, HAVE_GETGRGID,
  2280. HAVE_GETPWUID, HAVE_MKNOD, HAVE_RTAPELIB, HAVE_ST_FSTYPE_STRING,
  2281. HAVE_UNION_WAIT, HAVE_UTIME_H, HAVE_VALLOC, MTIO_CHECK_FIELD, PACKAGE,
  2282. PROTOTYPES, REMOTE_SHELL, STD_INC_PATH, VERSION, WITH_CATALOGS,
  2283. WITH_DMALLOC, WITH_REGEX):
  2284. Remove; now generated automatically.
  2285. * configure.in (_GNU_SOURCE): Define to empty, not 1, for
  2286. compatibility for glibc fragments.
  2287. (_GNU_SOURCE, HAVE_UTIME_H, MTIO_CHECK_FIELD,
  2288. HAVE_ST_FSTYPE_STRING, HAVE_MKNOD, REMOTE_SHELL, DENSITY_LETTER,
  2289. DEVICE_PREFIX, DEFAULT_ARCHIVE, DEFAULT_BLOCKING): Add comment so
  2290. that we needn't put an entry into acconfig.h.
  2291. (ALL_LINGUAS): Add da.
  2292. (AC_C_BACKSLASH_A): Remove; jm_PREREQ_QUOTEARG now does this.
  2293. (AC_CHECK_HEADERS): Add stdbool.h (for hash.h users), wctype.h
  2294. (for strtol.c).
  2295. (AC_MBSTATE_T): Add.
  2296. (RMT): Append $(EXEEXT).
  2297. (HAVE_GETGRGID, HAVE_GETPWUID, pe_AC_TYPE_SIGNED_CHAR): Remove.
  2298. (HAVE_DECL_FREE, HAVE_DECL_GETGRGID, HAVE_DECL_GETPWUID,
  2299. HAVE_DECL_GETENV, HAVE_DECL_MALLOC, HAVE_DECL_STRTOUL,
  2300. HAVE_DECL_STRTOULL, HAVE_DECL_STRERROR_R): New macros.
  2301. (jm_PREREQ_ADDEXT, jm_PREREQ_ERROR, jm_PREREQ_QUOTEARG): Add.
  2302. (AC_REPLACE_FUNCS): Remove execlp; no longer needed.
  2303. (AC_CHECK_FUNCS): Add clock_gettime; AC_SEARCH_LIBS wasn't enough.
  2304. Remove mbrtowc; jm_PREREQ_QUOTEARG now does this.
  2305. (EMUL_OPEN3): Remove; no longer needed.
  2306. (DENSITY_LETTER, DEVICE_PREFIX): Simplify m4 quoting.
  2307. * m4/fnmatch.m4 (AC_FUNC_FNMATCH): Detect d*/*1 vs d/s/1 bug.
  2308. * src/common.h: Do not include basename.h.
  2309. * src/rtapelib.c (base_name): Do not include basename.h;
  2310. declare base_name instead.
  2311. * lib/basename.h, lib/execlp.c, lib/getpagesize.h, lib/mkdir.c:
  2312. Remove these files.
  2313. * lib/getstr.c, lib/getstr.h, lib/hash.h, lib/hash.h, lib/prepargs.c,
  2314. lib/prepargs.h, lib/savedir.c, lib/savedir.h: New files.
  2315. * lib/Makefile.am (EXTRA_DIST, noinst_HEADERS, libtar_a_SOURCES):
  2316. Adjust to the above changes.
  2317. * lib/Makefile.am (AUTOMAKE_OPTIONS): Remove ../src/ansi2knr.
  2318. * src/open3.c: Remove.
  2319. * src/Makefile.am (AUTOMAKE_OPTIONS): Remove ansi2knr.
  2320. (tar_SOURCES): Remove open3.c.
  2321. (INCLUDES): Remove -I.., as automake does that.
  2322. (OMIT_DEPENDENCIES): ../lib/fnmatch.h -> fnmatch.h. Add localedir.h.
  2323. The following changes are to put LOCALEDIR into localedir.h instead
  2324. of passing it on the command line.
  2325. (DEFS): Remove.
  2326. (DISTCLEANFILES): New macro.
  2327. (localedir.h): New rule.
  2328. (rmt.o tar.o): Now depend on localedir.h.
  2329. * tests/delete02.sh, tests/extrac04.sh: New files.
  2330. * tests/Makefile.am (AUTOMAKE_OPTIONS): Remove ansi2knr.
  2331. (TESTS): Add extrac04.sh, and restore delete02.sh.
  2332. (DEFS): Remove; LOCALEDIR is now done via localedir.h.
  2333. (INCLUDES): Remove -I.. as automake does this now.
  2334. * src/rtapelib.c (rexec): Don't declare unless using it.
  2335. (do_command): Simplify signal-handling code slightly.
  2336. * src/delete.c (blocks_needed): Remove. All uses changed to use
  2337. blocking_factor - new_blocks.
  2338. (acting_as_filter): New var.
  2339. (write_record, delete_archive_members): Use acting_as_filter
  2340. rather than archive == STDIN_FILENO to detect whether we're acting
  2341. as a filter, as open can return STDIN_FILENO in some cases.
  2342. (delete_archive_members): Ignore zero blocks if
  2343. ignore_zeros_option is nonzero. Fix bug that messed up last
  2344. output block: write_eot can't be used here, as it gets confused
  2345. when the input is at end of file.
  2346. * src/compare.c (diff_archive): Do not impose an arbitrary limit on
  2347. symbolic link contents length. Pass directory size to
  2348. get_directory_contents.
  2349. * m4/decl.m4, m4/error.m4, m4/mbstate_t.m4, m4/prereq.m4,
  2350. m4/strerror_r.m4: New files.
  2351. * m4/signedchar.m4: Remove this file.
  2352. * Makefile.am (ACINCLUDE_INPUTS): Adjust to above changes.
  2353. * m4/Makefile.am (EXTRA_DIST): Likewise.
  2354. * Makefile.am (DISTCLEANFILES): Add intl/libintl.h.
  2355. * po/da.po: New translation file.
  2356. * src/mangle.c (extract_mangle):
  2357. Fix diagnostic with wrong number of %s'es.
  2358. * lib/fnmatch.c (fnmatch):
  2359. Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
  2360. e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
  2361. * lib/full-write.c (full_write): Some buggy drivers return 0 when you
  2362. fall off a device's end. Detect this.
  2363. * src/system.h (IN_CTYPE_DOMAIN): Renamed from CTYPE_DOMAIN. All
  2364. uses changed.
  2365. (open): Remove macro; we no longer support EMUL_OPEN3. Do not
  2366. include <pathmax.h> and directory include files like <dirent.h>;
  2367. no longer used. Include <savedir.h> instead.
  2368. (closedir, signed_char): remove macro; no longer used.
  2369. (bool, false, true): Include <stdbool.h> if you have the include
  2370. file, otherwise define.
  2371. * src/misc.c:
  2372. (is_dot_or_dotdot, closedir_error, closedir_warn, opendir_error,
  2373. opendir_warn, readdir_error): Remove; no longer needed.
  2374. (safer_rmdir): Strip leading ./ (or .// or ./// or ././ or etc.)
  2375. before deciding whether we're trying to remove ".".
  2376. (remove_any_file): Try unlink first if we are not root. Use
  2377. savedir when recursively removing directories, to avoid exhausting
  2378. file descriptors.
  2379. (savedir_error, savedir_warn, symlink_error): New functions.
  2380. * src/list.c: (read_and): Do not invoke
  2381. apply_nonancestor_delayed_set_stat; DO_SOMETHING is now
  2382. responsible for that. Do not invoke apply_delayed_set_stat; our
  2383. caller is now responsible for that.
  2384. (read_header): Use signed char instead of signed_char. Prevent
  2385. later references to current_header from mistakenly treating it as
  2386. an old GNU header.
  2387. (from_header): Quote invalid base-64 strings in diagnostics.
  2388. (time_from_header): Do not warn about future timestamps in
  2389. archive; check_time now does that.
  2390. (print_header): Quote unknown file types.
  2391. (skip_member): New function, replacing skip_extended_headers and
  2392. now skipping the whole member instead of just the extended
  2393. headers. All callers changed. This makes the code handle
  2394. extended headers uniformly, and fixes some bugs.
  2395. * src/update.c (update_archive): Use skip_member.
  2396. * src/extract.c (we_are_root): Now global.
  2397. (struct delayed_symlink): New type.
  2398. (delayed_symlink_head): New var.
  2399. (extr_init, fatal_exit): Invoke extract_finish on fatal errors,
  2400. not apply_delayed_set_stat.
  2401. (set_mode, set_stat): Pointer args are now const pointers.
  2402. (check_time): New function.
  2403. (set_stat): Warn if setting a file's timestamp to be the future.
  2404. (make_directories): Do not save and restore errno.
  2405. (maybe_recoverable): Set errno to ENOENT if we cannot make missing
  2406. intermediate directories.
  2407. (extract_archive): Invoke apply_nonancestor_delayed_set_stat here,
  2408. not in caller. Extract potentially dangerous symbolic links more
  2409. carefully, deferring their creation until the end, and using a
  2410. regular file placeholder in the meantime. Do not remove trailing
  2411. / and /. from file names. Do not bother checking for ".." when
  2412. checking whether a directory loops back on itself, as loopbacks
  2413. can occur with symlinks too. Also, in that case, do not bother
  2414. saving and restoring errno; just set it to EEXIST.
  2415. (apply_nonancestor_delayed_set_stat): A prefix is a potential
  2416. ancestor if it ends in slash too (as well as ending in a char just
  2417. before slash).
  2418. (apply_delayed_set_stat): Remove.
  2419. (apply_delayed_symlinks, extract_finish): New functions.
  2420. * doc/fdl.texi: New file.
  2421. * doc/Makefile.am (EXTRA_DIST): Add fdl.texi.
  2422. ($(srcdir)/tar.info): Add fdl.texi. Invoke makeinfo with --no-split.
  2423. * doc/tar.texi: Add Free Documentation License. New section
  2424. "Overwrite Old Files", and revamp that section to make it easier to
  2425. follow. "tar" -> "GNU tar" where appropriate. Migrate getdate
  2426. documentation into getdate.texi. Fix several minor typos. Describe
  2427. TAR_OPTIONS. Describe incompatibility between incremental backups and
  2428. --atime-preserve. Describe incompatibility between --verify and other
  2429. options. Mention that tar normally removes symbolic links rather than
  2430. following them, when extracting a file of the same name.
  2431. * THANKS: Add gpoul. Change skip's address.
  2432. * po/POTFILES.in: Add lib/human.c.
  2433. * src/common.h (namelist, namelast): Remove decls.
  2434. (we_are_root, extract_finish, skip_member, savedir_error,
  2435. savedir_warn, symlink_error, gnu_list_name): New decls.
  2436. (apply_delayed_set_stat, apply_nonancestor_delayed_set_stat,
  2437. skip_extended_headers, is_dot_or_dotdot, closedir_error,
  2438. closedir_warn, opendir_error, opendir_warn, readdir_error,
  2439. readdir_warn): Remove decls.
  2440. (get_directory_contents): New off_t arg.
  2441. (addname): Now returns struct name *.
  2442. * src/tar.h, tests/genfile.c: Fix comments.
  2443. * src/create.c: Include hash.h.
  2444. (gnu_list_name): Remove decl.
  2445. (struct link): Remove "next" member.
  2446. (linklist): Remove.
  2447. (start_header): Say "leading `FOO'" rather than "`FOO' prefix" for
  2448. consistency with other diagnostics.
  2449. (deal_with_sparse): Check for I/O error when closing the file.
  2450. (create_archive): Do not allocate an array of size PATH_MAX, as
  2451. PATH_MAX might be (size_t) -1. Instead, allocate an array with
  2452. the size that's needed.
  2453. (hash_link, compare_links): New functions.
  2454. (dump_file): Do not exhaust open file descriptors when descending
  2455. deeply into a directory, by using savedir rather than
  2456. opendir/readdir. Do not zero-fill the name buffer unnecessarily.
  2457. Hash the set of links already created, instead of using a linked
  2458. list. Fix some bugs in outputting sparse files which caused the
  2459. sparse tables to be incorrect. When a file unexpectedly shrinks,
  2460. output zeros rather than garbage. Do not allocate an array of
  2461. size PATH_MAX, as PATH_MAX might be (size_t) -1. Instead,
  2462. allocate an array with the size that's needed.
  2463. * src/incremen.c: Include hash.h.
  2464. (struct directory): Remove "next", "dir_text". Change "name" to
  2465. be char[1] with struct hack, not const char *. Add "found".
  2466. (directory_list): Remove. Replaced by directory_table.
  2467. (directory_table): New var.
  2468. (nfs_string): Renamed from nfs.
  2469. (hash_directory, compare_directories): New functions.
  2470. (note_directory): Now returns struct directory *. First arg is
  2471. now const pointer. struct stat arg is now dev_t, ino_t, nfs.
  2472. Remove text arg. New "found" arg, basically corresponding to the
  2473. old text arg not being null. All callers changed.
  2474. (note_directory, find_directory): Use hash table rather than
  2475. linked list.
  2476. (get_directory_contents): New arg "device". Use savedir to do the
  2477. hard work. Save the nfs-ness of stat_data, since it might change
  2478. under us. Use note_directory instead of find_directory to save
  2479. some work. When adding an "A" record, do it with
  2480. add_to_accumulator instead of cheating with strcat.
  2481. (read_directory_file): Use "+" flag before device to indicate
  2482. whether it was NFS. Fix typo in checking for strtoul error.
  2483. (write_directory_file_entry): New function.
  2484. (write_directory_file): Use it, and use the hash routines to
  2485. traverse the directory table.
  2486. (gnu_restore): Use savedir rather than opendir/readdir.
  2487. * src/tar.c: Include localedir.h, prepargs.h.
  2488. (long_options): Now static.
  2489. (long_options, usage, decode_options): -j is now short for
  2490. --bzip2, and -I is now an alias for -T.
  2491. (decode_options, main): argv is not const pointer now.
  2492. (decode_options): Invoke prepend_default_options to support
  2493. TAR_OPTIONS. In diagnostic, mention the string that was the
  2494. invalid blocking factor, tape length, group, owner, or record
  2495. size. --delete is no longer incompatible with -f -, undoing
  2496. 2000-01-07 change.
  2497. (main): Invoke extract_finish at end of extraction.
  2498. * src/rmt.c: Include localedir.h.
  2499. (main): Update copyright date to 2000.
  2500. * doc/getdate.texi: New file, taken from fileutils 4.0.27, with the
  2501. following changes: Use @sc where appropriate. Document the ranges of
  2502. supported times more precisely. Add Eggert to getdate authors.
  2503. Document old Latin 12m/12pm tradition. Remove list of alphabetic time
  2504. zone names, as it wasn't correct and people shouldn't be relying on it
  2505. anyway. Relative items also account for non-DST adjustments. Fix
  2506. some misspellings.
  2507. * lib/prepargs.c, lib/prepargs.h, tests/extrac04.sh: New file.
  2508. * tests/ignfail.sh: opendir -> savedir in diagnostics.
  2509. * tests/preset.in: Set LANGUAGE to the empty string, for some
  2510. brain damaged host.
  2511. 2000-10-20 Paul Eggert <[email protected]>
  2512. * m4/fnmatch.m4: Mention the GNU C library.
  2513. 2000-10-19 Paul Eggert <[email protected]>
  2514. * m4/fnmatch.m4: Add a couple more test cases to catch bugs in
  2515. glibc 2.1.95.
  2516. 2000-10-17 Paul Eggert <[email protected]>
  2517. * lib/human.c (<limits.h>): Do not include; human.h does it if needed.
  2518. (CHAR_BIT): Remove.
  2519. * lib/human.h (<limits.h>): Include if HAVE_LIMITS_H.
  2520. (CHAR_BIT): Define if not defined.
  2521. 2000-09-09 Paul Eggert <[email protected]>
  2522. * lib/quotearg.c: From fileutils: rename ISASCII to IN_CTYPE_DOMAIN.
  2523. 2000-08-07 Paul Eggert <[email protected]>
  2524. * lib/xmalloc.c: Memory exhausted -> memory exhausted
  2525. * lib/xalloc.h (xalloc_msg_memory_exhausted):
  2526. change to array from char *.
  2527. 2000-08-06 Paul Eggert <[email protected]>
  2528. * m4/mbstate_t.m4: Define mbstate_t to be int, not char, for
  2529. compatibility with glibc 2.1.3 strftime.c.
  2530. 2000-07-31 Paul Eggert <[email protected]>
  2531. * lib/quotearg.c (quotearg_n_options):
  2532. Don't make the initial slot vector a constant,
  2533. since it might get modified.
  2534. * lib/quotearg.c: Add support for more than one preallocated slot.
  2535. 2000-07-30 Paul Eggert <[email protected]>
  2536. * lib/quotearg.c (quotearg_n_options):
  2537. Preallocate a slot 0 buffer, so that the caller
  2538. can always quote one small component of a "memory exhausted" message
  2539. in slot 0.
  2540. 2000-07-23 Paul Eggert <[email protected]>
  2541. * lib/quotearg.c:
  2542. Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX), so that
  2543. mbstate_t is always defined.
  2544. Do not inspect MB_LEN_MAX, since it's incorrectly defined to be 1 in
  2545. some GCC installations, and this configuration error is likely to be
  2546. common.
  2547. 2000-07-22 Paul Eggert <[email protected]>
  2548. * lib/quotearg.c:
  2549. When the system forces us to redefine mbstate_t, shadow its mbsinit
  2550. function. From Bruno Haible.
  2551. 2000-07-14 Paul Eggert <[email protected]>
  2552. * lib/xmalloc.c: Simplify exhausted message.
  2553. * lib/quotearg.h: Update copyright date; from Jim Meyering.
  2554. 2000-07-13 Paul Eggert <[email protected]>
  2555. * lib/quotearg.h (enum quoting style):
  2556. New constant clocale_quoting_style.
  2557. * lib/quotearg.c:
  2558. (quoting_style_args, quoting_style_vals, quotearg_buffer_restyled):
  2559. Add support for clocale_quoting_style, undoing previous change to
  2560. locale_quoting_style.
  2561. 2000-07-10 Paul Eggert <[email protected]>
  2562. * lib/quotearg.c:
  2563. <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX,
  2564. since otherwise we don't need it.
  2565. (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
  2566. since we don't do multibytes in that case.
  2567. (quotearg_buffer_restyled): If a unibyte locale, don't bother to
  2568. invoke multibyte primitives.
  2569. * m4/mbstate_t.m4 (AC_MBSTATE_T):
  2570. Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
  2571. Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
  2572. and mbstate_t, to a single-part test that simply defines mbstate_t.
  2573. * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
  2574. Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
  2575. to decide whether to define the BeOS workaround macro;
  2576. this adjusts to the change to AC_MBSTATE_T.
  2577. * m4/strerror_r.m4: New file.
  2578. 2000-07-05 Paul Eggert <[email protected]>
  2579. * lib/quotearg.c: Use double-quote to quote.
  2580. * lib/quotearg.c (N_): New macro.
  2581. (gettext_default): New function.
  2582. (quotearg_buffer_restyled): Use gettext_default ("{LEFT QUOTATION MARK}",
  2583. "\"") for left quote, and gettext_default ("{RIGHT QUOTATION MARK}", "\"")
  2584. for right quote.
  2585. * lib/quotearg.c (struct quoting_options):
  2586. Simplify quote_these_too dimension.
  2587. From Bruno Haible <[email protected]>.
  2588. * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT):
  2589. Test for mbstate_t only if the test
  2590. for an object-type mbstate_t fails.
  2591. * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
  2592. 2000-07-03 Paul Eggert <[email protected]>
  2593. * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
  2594. Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
  2595. * lib/quotearg.c (mbrtowc):
  2596. Assign to *pwc, and return 1 only if result is nonzero.
  2597. (iswprint): Define to ISPRINT if we are substituting our own mbrtowc.
  2598. 2000-07-02 Paul Eggert <[email protected]>
  2599. * lib/quotearg.c (mbstate_t):
  2600. Do not define; it should be defined with AC_CHECK_TYPE.
  2601. 2000-06-26 Paul Eggert <[email protected]>
  2602. * m4/mbstate_t.m4: Include stdio.h before wchar.h, to work around
  2603. a bug in glibc 2.1.3.
  2604. * lib/xmalloc.c: Fix inaccorate comment for xrealloc.
  2605. 2000-06-19 Paul Eggert <[email protected]>
  2606. * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
  2607. inclusion of wctype.h to work around solaris2.6 namespace pollution.
  2608. (ISPRINT): Likewise.
  2609. Reported by Tom Tromey.
  2610. 2000-06-15 Paul Eggert <[email protected]>
  2611. * lib/human.c (adjust_value): New function.
  2612. (human_readable_inexact): Apply rounding style even when printing
  2613. approximate values.
  2614. * lib/human.c: Avoid shadowing warnings.
  2615. From Jim Meyering.
  2616. 2000-06-14 Paul Eggert <[email protected]>
  2617. * lib/human.c (human_readable_inexact): Allow an input block size
  2618. that is not a multiple of the output block size, and vice versa.
  2619. * lib/getdate.y (get_date): Apply relative times after time zone
  2620. indicator, not before.
  2621. 2000-05-31 Paul Eggert <[email protected]>
  2622. * m4/largefile.m4: Rewrite so that we don't need to run getconf,
  2623. and thus don't need AC_CANONICAL_HOST.
  2624. (AC_SYS_LARGEFILE_FLAGS, AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
  2625. (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
  2626. (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
  2627. CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY. All uses
  2628. changed. Instead of inspecting the output of getconf, try to
  2629. compile the test program without and with the macro definition.
  2630. (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check for
  2631. getconf. Instead, check for the needed flags by compiling test
  2632. programs.
  2633. * configure.in (AC_CANONICAL_HOST): Remove; the largefile stuff no
  2634. longer needs it.
  2635. * config.guess, config.sub: Remove these files, for similar reasons.
  2636. 2000-05-03 Paul Eggert <[email protected]>
  2637. * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to be
  2638. 500, instead of _GNU_SOURCE to be 1, to work around glibc 2.1.3
  2639. bug. This avoids a clash when files like regex.c that define
  2640. _GNU_SOURCE.
  2641. 2000-05-02 Paul Eggert <[email protected]>
  2642. * m4/largefile.m4 (AC_SYS_LARGEFILE):
  2643. Define _GNU_SOURCE if this is needed to make
  2644. ftello visible (e.g. glibc 2.1.3). Use compile-time test, rather than
  2645. inspecting host and OS, to decide whether to define _LARGEFILE_SOURCE.
  2646. * lib/quotearg.c (mbrtowc, mbstat_t):
  2647. Add definitions if !HAVE_MBSTATE_T_OBJECT.
  2648. (<wctype.h>): Include if HAVE_WCTYPE_H.
  2649. (iswprint): Define to 1 if we lack it
  2650. 2000-04-18 Paul Eggert <[email protected]>
  2651. * m4/mbstate_t.m4: New file.
  2652. 2000-04-17 Bruno Haible <[email protected]>
  2653. * tests/ignfail.sh: Test for uid 0 along with user "root".
  2654. 2000-04-05 Paul Eggert <[email protected]>
  2655. * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS):
  2656. Don't use -n32 on IRIX if the installer said
  2657. otherwise.
  2658. 2000-02-28 Paul Eggert <[email protected]>
  2659. * lib/quotearg.c (ALERT_CHAR): New macro.
  2660. (quotearg_buffer_restyled): Use it.
  2661. 2000-02-23 Rainer Orth <[email protected]>
  2662. * src/list.c (tartime): Fix off-by-one error when copying year if
  2663. OLD_CTIME.
  2664. 2000-02-18 Paul Eggert <[email protected]>
  2665. * lib/getdate.y: Handle two-digit years with leading zeros correctly.
  2666. (textint): New typedef.
  2667. (parser_control): Changed from struct parser_control to typedef
  2668. (for consistency). Member year changed from int to textint. All
  2669. uses changed.
  2670. (YYSTYPE): Removed; replaced by %union with int and textint
  2671. members.
  2672. (tID): Removed; not used.
  2673. (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE,
  2674. tMERIDIAN, tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER,
  2675. tUNUMBER, tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
  2676. (tSNUMBER, tUNUMBER): Now of type <textintval>.
  2677. (date, number, to_year): Use width of number in digits, not its
  2678. value, to determine whether it's a 2-digit year, or a 2-digit
  2679. time.
  2680. (yylex): Store number of digits of numeric tokens. Return '?' for
  2681. unknown identifiers, rather than (unused) tID.
  2682. 2000-01-16 Paul Eggert <[email protected]>
  2683. * lib/quotearg.c (quotearg_buffer_restyled):
  2684. Do not quote alert, backslash, formfeed,
  2685. and vertical tab unnecessarily in shell quoting style.
  2686. 2000-01-15 Paul Eggert <[email protected]>
  2687. * m4/c-bs-a.m4:
  2688. Change quoting to be compatible with future autoconf versions.
  2689. 2000-01-11 Paul Eggert <[email protected]>
  2690. * lib/exclude.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Remove unused macros.
  2691. 2000-01-07 Paul Eggert <[email protected]>
  2692. * NEWS, configure.in (AC_INIT_AUTOMAKE): Version 1.13.17.
  2693. Fix bug with fnmatch.h dependency, as follows:
  2694. * src/Makefile.am (OMIT_DEPENDENCIES): New macro.
  2695. * lib/Makefile.am (OMIT_DEPENDENCIES): New macro.
  2696. * src/common.h (apply_nonancestor_delayed_set_stat):
  2697. Renamed from apply_delayed_set_stat.
  2698. (apply_delayed_set_stat, decode_mode, chmod_error_details,
  2699. chown_error_details, close_warn, closedir_warn, mkdir_error,
  2700. read_error_details, read_fatal_details, read_warn_details,
  2701. seek_error_details, seek_warn_details, utime_error,
  2702. write_error_details, write_fatal_details): New decls.
  2703. Make diagnostic messages more regular.
  2704. * src/create.c (dump_file): Quote file names with colons if possible.
  2705. * src/compare.c (diff_archive): Likewise.
  2706. * src/extract.c (repair_delayed_set_stat, extract_archive): Likewise.
  2707. * src/incremen.c (get_directory_contents, gnu_restore): Likewise.
  2708. * src/mangle.c (extract_mangle): Likewise.
  2709. * src/misc.c (call_arg_error, call_arg_fatal, call_arg_warn):
  2710. Likewise.
  2711. * src/buffer.c (archive_write_error, flush_archive, close_archive,
  2712. new_volume, xclose):
  2713. Use error message functions to report errors consistently.
  2714. * src/compare.c (diff_sparse_files, diff_archive): Likewise.
  2715. * src/create.c (finish_sparse_file, dump_file): Likewise.
  2716. * src/extract.c (set_mode, set_stat, extract_sparse_file,
  2717. extract_archive): Likewise.
  2718. * src/list.c (list_archive): Likewise.
  2719. * src/update.c (append_file): Likewise.
  2720. * src/compare.c (diff_init, diff_sparse_files):
  2721. Use xalloc_die to report memory exhaustion.
  2722. * src/incremen.c (gnu_restore): Likewise.
  2723. * src/list.c (read_header): Likewise.
  2724. * src/mangle.c (extract_mangle): Likewise.
  2725. * src/misc.c (maybe_backup_file): Likewise.
  2726. * src/tar.c (decode_options): Likewise.
  2727. * src/compare.c (read_and_process, fill_in_sparse_array,
  2728. diff_sparse_files):
  2729. Use consistent terminology for unexpected-EOF message.
  2730. * src/extract.c (extract_sparse_file, extract_archive): Likewise.
  2731. * src/list.c (list_archive, read_header, skip_file,
  2732. skip_extended_headers): Likewise.
  2733. * src/buffer.c (archive_write_error): Add noreturn attribute to decl.
  2734. (xdup2): Regularize messages with rest of tar.
  2735. * src/buffer.c (flush_read): Don't read past EOF.
  2736. * src/extract.c (extr_init):
  2737. If we run out of memory, invoke apply_delayed_set_stat.
  2738. (prepare_to_extract): Don't complain if we can't remove ".".
  2739. (apply_delayed_set_stat): New function.
  2740. (apply_nonancestor_delayed_set_stat):
  2741. Renamed from apply_delayed_set_stat. All uses changed.
  2742. Don't remove head if it doesn't apply.
  2743. * src/create.c (find_new_file_size):
  2744. Return size instead of storing through pointer.
  2745. All callers changed.
  2746. (deal_with_sparse): Don't keep reading after read errors.
  2747. (finish_sparse_file): Just abort if there is an internal error.
  2748. (dump_file): Fix typo: stat_warn and stat_error were interchanged.
  2749. Don't restore access times on directories during incremental dumps
  2750. until after dealing with the directory.
  2751. If ignoring failed reads, count closedir, read, and unknown
  2752. file errors as warnings, not errors.
  2753. Fix buffer overrun problem when dumping sparse files.
  2754. * src/list.c (read_and):
  2755. Invoke apply_nonancestor_delayed_set_stat on file names
  2756. after handling them.
  2757. (decode_mode): Remove; moved to misc.c.
  2758. * src/misc.c (safer_rmdir): New function.
  2759. (remove_any_file): Use it to avoid problems with rmdir(".").
  2760. (maybe_backup_file): Regularize diagnostics.
  2761. (undo_backup_file): Likewise.
  2762. (decode_mode): Moved here from list.c.
  2763. (chmod_error_details, chown_error_details, close_fatal,
  2764. close_warn, closedir_warn, mkdir_error, read_error_details,
  2765. read_warn_details, read_fatal_details, seek_error_details,
  2766. seek_warn_details, utime_error, write_error_details,
  2767. write_fatal_details): New functions.
  2768. * src/delete.c (save_record): Remove static variable (now local).
  2769. (move_archive): Don't position before start of archive.
  2770. (write_record): Abort if count is zero at inopportune time.
  2771. Plug memory leak.
  2772. * src/tar.c (decode_options): --delete and -f - are now
  2773. incompatible, since we didn't have time to fix their bugs.
  2774. * tests/Makefile.am (TESTS): Remove delete02.sh.
  2775. * tests/ignfail.sh: Adjust to new quoting scheme again.
  2776. 2000-01-06 Paul Eggert <[email protected]>
  2777. * lib/getdate.y: Sync tm_diff with the GNU C Library.
  2778. (TM_YEAR_BASE): Renamed from TM_YEAR_ORIGIN. All uses changed.
  2779. (tm_diff): Renamed from difftm. All uses changed.
  2780. Replace body with that taken from GNU C Library 2.1.3pre1.
  2781. (get_date): Prefer tm_gmtoff to tm_diff if available.
  2782. 1999-12-29 "Melissa O'Neill" <[email protected]>
  2783. * tests/incremen.sh: Invoke stat on newly created file so that its
  2784. ctime is updated on Nextstep.
  2785. 1999-12-21 Machael Stone <[email protected]>
  2786. * lib/getdate.y (get_date):
  2787. Fix typo when checking for time_t overflow in time zone calculations.
  2788. 1999-12-13 Paul Eggert <[email protected]>
  2789. * NEWS, configure.in (AC_INIT_AUTOMAKE): Version 1.13.16.
  2790. * README-alpha: New file.
  2791. * README: New sections for gzip and bzip2, Solaris.
  2792. Remove mention of BACKLOG.
  2793. * configure.in (AC_C_BACKSLASH_A): Add.
  2794. (AC_CHECK_HEADERS): Add wchar.h.
  2795. (AC_CHECK_FUNCS): Add mbrtowc.
  2796. (AC_FUNC_CLOSEDIR_VOID): Add.
  2797. * tests/Makefile.am (TESTS): Add delete02.sh.
  2798. (POSTPONED_TESTS): Remove.
  2799. (EXTRA_DIST): Remove $(POSTPONED_TESTS).
  2800. * tests/preset.in:
  2801. Set LC_ALL rather than LANGUAGE, LANG, and LC_MESSAGES.
  2802. * tests/ignfail.sh (err): Adjust to new quoting scheme.
  2803. * tests/delete02.sh: Fix typo: need to list archive2, not archive.
  2804. * tests/extrac03.sh: Use -P option, so that .. doesn't get diagnosed.
  2805. * src/tar.c ("quotearg.h"): New include.
  2806. (usage): Now has __attribute__ ((noreturn)).
  2807. (confirm): Report errno if we can't open tty.
  2808. (confirm, decode_options):
  2809. Quote arbitrary strings in diagnostics.
  2810. (OVERWRITE_OPTION): New constant.
  2811. (long_options, usage, decode_options): New --overwrite option.
  2812. (decode_options): --keep-old-files, --overwrite, and --unlink-first
  2813. are now mutually exclusive.
  2814. Don't assume that gettext preserves errno.
  2815. (main): Set default quoting style to escape_quoting_style.
  2816. * src/update.c (<quotearg.h>): New include.
  2817. (append_file):
  2818. Don't assume that gettext preserves errno.
  2819. Quote arbitrary strings in diagnostics.
  2820. Check for close error.
  2821. * src/names.c (<quotearg.h>): New include.
  2822. (name_init, name_next, name_close, names_notfound,
  2823. collect_and_sort_names): Don't assume that gettext preserves
  2824. errno. Quote arbitrary strings in diagnostics.
  2825. (excluded_name): Fix typo that caused empty patterns to be
  2826. mishandled.
  2827. * src/misc.c (<quotearg.h>): New include.
  2828. (quote_copy_string): Quote only newline and backslash; the output is no
  2829. longer meant for humans, and is locale-independent.
  2830. (contains_dot_dot): New function.
  2831. (remove_any_file): Don't use lstat; just rmdir the file and then use
  2832. unlink if the rmdir fails because the file isn't a directory.
  2833. Check for readdir and closedir errors.
  2834. (maybe_backup_file): Report "stat" for stat errors.
  2835. (maybe_backup_file, chdir_do):
  2836. Quote arbitrary strings in diagnostics.
  2837. (maybe_backup_file, undo_last_backup):
  2838. Don't assume that gettext preserves errno.
  2839. (call_arg_error, call_arg_fatal, call_arg_warn,
  2840. chdir_fatal, close_error, closedir_error, exec_fatal, mkfifo_error,
  2841. mknod_error, open_error, open_fatal, open_warn, opendir_error,
  2842. opendir_warn, read_error, read_fatal, readdir_error, readdir_warn,
  2843. readlink_error, readlink_warn, seek_error, seek_warn, stat_error,
  2844. stat_warn, truncate_error, truncate_warn, unlink_error, waitpid_error,
  2845. write_error, write_fatal, xfork, xpipe, quote_n, quote): New functions.
  2846. * src/system.h (__attribute__): New macro.
  2847. (O_NDELAY, O_NONBLOCK, O_APPEND): Remove.
  2848. (S_ISDOOR): New macro.
  2849. (closedir): New macro, if CLOSEDIR_VOID.
  2850. * src/rmt.c, src/rtapelib.c (decode_oflag):
  2851. O_APPEND might not be defined.
  2852. * src/list.c: (read_and, list_archive):
  2853. Quote arbitrary strings in diagnostics.
  2854. (from_header): Use locale_quoting_style to quote diagnostics.
  2855. (print_header, print_for_mkdir): Quote with quotearg, not quote_copy_string.
  2856. * src/rmt.h (REM_BIAS): Increase from 128 to (1 << 30).
  2857. * src/Makefile.am: Use ## for copyright comments.
  2858. * src/extract.c (<quotearg.h>): New include.
  2859. (enum permstatus): New enum.
  2860. (struct delayed_set_stat): file_name is now at end of buffer, to avoid
  2861. two mallocs. New members file_name_len, invert_permissions, permstatus.
  2862. (extr_init): Remove hack that silently adjusted newdir_umask.
  2863. (set_mode, set_stat): New args invert_permissions, permstatus, typeflag.
  2864. Use these args to decide whether and how to set modes.
  2865. (set_mode, set_stat, prepare_to_extract, extract_sparse_file, extract_archive):
  2866. Don't assume that gettext preserves errno.
  2867. (set_stat): Remove arg symlink_flag; subsumed by typeflag.
  2868. (delay_set_stat, repair_delayed_set_stat): New functions.
  2869. (make_directories): Avoid mkdir where last part of path is "..".
  2870. Create a struct delayed_set_stat for each directory made.
  2871. (prepare_to_extract): Renamed from unlink_destination, and
  2872. return 0 immediately if to_stdout_option; all callers changed.
  2873. (maybe_recoverable): New parameter interdir_made.
  2874. Add support for --overwrite.
  2875. (extract_sparse_file, extract_archive):
  2876. Quote arbitrary strings in diagnostics.
  2877. (extract_archive): By default, warn about ".." in member names, and skip them.
  2878. Don't open files with O_NONBLOCK or O_APPEND.
  2879. Open with O_TRUNC only if --overwrite; otherwise, use O_EXCL to avoid
  2880. overwriting them. Pass only rwxrwxrwx permissions to `open' and `mkdir',
  2881. minus the current umask. Keep track of intermediate directories made,
  2882. to avoid looping when making x/../x when x doesn't exist; the
  2883. earlier code solved this in a different way that didn't fit well
  2884. into the new scheme. Don't extract permissions onto existing
  2885. directories unless --overwrite is given. Do not add -wx------
  2886. permissions to new directories permanently; just do it temporarily.
  2887. Remove no-longer-needed hack with MSDOS and directory time stamps.
  2888. (apply_delayed_set_stat): New argument specifies which directories to
  2889. fix statuses of. Do not wait until the end of extraction to fix
  2890. statuses; instead, fix a directory's status once we exit that directory.
  2891. This requires less memory and does the right thing in some cases
  2892. where the old method didn't.
  2893. (fatal_exit): New function.
  2894. * src/incremen.c (<quotearg.h>): New include.
  2895. (get_directory_contents, gnu_restore):
  2896. Check for readdir and closedir errors.
  2897. (get_directory_contents, read_directory_file, gnu_restore):
  2898. Quote arbitrary strings in diagnostics.
  2899. (get_directory_contents, read_directory_file, write_directory_file):
  2900. Don't assume that gettext preserves errno.
  2901. * src/create.c (<quotearg.h>): New include.
  2902. (start_header): Use `member names' to refer to archive member names, not
  2903. `archive names'. Warn about `..' in member names.
  2904. (finish_sparse_file, dump_file):
  2905. Quote arbitrary strings in diagnostics.
  2906. (finish_sparse_file, dump_file):
  2907. Don't assume that gettext preserves errno.
  2908. (dump_file): Don't use `access' to determine whether a directory is readable;
  2909. this isn't reliable if tar is setuid. Use `opendir' instead.
  2910. Check for readdir and closedir failures.
  2911. Don't dump sockets as if they were fifos; just warn and skip.
  2912. * src/delete.c (move_archive):
  2913. Don't report fatal error merely because sizes don't fit
  2914. into struct mtop values; fall back on lseek instead.
  2915. Say `Cannot' uniformly, instead of `Could not' sometimes and `Cannot' others.
  2916. Say `reposition' instead of `re-position'.
  2917. (delete_archive_members):
  2918. Set archive to STDOUT_FILENO before outputting trailing buffer.
  2919. * src/compare.c (<quotearg.h>): New include.
  2920. (diff_init): Use `Cannot' uniformly, instead of `Could not' sometimes
  2921. and `Cannot' others.
  2922. (report_difference, diff_archive):
  2923. Quote arbitrary strings in diagnostics.
  2924. (process_rawdata, diff_sparse_files, get_stat_data, diff_archive, seek_warn):
  2925. Don't assume that gettext preserves errno.
  2926. (diff_archive): Don't open regular files with O_NONBLOCK.
  2927. Preserve access times of files if --atime.
  2928. * src/common.h (FATAL_ERROR): Use new fatal_exit function to exit.
  2929. (FATAL_ERROR, USAGE): Don't return 0.
  2930. (enum old files): New enum.
  2931. (old_files_option): New variable, replacing keep_old_files_option and
  2932. unlink_first_option.
  2933. (apply_delayed_set_stat): Now takes char const * param.
  2934. (fatal_exit, contains_dot_dot, chdir_fatal, close_error,
  2935. closedir_error, exec_fatal, mkfifo_error, mknod_error, open_error,
  2936. open_fatal, open_warn, opendir_error, opendir_warn, read_error,
  2937. read_fatal, readdir_error, readdir_warn, readlink_error,
  2938. readlink_warn, seek_error, seek_warn, stat_error, stat_warn,
  2939. truncate_error, truncate_warn, unlink_error, waitpid_error,
  2940. write_error, write_fatal, xfork, xpipe, quote, quote_n): New decls.
  2941. * src/buffer.c:
  2942. (xclose, xdup2, child_open_for_compress, child_open_for_uncompress,
  2943. archive_write_error, archive_read_error, flush_archive, close_archive,
  2944. init_volume_number, new_volume):
  2945. Don't assume that gettext preserves errno.
  2946. (xdup2): Don't report errno if dup returns an unexpected nonnegative value.
  2947. (open_archive): Reject multivolume verify attempts a bit earlier.
  2948. Rename local variable `access', in case it's defined by system header.
  2949. (open_archive, backspace_output): Use `Cannot' uniformly, instead of
  2950. `Could not' sometimes and `Cannot' others.
  2951. (open_archive, flush_read, flush_archive, close_archive, new_volume):
  2952. Quote arbitrary strings in diagnostics.
  2953. (read_error): Set archive to STDOUT_FILENO temporarily when writing
  2954. archive buffer.
  2955. (init_volume_number): Check for input and output errors in volno_file.
  2956. (new_volume): Use new fatal_exit function to exit, and new xfork
  2957. function to fork.
  2958. * m4/Makefile.am (EXTRA_DIST): Add c-bs-a.m4.
  2959. * Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/c-bs-a.m4.
  2960. * doc/tar.texi: Add --overwrite.
  2961. --absolute-names rejects ".." in names.
  2962. * lib/quotearg.c: Add support for multibyte characters.
  2963. (ISGRAPH): Remove.
  2964. (ISPRINT): New macro.
  2965. (<wchar.h>): Include if HAVE_MBRTOWC && HAVE_WCHAR_H.
  2966. (isprint, mbrtowc, mbsinit, mbstate_t): New macros,
  2967. defined if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
  2968. (quotearg_buffer_restyled): New function, with most of the old
  2969. quotearg_buffer's contents.
  2970. Major rewrite to support multibyte characters.
  2971. (quotearg_buffer): Now just calls quotearg_buffer_restyled.
  2972. * m4/c-bs-a.m4: New file.
  2973. * lib/Makefile.am: Use ## for copyright notice.
  2974. * scripts/Makefile.am: Use ## on copyright notice.
  2975. * doc/Makefile.am:
  2976. ($(srcdir)/tar.info, tar.dvi): We now use texinfo 4.0.
  2977. 1999-12-05 Paul Eggert <[email protected]>
  2978. * doc/ChangeLog, lib/ChangeLog, scripts/ChangeLog,
  2979. src/ChangeLog, tests/ChangeLog: Remove these files.
  2980. * ChangeLog.1: New file, incorporating the above files, plus old
  2981. ChangeLog entries.
  2982. * Makefile.am (EXTRA_DIST): Add ChangeLog.1.
  2983. 1999-12-05 Dale Worley <[email protected]>
  2984. * src/compare.c (<utime.h>, struct utimbuf): Add.
  2985. (diff_archive): Restore access times if --atime.
  2986. * doc/tar.texi: Explain that --atime also preserves modification time.
  2987. 1999-12-04 Gerhard Poul <[email protected]>
  2988. * ABOUT-NLS: Update to latest version from ftp.gnu.org.
  2989. * BACKLOG, TODO: Remove.
  2990. * Makefile.am (all-local, BABYL, dist-zoo, id, ID): Remove.
  2991. * README: Bring up to date.
  2992. 1999-12-03 Paul Eggert <[email protected]>
  2993. * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.15.
  2994. * src/compare.c (diff_archive):
  2995. Do not set errno to EPIPE; we no longer use perror.
  2996. * src/create.c (dump_file):
  2997. If a parent directory said that a file should be there but it is
  2998. absent, diagnose it as being removed in the meantime.
  2999. Do not pass meaningless errno to ERROR when reporting that the
  3000. file changed as we read it.
  3001. Report that a file changed if its ctime changes; this is more
  3002. sensitive than mtime+size, and more accurate.
  3003. * src/incremen.c (enum children): New type.
  3004. (struct directory): Change old char allnew member to new enum children
  3005. children member.
  3006. All uses changed.
  3007. (get_directory_contents): When doing an incremental dump that does
  3008. not cross filesystem boundaries, dump the mount points, even though
  3009. they are in a different filesystem. This is for convenience when
  3010. restoring, and for consistency with non-incremental dumps.
  3011. This requires a 3-way flag for keeping track of which children we want,
  3012. so we use enum children rather than boolean.
  3013. * src/open3.c (modes): Remove.
  3014. (open3): Remove unportable assumptions about flag encodings.
  3015. Use `stat' instead of `access' for testing file existence,
  3016. to avoid problems with setuid programs.
  3017. * src/names.c (name_next): If file names are given both in the
  3018. command line (e.g. via -C) and in a file (via -T), do not
  3019. ignore the command-line names.
  3020. * m4/uintmax_t.m4: Backport to autoconf 2.13.
  3021. * doc/tar.texi: Clarify getdate authorship.
  3022. 1999-11-23 Paul Eggert <[email protected]>
  3023. * lib/Makefile.am (DISTCLEANFILES): New macro.
  3024. * configure.in (tar_fnmatch_hin):
  3025. Remove; it runs afoul of a bug in autoconf 2.13.
  3026. Instead, always link fnmatch.h to some file, even if it's a throwaway.
  3027. 1999-11-19 Paul Eggert <[email protected]>
  3028. * m4/largefile.m4: Update serial.
  3029. 1999-11-18 Paul Eggert <[email protected]>
  3030. * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a bug in
  3031. the QNX shell, which doesn't propagate exit status of failed
  3032. commands inside shell assignments.
  3033. 1999-11-07 Paul Eggert <[email protected]>
  3034. * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.14.
  3035. * configure.in (AC_PREREQ): Bump to 2.13.
  3036. (ALL_LINGUAS): Add pt_BR, ja.
  3037. (AC_FUNC_FNMATCH): Remove lib/funmatch.h before invoking, not after.
  3038. (tar_cv_path_RSH): Prefer a non-symlink rsh to a symlink one,
  3039. for AIX crossbuilds.
  3040. * doc/tar.texi: New node create options for --ignore-failed-read.
  3041. Remove unused version control symbols.
  3042. Modernize texinfo usage.
  3043. * src/tar.c (usage): Add examples.
  3044. * m4/fnmatch.m4 (AC_FUNC_FNMATCH):
  3045. Include fnmatch.h when testing fnmatch.
  3046. * src/common.h (collect_and_sort_names): New decl.
  3047. * src/list.c (from_header):
  3048. Handle 32-bit two's complement negative time stamps
  3049. even if the leading octal digit is 2 or 3.
  3050. * src/extract.c (set_stat): Remove duplicate code.
  3051. * src/create.c (to_chars): Remove trailing newline from warning.
  3052. (dump_file): Ignore doors.
  3053. (finish_header): Report block numbers with origin 0, not origin 1.
  3054. * src/rmt.c: Include getopt.h.
  3055. (long_opts): New constant.
  3056. (usage): New function.
  3057. (main): Implement --help and --version.
  3058. Output usage message if arguments are bad.
  3059. 1999-10-10 Paul Eggert <[email protected]>
  3060. * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.13.
  3061. * README: Remove --with-dmalloc.
  3062. Add --disable-largefile.
  3063. Remove old NeXT dirent problems, or AIX valloc problems.
  3064. Remove old union wait advice, and old %lld advice.
  3065. Remove advice about FreeBSD 2.1.7, ISC 4.1mu, Ultrix `make'.
  3066. * doc/tar.texi: Clarify documentation for portable file names.
  3067. * configure.in (AM_WITH_DMALLOC): Remove.
  3068. (ALL_LINGUAS): Add ja.
  3069. * src/tar.c (decode_options):
  3070. Invalid dates are now treated as (time_t) -1.
  3071. Redo version message to conform to GNU standards.
  3072. * src/create.c (dump_file):
  3073. Fix typo: last two args to dump_file were interchanged.
  3074. * src/update.c (update_archive): Likewise.
  3075. * src/common.h (tartime): New decl.
  3076. * src/list.c (tartime): Now extern.
  3077. (read_and): Invalid headers cause errors, not warnings.
  3078. 1999-10-03 Paul Eggert <[email protected]>
  3079. * lib/getdate.y (__attribute__):
  3080. Don't use if GCC claims to be before 2.8; this is
  3081. needed for OPENStep 4.2 cc. Also, don't use if strict ANSI.
  3082. 1999-09-25 Paul Eggert <[email protected]>
  3083. * lib/fnmatch.c, lib/fnmatch.hin: Merge changes from latest glibc.
  3084. * lib/getopt.c, lib/getopt.h, lib/getopt1.c: Likewise.
  3085. * tests/incremen.sh: Add yet another sleep.
  3086. 1999-09-24 Paul Eggert <[email protected]>
  3087. * NEWS: A read error now causes a nonzero exit status.
  3088. * src/create.c (to_chars): Fix base-256 output.
  3089. * src/buffer.c (write_error):
  3090. Read error is an error, not just a warning.
  3091. 1999-09-24 Paul Eggert <[email protected]>
  3092. * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.12.
  3093. * src/tar.c (<time.h>): Include.
  3094. (time): Declare if not defined.
  3095. (confirm): Don't read past EOF.
  3096. (long_options, usage): Add --no-same-owner, --no-same-permissions.
  3097. (main): Use clock_gettime if available.
  3098. * tests/Makefile.am (TESTS): Add incremen.sh
  3099. (INCLUDES): Add -I../lib, for fnmatch.h.
  3100. * src/update.c (update_archive):
  3101. Remove call to name_expand; had no effect.
  3102. Use chdir_do to change into directory.
  3103. Use deref_stat instead of stat.
  3104. Use add_avoided_name to mark names to be avoided; the old method of
  3105. setting a bit with the name caused all descendants of that name to
  3106. be avoided, in some circumstances.
  3107. * tests/incremen.sh: Remove unnecessary sleeps.
  3108. * src/names.c (name_next): Go back to using plain chdir.
  3109. (name_gather): Use chdir_arg to keep track of arguments to chdir.
  3110. (addname): Likewise.
  3111. (name_match): Use chdir_do to act on chdir args.
  3112. (merge_sort): Moved here from incremen.c.
  3113. (compare_names, add_hierarchy_to_namelist, collect_and_sort_names):
  3114. Likewise.
  3115. (name_expand): Remove.
  3116. (name_from_list): Skip fake names.
  3117. Use chdir_do to act on chdir args.
  3118. (struct avoided_name): New struct.
  3119. (avoided_names): New var.
  3120. (add_avoided_name, is_avoided_name): New functions.
  3121. * src/system.h (stat, lstat): Define in terms of statx on
  3122. STX_HIDDEN && !_LARGE_FILES /* AIX */ hosts.
  3123. (UCHAR_MAX): New macro.
  3124. (TYPE_MAXIMUM): Cast to arg type, for types narrow than int.
  3125. * m4/largefile.m4: Work around GCC 2.95.1 bug with HP-UX 10.20.
  3126. * src/incremen.c (<time.h>): Remove include; no longer used.
  3127. (time): Remove decl.
  3128. (time_now): Remove.
  3129. (get_directory_contents): Use deref_stat.
  3130. Consider a subdirectory to be all new only if
  3131. listed_incremental_option or if it its timestamp is newer than the
  3132. cutoff.
  3133. (add_hierarchy_to_namelist, merge_sort): Move to names.c.
  3134. (read_directory_file): Now extern. Do not set time_now.
  3135. (write_directory_file): Renamed from write_dir_file.
  3136. Use start_time instead of time_now.
  3137. (compare_names, collect_and_sort_names): Move to names.c.
  3138. * src/mangle.c (<time.h>): Remove; not used.
  3139. (time): Do not declare.
  3140. * src/misc.c (chdir_from_initial_wd): Remove.
  3141. (deref_stat): New function.
  3142. (struct wd): New struct.
  3143. (wd, wds, wd_alloc): New variables.
  3144. (chdir_arg, chdir_do): New function.
  3145. * src/compare.c (get_stat_data): Use deref_stat.
  3146. * src/common.h (name_expand): Remove.
  3147. * src/list.c (time): Declare if not defined.
  3148. (base_64_digits): Moved here from create.c.
  3149. (base64_map): Use UCHAR_MAX for size, not less-clear (unsigned char)
  3150. -1.
  3151. (read_and): Don't get time from header unless we need it now;
  3152. as getting time can cause duplicate diagnostics if bogus.
  3153. Remove "Hmm, " from diagnostic.
  3154. Use "Skipping to next header" uniformly.
  3155. (from_header): Renamed from from_chars. All uses changed.
  3156. Allow different forms for unportable 2's complement numbers.
  3157. Don't check for extended forms when parsing checksums.
  3158. Parse base-256 output.
  3159. (gid_from_header): Renamed from gid_from_chars. All uses changed.
  3160. (major_from_header): Renamed from major_from_chars. All uses changed.
  3161. (minor_from_header): Renamed from minor_from_chars. All uses changed.
  3162. (mode_from_header): Renamed from mode_from_chars. All uses changed.
  3163. (off_from_header): Renamed from off_from_chars. All uses changed.
  3164. (size_from_header): Renamed from size_from_chars. All uses changed.
  3165. (time_from_header): Renamed from time_from_chars. All uses changed.
  3166. Warn about future timestamps.
  3167. (uid_from_header): Renamed from uid_from_chars. All uses changed.
  3168. (uintmax_from_header): Renamed from uintmax_from_chars.
  3169. All uses changed.
  3170. (tartime): New function, incorporating isotime.
  3171. (isotime): Delete.
  3172. (print_header): Use tartime.
  3173. * src/create.c (to_chars): Fix typo in decl.
  3174. Don't assign through char const *.
  3175. Rename name_expand back to collect_and_sort_names.
  3176. * src/extract.c (<time.h>): No need to include.
  3177. (time): No need to declare.
  3178. (now): Remove variable.
  3179. (extr_init): Don't initialize `now'.
  3180. Increment same_permissions_option and same_owner_option if we_are_root
  3181. is nonzero; this supports the new --no-same-owner option.
  3182. (set_stat): Use start_time instead of `now'.
  3183. * src/create.c (struct link): Remove unused linkcount member.
  3184. (base_64_digits): Move to list.c.
  3185. (base_8_digits): Remove.
  3186. (to_octal): New function, with some of old contents of to_base.
  3187. (to_base): Remove.
  3188. (to_base256): New function.
  3189. (to_chars): Use base 256, not base 64, for huge values.
  3190. (mode_to_chars): Don't use two's complement in GNU format or POSIX
  3191. format.
  3192. (dump_file): Interchange last two arguments. If TOP_LEVEL is negative,
  3193. it means we have an incremental dump where we don't know whether this
  3194. is a top-level call.
  3195. Use deref_stat instead of statx / stat / lstat.
  3196. Cast result of alloca.
  3197. Check for dates if 0 < top_level, not if listed_incremental_option.
  3198. Move multiple-link check after directory check.
  3199. Do not dump avoided names.
  3200. Dump hard links to symbolic names as links, not as separate
  3201. symbolic links.
  3202. start_header cannot return a null pointer, so don't test for it.
  3203. Likewise for find_next_block.
  3204. * src/buffer.c, src/common.h (<human.h>): Include.
  3205. (read_error): Read error is an error, not just a warning.
  3206. (print_total_written): Also print human-readable byte count, and
  3207. bytes/s.
  3208. (open_archive, flush_write): Use start_time, not current time.
  3209. (flush_read): Report about garbage bytes ignored at end of archive,
  3210. but act on non-garbage bytes (instead of ignoring them).
  3211. (new_volume): Use WARN for warnings.
  3212. * doc/Makefile.am:
  3213. ($(srcdir)/tar.info): Add -I$(srcdir) so that subdir builds work.
  3214. * Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/fnmatch.m4.
  3215. * m4/Makefile.am (EXTRA_DIST): Add fnmatch.m4.
  3216. * lib/Makefile.am (noinst_HEADERS):
  3217. Rename fnmatch.h to fnmatch.hin; add human.h.
  3218. (libtar_a_SOURCES): Add human.c, xstrtoul.c.
  3219. (INCLUDES): Remove -I.. -I$(srcdir) -- automake adds this for us.
  3220. * src/Makefile.am (rmt_LDADD, tar_LDADD): New macros.
  3221. * lib/fnmatch.c (strchrnul):
  3222. Define to __strchrnul if _LIBC, to our own replacement otherwise.
  3223. Do not define if !_LIBC and if it already exists.
  3224. (internal_fnmatch): Use it.
  3225. * configure.in (tar_LDADD): New variable, used only when linking tar.
  3226. (rmt_LDADD): Similarly, for rmt.
  3227. (AC_FUNC_FNMATCH): Link fnnmatch.hin to fnmatch.h if we're using our
  3228. fnmatch.c; otherwise, use the system fnmatch.h.
  3229. * doc/tar.texi: Add --no-same-owner, --no-same-permissions.
  3230. Modernize sample backup script.
  3231. * THANKS: Martin Goik's email address has changed.
  3232. * m4/fnmatch.m4: New file.
  3233. 1999-09-03 Paul Eggert <[email protected]>
  3234. * lib/lchown.h (ENOSYS): Don't use ENOMSG; it's not in NeXTStep3.3.
  3235. Use EINVAL instead.
  3236. 1999-08-29 Paul Eggert <[email protected]>
  3237. * lib/getdate.y (get_date):
  3238. Rename outermost local `probe' to `quarter'.
  3239. Rename latter local `tm' to probe_tm.
  3240. From: Jim Meyering <[email protected]>
  3241. Message-ID: <[email protected]>
  3242. 1999-08-28 Paul Eggert <[email protected]>
  3243. * lib/getdate.y (PC): New macro; use it when possible.
  3244. (number): Handle `Nov 11 1996' example correctly.
  3245. See Risks Digest 20.55 (1999-08-27)
  3246. http://catless.ncl.ac.uk/Risks/20.55.html#subj18
  3247. 1999-08-23 Paul Eggert <[email protected]>
  3248. * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.11.
  3249. Remove minor cases of lint from many source files: this includes
  3250. unnecessary casts, uses of NULL, etc.
  3251. * configure.in (AC_PROG_YACC): Remove.
  3252. (YACC): Always use bison.
  3253. (AC_STRUCT_TIMEZONE): Add.
  3254. (AC_REPLACE_FUNCS): Add strcasecmp, strncasecmp.
  3255. * doc/tar.texi: --bzip2 is now -I. Remove obsolete time zone info.
  3256. Fix spelling.
  3257. * lib/Makefile.am (EXTRA_DIST): Add strcasecmp.c, strncasecmp.c.
  3258. ($(srcdir)/getdate.c): Rename y.tab.c to getdate.c only if successful.
  3259. * lib/strcasecmp.c, lib/strncasecmp.c: New files.
  3260. * src/common.h (merge_sort): Remove decl; no longer exported.
  3261. * src/system.h (voidstar): Remove.
  3262. (memcpy, memcmp): Cast args.
  3263. ("xalloc.h"): Add include.
  3264. (xmalloc, xrealloc): Remove decl.
  3265. * src/mangle.c (time): Do not declare if defined.
  3266. (first_mangle, mangled_num): Remove.
  3267. * src/list.c (from_chars): Report out-of-range values more precisely.
  3268. (off_from_chars): Do not allow negative offsets.
  3269. (uid_from_chars): Allow negative uids.
  3270. * src/create.c (linklist): Now static.
  3271. (to_chars): Fix wording of message to match from_chars.
  3272. * src/misc.c (merge_sort): Move to incremen.c.
  3273. * src/incremen.c (merge_sort): Move here from misc.c; now static.
  3274. It's too painful to make it both generic and portable.
  3275. (read_directory_file): "timestamp" -> "time stamp" in messages.
  3276. * src/tar.c (long_options, usage, main): -y is now -I (for --bzip).
  3277. (usage): Fix misspelling.
  3278. (OPTION_STRING): -y is now -I.
  3279. (decode_options): Use -1, not EOF, for getopt_long result.
  3280. Fix typo when invoking xstrtoumax: look for LONGINT_OK, not LONG_MAX.
  3281. Handle operands after any "--" argument.
  3282. (main): Report any output errors.
  3283. * src/rmt.c (main): status is ssize_t, not long.
  3284. * src/names.c (name_gather): Handle trailing -C option correctly.
  3285. (addname): use memcpy, not strncpy, to copy a string of known length.
  3286. (name_match): Handle trailing -C option correctly.
  3287. Propagate -C option to following files.
  3288. (name_match, name_scan): Remove redundant matching code.
  3289. * src/buffer.c (open_archive): Use American spelling in diagnostic.
  3290. * lib/getdate.y: Major rewrite. Add copyright notice.
  3291. (<stdio.h>): Include only if testing.
  3292. (ISUPPER): Remove.
  3293. (ISLOWER): New macro.
  3294. (<string.h>): Include if HAVE_STRING_H, not USG.
  3295. (bcopy): Remove.
  3296. (yymaxdepth, ..., yycheck): Don't bother to redefine, since we assume
  3297. bison.
  3298. (EPOCH_YEAR): Renamed from EPOCH.
  3299. (table): Renamed from TABLE.
  3300. (meridian): Now an anonymous enum.
  3301. (struct parser_control): New type.
  3302. (YYLEX_PARAM, YYPARSE_PARAM, YYSTYPE): New macros.
  3303. (yyInput, ..., yyRelYear): Migrated into struct parser_control.
  3304. (%pure_parser): Added, so that the parser is pure.
  3305. (%union): Removed; the type is now just plain int.
  3306. All %type directives removed.
  3307. (tLOCAL_ZONE): New %token.
  3308. (month_day_table): Renamed from MonthDayTable.
  3309. (gmtime, localtime, mktime, time): Declare only if not defined.
  3310. (meridian_table): New table.
  3311. (dst_table): New table.
  3312. (units_table): renamed from UnitsTable.
  3313. (relative_time_table): Renamed from OtherTable.
  3314. (time_zone_table): Renamed from TimezoneTable. Modernized.
  3315. (military_table): Renamed from MilitaryTable.
  3316. (to_hour): Renamed from ToHour.
  3317. (to_year): Renamed from ToYear.
  3318. (lookup_zone): New function.
  3319. (LookupWord): Renamed from lookup_word. Use lookup_zone for time
  3320. zones.
  3321. (yylex): Now reentrant. All callers changed.
  3322. (get_date): Add support for local time zone abbreviations.
  3323. Make it reentrant.
  3324. 1999-08-20 Paul Eggert <[email protected]>
  3325. * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.10.
  3326. * src/create.c (to_chars): Generate GNU base-64 representation
  3327. if we are generating an old or new GNU format tar file for a
  3328. number that can't be represented with the POSIX format.
  3329. * configure.in (AC_CHECK_FUNCS): Add fchdir.
  3330. (AM_FUNC_GETLINE): Add.
  3331. (LIBOBJS): Add getline.o to workaround comment.
  3332. * Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/getline.m4.
  3333. * m4/Makefile.am (EXTRA_DIST): Add getline.m4.
  3334. * lib/Makefile.am (noinst_HEADERS): Add getline.h, save-cwd.h.
  3335. (libtar_a_SOURCES): Add save-cwd.c, xgetcwd.c.
  3336. * lib/getline.c, lib/getline.h, lib/save-cwd.c,
  3337. lib/save-cwd.h, m4/getline.m4: New files.
  3338. * src/misc.c (<save-cwd.h>): Include.
  3339. (chdir_from_initial_wd): New function.
  3340. * src/names.c (name_next): Use chdir_from_initial_wd, not chdir.
  3341. (name_gather): Handle `-C x -C y' correctly.
  3342. Do not rely on addname to handle -C.
  3343. (addname): New CHANGE_DIR parameter. All callers changed.
  3344. Remove ugly calls to getcwd; no longer needed.
  3345. (name_match, name_from_list): Use chdir_from_initial_wd, not chdir.
  3346. * src/incremen.c (listed_incremental_stream): New var.
  3347. (read_directory_file): Remove arbitrary limits on file name length.
  3348. Do not attempt to get the working directory; we can bypass this
  3349. on fchdir hosts. Open the listed_incremental_option file for both
  3350. read and write instead of opening it twice. Check for I/O errors
  3351. when doing I/O to this file. Check for invalid data in the file,
  3352. and report line numbers of invalid data.
  3353. (write_dir_file): Likewise.
  3354. (collect_and_sort_names): Use chdir_from_initial_wd, not chdir.
  3355. Do not invoke write_dir_file; that's our caller's responsibility.
  3356. * src/list.c (max): New macro.
  3357. (isotime): Now takes time_t, not time_t *. Report the decimal values
  3358. of times that can't be broken down.
  3359. (print_header): Don't assume that major and minor device numbers can
  3360. fit into uintmax_t.
  3361. * src/common.h (struct name): change_dir is now char const *.
  3362. (write_directory_file): Remove unused decl.
  3363. (STRINGIFY_BIGINT): Assume b always points to UINTMAX_STRSIZE_BOUND
  3364. chars; the old `sizeof (b)' broke when b was a pointer not an array.
  3365. (chdir_from_initial_wd): New decl.
  3366. (addname): New 2nd arg.
  3367. * THANKS: Torsten Lull -> Catrin Urbanneck
  3368. 1999-08-18 Paul Eggert <[email protected]>
  3369. * configure.in (HAVE_GETHOSTENT, HAVE_SETSOCKOPT):
  3370. Don't depend on ac_cv_func variables.
  3371. From Albert Chin-A-Young <[email protected]>.
  3372. 1999-08-18 Paul Eggert <[email protected]>
  3373. * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.9
  3374. * m4/signedchar.m4: New file.
  3375. * configure.in (pe_AC_TYPE_SIGNED_CHAR): Add.
  3376. * src/system.h (signed_char): New macro.
  3377. * Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/signedchar.m4.
  3378. * m4/Makefile.am (EXTRA_DIST): Add signedchar.m4.
  3379. * src/create.c (write_eot): Write at least two zero blocks.
  3380. * src/extract.c (extract_archive): Fix sparse array bug:
  3381. we did not find end of array correctly.
  3382. * src/compare.c: (fill_in_sparse_array, diff_sparse_files):
  3383. Don't assume find_next_block yields nonnull.
  3384. * src/extract.c (extract_sparse_file, extract_archive): Likewise.
  3385. * src/list.c (skip_extended_headers): Likewise.
  3386. * src/list.c (read_and, list_archive): Simplify code.
  3387. (read_header): Fix computation of signed checksums on machines where
  3388. char is unsigned.
  3389. Do not consider a block to be zero unless all its bytes are zero,
  3390. even the checksum bytes. Do not attempt to parse the checksum of
  3391. a zero block. Fix memory leak with long names and links.
  3392. (from_chars): Accommodate a buggy tar that outputs leading NUL
  3393. if the previous field overflows.
  3394. * src/misc.c (quote_copy_string): Generate \177 for '\177', not
  3395. \?, for portability to non-ASCII hosts.
  3396. 1999-08-16 Paul Eggert <[email protected]>
  3397. * configure.in (AM_INIT_AUTOMAKE), NEWS: Version 1.13.8.
  3398. * src/extract.c (make_directories): Do not chown intermediate
  3399. directories, even if we are root.
  3400. * src/list.c (read_header): Fix bugs when interpreting
  3401. POSIX-compliant headers that do not contain null bytes in the
  3402. header or link names.
  3403. 1999-08-14 Paul Eggert <[email protected]>
  3404. * configure.in (AM_INIT_AUTOMAKE), NEWS: Version 1.13.7.
  3405. * configure.in (AC_CHECK_HEADERS): Remove sys/wait.h.
  3406. (AC_HEADER_SYS_WAIT): Add.
  3407. (AC_REPLACE_FUNCS): Add waitpid.
  3408. (tar_cv_header_union_wait, HAVE_UNION_WAIT): Remove.
  3409. * lib/waitpid.c: New file.
  3410. * lib/Makefile.am (EXTRA_DIST): Add waitpid.c.
  3411. * src/system.h (WCOREDUMP): Remove; no longer used.
  3412. (WIFSTOPPED): Likewise.
  3413. (WEXITSTATUS, WIFSIGNALED): Default to Solaris 7 versions.
  3414. * src/buffer.c (child_open_for_compress): Undo previous change.
  3415. (close_archive): Use waitpid, POSIX-style, instead of old BSD style.
  3416. (new_volume): Likewise.
  3417. * src/buffer.c, src/extract.c, src/incremen.c (time):
  3418. Don't declare if defined.
  3419. * src/extract.c (extr_init): Remove unneeded cast around 0 arg to time.
  3420. * src/incremen.c (read_directory_file):
  3421. Invoke `time' the same way everyone else does.
  3422. Check validity of --listed-incremental file contents a bit better.
  3423. Do not worry about --after-date-option; tar.c now checks this.
  3424. * src/list.c (isotime): Report ??? if localtime returns null.
  3425. Don't assume years fit into four digits.
  3426. Don't append trailing newline.
  3427. (print_header): Report ??? if localtime returns null;
  3428. Don't assume years fit into four digits.
  3429. * src/compare.c (diff_archive): Do not fall back on absolute name
  3430. when --absolute-names is not specified.
  3431. * src/create.c (start_header):
  3432. Include text of ignored filesystem prefix in warning.
  3433. (create_archive): Check for excluded names when doing incremental
  3434. pass through directory.
  3435. (dump_file): Do not dump old files explicitly given on command line
  3436. when using --listed-incremental. Do not strip ./ prefix from names.
  3437. * src/tar.c: -g now implies after_date_option = 1.
  3438. -g and -N are now incompatible options.
  3439. * doc/tar.texi: Explain --exclude better. Don't strip leading `./'.
  3440. 1999-08-11 Jeff Dairiki <[email protected]>
  3441. * src/list.c (read_header): Don't parse OLDGNU_FORMAT
  3442. incremental headers as POSIX prefixes.
  3443. 1999-08-11 Paul Eggert <[email protected]>
  3444. * NEWS, configure.in: Version 1.13.6.
  3445. * configure.in (ALL_LINGUAS): Add pt_BR.
  3446. * po/pt_BR.po: New file.
  3447. * doc/Makefile.am ($(srcdir)/tar.info, $(srcdir)/header.texi):
  3448. Renamed from tar.info and header.texi; adjust actions so that
  3449. they work in other directories.
  3450. * doc/tar.texi: Add -y and --bzip2.
  3451. Patterns containing / now exclude only file names whose prefix match.
  3452. * lib/exclude.h (excluded_filename): New option parameter.
  3453. (add_exclude_file): New ADD_FUNC parameter.
  3454. (excluded_pathname): Remove decl.
  3455. * lib/exclude.c (_GNU_SOURCE):
  3456. Remove; no longer needed since we don't use FNM_ macros.
  3457. (excluded_filename): Renamed from excluded_filename_opts.
  3458. (excluded_filename, excluded_pathname): Remove.
  3459. (add_exclude_file): New ADD_FUNC parameter.
  3460. * po/POTFILES.in: Add lib/quotearg.c.
  3461. * src/buffer.c (_GNU_SOURCE): Define.
  3462. (<fnmatch.h>): Include unconditionally.
  3463. (child_open_for_compress): Dup after closing, to avoid possible file
  3464. descriptor exhaustion.
  3465. (flush_write): Use FILESYSTEM_PREFIX_LEN instead of MSDOS ifdef.
  3466. (flush_read): Likewise.
  3467. * src/common.h (LG_8, LG_64): New macros.
  3468. (excluded_with_slash, excluded_without_slash): New vars.
  3469. (excluded): Remove.
  3470. (base_64_digits): New decl.
  3471. (gid_to_chars, major_to_chars, minor_to_chars, mode_to_chars,
  3472. off_to_chars, size_to_chars, time_to_chars, uid_to_chars,
  3473. uintmax_to_chars,
  3474. GID_TO_CHARS, MAJOR_TO_CHARS, MINOR_TO_CHARS, MODE_TO_CHARS,
  3475. OFF_TO_CHARS, SIZE_TO_CHARS, TIME_TO_CHARS, UID_TO_CHARS,
  3476. UINTMAX_TO_CHARS):
  3477. Renamed from gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct,
  3478. off_to_oct, size_to_oct, time_to_oct, uid_to_oct, uintmax_to_oct,
  3479. GID_TO_OCT, MAJOR_TO_OCT, MINOR_TO_OCT, MODE_TO_OCT, OFF_TO_OCT,
  3480. SIZE_TO_OCT, TIME_TO_OCT, UID_TO_OCT, UINTMAX_TO_OCT,
  3481. respectively. All definitions and uses changed.
  3482. (excluded_name): New decl.
  3483. * src/compare.c (diff_archive):
  3484. Open files with O_NONBLOCK instead of O_NDELAY.
  3485. * src/create.c (base_64_digits): New constant.
  3486. (base_8_digits): New macro.
  3487. (MAX_VAL_WITH_DIGITS): New macro.
  3488. (to_base): First half of old to_oct. Support base 64 too.
  3489. (to_chars): Other half of old to_oct, for 64-bit support.
  3490. (GID_NOBODY, UID_NOBODY): Don't define if the headers don't.
  3491. (gid_substitute, uid_substitute): Look up names dynamically if
  3492. GID_NOBODY and UID_NOBODY aren't defined; use -2 if all else fails.
  3493. (mode_to_chars): Renamed from mode_to_oct.
  3494. Support negative values in all the _to_chars functions.
  3495. (start_header): Use FILESYSTEM_PREFIX_LEN instead of MSDOS ifdef.
  3496. Abort if archive format is DEFAULT_FORMAT when it shouldn't be.
  3497. (dump_file): Inspect entire pathname, not just new file name
  3498. component, when deciding whether to exclude it.
  3499. * src/extract.c (extract_archive):
  3500. Open files with O_NONBLOCK instead of O_NDELAY.
  3501. * src/incremen.c (get_directory_contents):
  3502. Inspect entire pathname, not just new file name
  3503. component, when deciding whether to exclude it.
  3504. * src/list.c (<fnmatch.h>): Do not include.
  3505. (from_chars): Renamed from from_oct. New parameter specifying
  3506. the negative of the minimum allowed value. Support negative
  3507. and base-64 values.
  3508. (base64_map): New var.
  3509. (base64_init): New function.
  3510. (print_header): Output numeric uids and gids if numeric_owner_option.
  3511. * src/misc.c (quote_copy_string): Use LG_8 instead of constants.
  3512. * src/names.c (_GNU_SOURCE): Define.
  3513. (<fnmatch.h>): Include unconditionally.
  3514. (excluded_name): New function, taking over duties of excluded_pathname.
  3515. All uses changed.
  3516. * src/rmt.c (decode_oflag): New function.
  3517. (main): Use it to support symbolic open flags.
  3518. * src/rtapelib.c (encode_oflag): New function.
  3519. (rmt_open__): Do not allow newlines in the path.
  3520. Propagate errno correctly.
  3521. Decode symbolic open flags, if present.
  3522. * src/system.h (FILESYSTEM_PREFIX_LEN, ISSLASH, O_ACCMODE, O_NONBLOCK):
  3523. New macros.
  3524. * src/tar.c: (long_options, usage, OPTION_STRING, decode_options):
  3525. New -y or --bzip2 option.
  3526. (add_filtered_exclude): New function.
  3527. (decode_options): Put excluded patterns with / into
  3528. excluded_with_slash, and without / into excluded_without_slash.
  3529. Compare newer_mtime_option to its new initial value
  3530. TYPE_MINIMUM (time_t) when deciding whether more than one
  3531. threshold date was specified.
  3532. 1999-07-20 Paul Eggert <[email protected]>
  3533. * NEWS, configure.in: Version 1.13.5.
  3534. * src/common.h (FATAL_ERROR): Invoke apply_delayed_set_stat
  3535. before exiting.
  3536. * src/buffer.c (new_volume): Likewise.
  3537. * src/incremen.c (read_directory_file): Likewise.
  3538. * src/tar.c (decode_options):
  3539. ERROR ((TAREXIT_FAILURE, ... -> FATAL_ERROR ((0,
  3540. for consistency.
  3541. * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.4.
  3542. * configure.in (AC_CHECK_FUNCS): Add lstat, readlink, symlink.
  3543. * src/system.h (lstat): Define only if !HAVE_LSTAT && !defined lstat.
  3544. (S_ISMPB, S_ISMPC, S_ISNWK): Remove unused macros.
  3545. (S_ISBLK, S_ISCHR, S_ISCTG, S_ISFIFO, S_ISLNK, S_ISSOCK):
  3546. Define to 0 if the corresponding S_IF* macro is not defined.
  3547. (mkfifo): Do not define if already defined, or if S_IFIFO
  3548. is not defined.
  3549. * src/compare.c (diff_archive): Use HAVE_READLINK, not
  3550. S_ISLNK, to determine whether to invoke readlink.
  3551. * src/create.c (dump_file): Likewise.
  3552. * src/extract.c (set_mode):
  3553. Do not chmod unless we are root or the -p option was given;
  3554. this matches historical practice.
  3555. (unlink_destination): New function, which checks for unlink failures.
  3556. (maybe_recoverable): Stay quiet if -U.
  3557. (extract_archive): Use O_EXCL if unlink_first_option.
  3558. Report unlink failures.
  3559. Use HAVE_SYMLINK, not S_ISLNK, to determine whether symlink exists.
  3560. Use HAVE_MKFIFO || defined mkfifo, not S_ISFIFO, to determine whether
  3561. mkfifo exists.
  3562. * src/incremen.c (get_directory_contents): Depend on
  3563. S_ISHIDDEN, not AIX, to determine whether to invoke S_ISHIDDEN.
  3564. * src/list.c: Remove S_IS* ifdefs.
  3565. * src/misc.c (maybe_backup_file): Likewise.
  3566. * src/misc.c (maybe_backup_file):
  3567. "Virtual memory exhausted" -> "Memory exhausted",
  3568. to conform to the other places this message is issued.
  3569. * src/mangle.c (extract_mangle):
  3570. Replace #ifdef S_ISLNK with #ifdef HAVE_SYMLINK.
  3571. * src/rtapelib.c (rmt_open__):
  3572. Remove typo that caused us to omit the first char
  3573. of the basename.
  3574. 1999-07-16 Paul Eggert <[email protected]>
  3575. * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.13.3.
  3576. * doc/tar.texi: A path name is excluded if any of its file name
  3577. components matches an excluded pattern, even if the path name was
  3578. specified on the command line.
  3579. * src/create.c (create_archive): Likewise.
  3580. * src/list.c (read_and): Likewise.
  3581. * src/update.c (update_archive): Likewise.
  3582. * lib/exclude.h (excluded_pathname): New decl.
  3583. * lib/exclude.c (_GNU_SOURCE): Define.
  3584. (FILESYSTEM_PREFIX_LEN, ISSLASH): New macros.
  3585. (excluded_filename_opts): New function.
  3586. (excluded_pathname): New function.
  3587. * lib/Makefile.am (EXTRA_DIST):
  3588. xstrtol.c moved here from libtar_a_SOURCES.
  3589. (libtar_a_SOURCES): Move xstrtol.c to EXTRA_DIST.
  3590. Remove xstrtoul.c; no longer needed.
  3591. * lib/xstrtol.c: Remove.
  3592. * src/tar.c (decode_options):
  3593. Set newer_time_option to TYPE_MINIMUM, so that
  3594. negative timestamps are handled correctly.
  3595. Replace invocations of xstrtol and xstrtoul with xstrtoumax, for
  3596. uniformity (and so that we don't need to have the other fns).
  3597. (main): Remove call to init_total_written; no longer needed.
  3598. * configure.in (AC_CHECK_SIZEOF): Remove no-longer-needed
  3599. checks for unsigned long and long long.
  3600. * src/arith.c: Remove.
  3601. * src/Makefile.am (tar_SOURCES): Remove arith.c.
  3602. * po/POTFILES.in: Remove src/arith.c.
  3603. * src/arith.h: Use double, to simplify configuration gotchas.
  3604. (tarlong): Now double.
  3605. (TARLONG_FORMAT): New macro.
  3606. (BITS_PER_BYTE, BITS_PER_TARLONG, SUPERDIGIT, BITS_PER_SUPERDIGIT,
  3607. LONGS_PER_TARLONG, SIZEOF_TARLONG, struct tarlong,
  3608. zerop_tarlong_helper, lessp_tarlong_helper, clear_tarlong_helper,
  3609. add_to_tarlong_helper, mult_tarlong_helper, print_tarlong_helper,
  3610. zerop_tarlong, lessp_tarlong, clear_tarlong, add_to_tarlong,
  3611. mult_tarlong, print_tarlong): Remove. All callers replaced with
  3612. arithmetic ops.
  3613. * src/common.h (init_total_written): Remove decl.
  3614. * src/buffer.c (total_written):
  3615. Remove; replaced with prev_written + bytes_written.
  3616. (prev_written): New var.
  3617. (init_total_written): Remove.
  3618. (print_total_written): Use TARLONG_FORMAT instead of print_tarlong.
  3619. * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG):
  3620. Make sure that we can shift, multiply
  3621. and divide unsigned long long values; Ultrix cc can't do it.
  3622. * lib/modechange.c (mode_compile): Use uintmax_t, not unsigned long.
  3623. Check for any unknown bits, not just unknown bits left of the leftmost
  3624. known bit.
  3625. * lib/quotearg.c (quotearg_buffer):
  3626. Don't quote spaces if C quoting style.
  3627. * src/list.c (from_oct):
  3628. Use C quoting style for error; omit trailing NULs.
  3629. 1999-07-14 Paul Eggert <[email protected]>
  3630. * configure.in (AM_INIT_AUTOMAKE), NEWS: Version 1.13.2.
  3631. * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
  3632. <inttypes.h> defines strtoumax as a macro (and not as a function).
  3633. HP-UX 10.20 does this.
  3634. * src/tar.c (usage): [email protected] -> [email protected]
  3635. * PORTS, README, TODO, doc/tar.texi: Likewise.
  3636. 1999-07-12 Paul Eggert <[email protected]>
  3637. * configure.in (AM_INIT_AUTOMAKE): Version 1.13.1.
  3638. (LIBOBJS): Add mktime.o to automake 1.4 bug workaround.
  3639. * src/list.c (decode_header):
  3640. Do not assume that S_IFBLK and S_IFCHR are defined.
  3641. * src/create.c (start_header): Do not assume S_IFMT is defined.
  3642. (dump_file): Remove unnecessary check for screwy apollo lossage.
  3643. Do not assume S_IFBLK and S_IFCHR are defined.
  3644. * src/extract.c (extract_archive):
  3645. Test whether S_IFCHR and S_IFBLK are nonzero,
  3646. not whether they are defined, for consistency with other tests.
  3647. * src/buffer.c (is_regular_file):
  3648. Don't succeed on files that we can't access due to
  3649. permissions problems.
  3650. (open_archive): Fix wording on fatal error message.
  3651. Don't bother to stat /dev/null if the archive is not a character
  3652. special device.
  3653. * src/compare.c (process_rawdata, diff_sparse_files, diff_archive):
  3654. Report an error, not a warning, for I/O errors.
  3655. (process_rawdata, process_dumpdir, diff_sparse_files):
  3656. Change ungrammatical "Data differs" to "Contents differ".
  3657. (get_stat_data): Find hidden files on AIX.
  3658. Accept file name as argument; all uses changed.
  3659. (get_stat_data, diff_archive): Use system error message for
  3660. nonexistent files rather than rolling our own.
  3661. (diff_archive): Unknown file types are errors, not warnings.
  3662. Normalize spelling of message to "File type differs".
  3663. Use get_stat_data to get link status, for consistency.
  3664. Do not inspect st_rdev for fifos.
  3665. Do not assume st_mode values contain only file types and mode bits.
  3666. Check for mode changes and device number changes separately.
  3667. * src/update.c (append_file):
  3668. Open the file before statting it, to avoid a race.
  3669. Complain about file shrinkage only when we reach EOF.
  3670. 1999-07-08 Paul Eggert <[email protected]>
  3671. * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13 released.
  3672. * configure.in (AC_EXEEXT): Add.
  3673. * lib/Makefile.am (noinst_HEADERS):
  3674. Add basename.h, exclude.h. Remove full-write.h.
  3675. (libtar_a_SOURCES): Add exclude.c.
  3676. * lib/basename.h, lib/exclude.c, lib/exclude.h, lib/safe-read.h:
  3677. New files.
  3678. * lib/full-write.c: Include safe-read.h instead of full-write.h.
  3679. * lib/safe-read.h (safe_read): New decl.
  3680. * src/rmt.c: Include safe-read.h.
  3681. * src/rtapelib.c: Include basename.h, save-read.h.
  3682. (rmt_open__): Use base_name to compute base name.
  3683. * src/common.h:
  3684. Include basename.h, exclude.h; don't include full-write.h.
  3685. (exclude_option): Remove decl.
  3686. (excluded): New decl.
  3687. (add_exclude, add_exclude_file, check_exclude): Remove decls.
  3688. * src/list.c (read_and):
  3689. Use excluded_filename instead of check_exclude.
  3690. Check base name of incoming file name, not entire file name, when
  3691. deciding whether to exclude it.
  3692. * src/create.c (finish_sparse_file):
  3693. Use excluded_filename instead of check_exclude.
  3694. Don't bother to stat excluded file names.
  3695. * src/incremen.c (get_directory_contents): Likewise.
  3696. * src/names.c (exclude_pool, exclude_pool_size,
  3697. allocated_exclude_pool_size, simple_exclude_array,
  3698. simple_excludes, allocated_simple_excludes,
  3699. pattern_exclude_array, pattern_excludes,
  3700. allocated_pattern_excludes, add_exclude, add_exclude_file,
  3701. check_exclude):
  3702. Remove; now done in ../lib/exclude.c.
  3703. * src/tar.c (decode_options): Initialize `excluded'.
  3704. Use new add_exclude_file and add_exclude functions.
  3705. 1999-07-05 Paul Eggert <[email protected]>
  3706. * m4/gettext.m4: Use changequote rather than [[ ]].
  3707. * lib/safe-read.c: Renamed from lib/full-read.c.
  3708. (safe_read): Renamed from full_read. All uses changed.
  3709. * lib/safe-read.h, lib/full-write.h: New files.
  3710. * lib/Makefile.am (noinst_HEADERS): Add full-write.h, safe-read.h.
  3711. (libtar_a_SOURCES): Rename full-read.c to safe-read.c.
  3712. * lib/full-write.c: Include full-write.h.
  3713. * src/common.h: Include full-write.h, safe-read.h.
  3714. * src/system.h: (full_read, full_write): Remove decls.
  3715. * src/Makefile.am (datadir): New var; needed for Solaris gettext.
  3716. * src/system.h (bindtextdomain, textdomain): undef before
  3717. defining, to avoid preprocessor warnings with --disable-nls
  3718. on hosts whose locale.h includes libintl.h.
  3719. * lib/xstrtol.c (__strtol): Remove decl; it doesn't work if __strtol
  3720. expands to a macro, which occurs in HP-UX 10.20 with strtoumax.
  3721. (strtol, strtoul): New decls (for pre-ANSI hosts), to replace
  3722. the above decl.
  3723. 1999-07-02 Paul Eggert <[email protected]>
  3724. * Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/mktime.m4.
  3725. * m4/mktime.m4: New file.
  3726. * m4/Makefile.am.in, m4/README: Remove these files.
  3727. * m4/Makefile.am (EXTRA_DIST): Add mktime.m4;
  3728. remove README, Makefile.am.in.
  3729. (Makefile.am): Remove rule; it didn't work in BSD/OS 4.0.
  3730. * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Invoke AC_FUNC_MKTIME,
  3731. not AM_FUNC_MKTIME.
  3732. * src/tar.c: Include signal.h.
  3733. (SIGCHLD): Define to SIGCLD if SIGCLD is defined but SIGCHLD is not.
  3734. (main): Ensure SIGCHLD is not ignored.
  3735. (BACKUP_OPTION, DELETE_OPTION, EXCLUDE_OPTION, GROUP_OPTION,
  3736. MODE_OPTION, NEWER_MTIME_OPTION, NO_RECURSE_OPTION, NULL_OPTION,
  3737. OWNER_OPTION, POSIX_OPTION, PRESERVE_OPTION, RECORD_SIZE_OPTION,
  3738. RSH_COMMAND_OPTION, SUFFIX_OPTION, USE_COMPRESS_PROGRAM_OPTION,
  3739. VOLNO_FILE_OPTION, OBSOLETE_ABSOLUTE_NAMES,
  3740. OBSOLETE_BLOCK_COMPRESS, OBSOLETE_BLOCKING_FACTOR,
  3741. OBSOLETE_BLOCK_NUMBER, OBSOLETE_READ_FULL_RECORDS, OBSOLETE_TOUCH,
  3742. OBSOLETE_VERSION_CONTROL): Make sure they can't be valid chars, so
  3743. they don't overlap with char codes. Use an enum instead of a lot
  3744. of #defines.
  3745. * src/system.h (ISASCII): Remove.
  3746. (CTYPE_DOMAIN, ISDIGIT, ISODIGIT, ISPRINT, ISSPACE, S_ISUID,
  3747. S_ISGID, S_IRUSR, S_IWUSR, S_IXUSR, S_IRGRP, S_IWGRP, S_IXGRP,
  3748. S_IROTH, S_IWOTH, S_IXOTH, MODE_WXUSR, MODE_R, MODE_RW,
  3749. MODE_RWX, MODE_ALL, SEEK_SET, SEEK_CUR, SEEK_END, CHAR_MAX,
  3750. LONG_MAX): New macros.
  3751. * src/incremen.c (ISDIGIT, ISSPACE): Remove; now in system.h.
  3752. (read_directory_file): Cast ISSPACE arg to unsigned char.
  3753. * src/misc.c (ISPRINT): Remove; now in system.h.
  3754. (remove_any_file): Add brackets to pacify gcc -Wall.
  3755. * src/list.c: Don't include <ctype.h>; system.h already does this.
  3756. (ISODIGIT, ISSPACE): Remove; now in system.h.
  3757. (decode_header): No need to AND mode with 07777; MODE_FROM_OCT
  3758. does this now.
  3759. (from_oct): Cast ISSPACE arg to unsigned char.
  3760. * src/create.c (mode_to_oct): Translate modes from internal to
  3761. external form.
  3762. * src/list.c (mode_from_oct): Translate modes from external to
  3763. internal form. Do not complain about unrecognized mode bits.
  3764. * src/common.h (TSUID, TSGID, TSVTX, TUREAD, TUWRITE, TUEXEC,
  3765. TGREAD, TGWRITE, TGEXEC, TOREAD, TOWRITE, TOEXEC): Remove undefs.
  3766. * src/extract.c: (extr_init, make_directories, extract_archive):
  3767. Do not assume mode bits have traditional Unix values.
  3768. * src/list.c (decode_mode): Likewise.
  3769. * src/create.c (start_header, dump_file): Likewise.
  3770. * src/buffer.c (child_open_for_compress,
  3771. child_open_for_uncompress, open_archive, (close_archive): Likewise.
  3772. * src/compare.c (diff_archive): Likewise.
  3773. * src/extract.c (set_mode): Use %04 not %0.4 format.
  3774. (extract_sparse_file): Do not use data_block uninitialized.
  3775. Check for lseek failures.
  3776. * src/rtapelib.c (rmt_lseek__):
  3777. Convert lseek whence values to portable integers on the wire.
  3778. * src/rmt.c (main): Likewise. Check for whence values out of range.
  3779. * src/create.c (finish_sparse_file): Use lseek whence macros
  3780. instead of integers.
  3781. * src/buffer.c (backspace_output): Likewise.
  3782. * src/compare.c (diff_archive, verify_volume): Likewise.
  3783. * src/delete.c (move_archive): Likewise.
  3784. * src/extract.c (extract_sparse_file): Likewise.
  3785. * src/create.c (dump_file): Do not invoke finish_sparse_file
  3786. on a negative file descriptor.
  3787. * src/buffer.c: Add braces to pacify gcc -Wall.
  3788. * src/compare.c (diff_sparse_files): Report lseek errors.
  3789. * configure.in (ALL_LINGUAS): Add cs, es, ru.
  3790. * PORTS, TODO: gnu.ai.mit.edu -> gnu.org
  3791. * src/arith.c, src/buffer.c (new_volume): Don't put ^G in
  3792. message to be internationalized; \a doesn't work with msgfmt.
  3793. * src/tar.c (long_options, main, usage, OPTION_STRING):
  3794. Remove -E or --ending-file.
  3795. * src/list.c (read_and): Likewise.
  3796. * src/common.h (ending_file_option): Likewise.
  3797. * src/buffer.c (close_archive): Likewise.
  3798. * tests/after: Don't run two commands together in a pipeline,
  3799. as some old shells mishandle pipeline exit status.
  3800. 1999-06-28 Paul Eggert <[email protected]>
  3801. * configure.in (AM_INIT_AUTOMAKE): version 1.12.64015.
  3802. * NEWS: Describe changes since 1.12.
  3803. * README: Update bug reporting address; move paxutils ref to NEWS.
  3804. Handle EINTR correctly.
  3805. * lib/Makefile.am (libtar_a_SOURCES): Add full-read.c, full-write.c.
  3806. * lib/full-read.c, lib/full-write.c: New files.
  3807. * src/buffer.c (child_open_for_compress, child_open_for_uncompress):
  3808. Prefer full_read to read and full_write to write.
  3809. * src/compare.c (process_rawdata, diff_sparse_files): Likewise.
  3810. * src/create.c (deal_with_sparse, finish_sparse_file, dump_file):
  3811. Likewise.
  3812. * src/extract.c (extract_sparse_file): Likewise.
  3813. * src/rmt.c (get_string, main, report_error_message,
  3814. report_numbered_error): Likewise.
  3815. * src/rmt.h (rmtread, rmtwrite): Likewise.
  3816. * src/rtapelib.c (do_command, get_status_string, rmt_read__,
  3817. rmt_write__, rmt_ioctl__): Likewise.
  3818. * src/update.c (append_file): Likewise.
  3819. * src/system.h (full_read, full_write): New decls.
  3820. * po/POTFILES.in: Add lib/argmatch.c, lib/error.c lib/getopt.c,
  3821. lib/xmalloc.c, src/arith.c, src/misc.c.
  3822. * src/system.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
  3823. New macros. All uses of STDIN and STDOUT changed.
  3824. * src/rmt.c (prepare_record_buffer, main): Use STDIN_FILENO
  3825. instead of 0 and STDOUT_FILENO instead of 1.
  3826. * src/rtapelib.c (_rmt_rexec): Use STDIN_FILENO and STDOUT_FILENO
  3827. instead of fileno (stdin) and fileno (stdout) or 0 and 1.
  3828. * src/rmt.c (private_strerror): Avoid const. Translate results.
  3829. * tests/Makefile.am (TESTS): Remove incremen.sh; it doesn't work
  3830. in the presence of NFS clock skew.
  3831. 1999-06-25 Paul Eggert <[email protected]>
  3832. * configure.in (AM_INIT_AUTOMAKE): version 1.12.64014.
  3833. * src/buffer.c (write_archive_buffer): New function.
  3834. (child_open_for_compress, flush_write, flush_read): Use it to write
  3835. buffers.
  3836. (open_archive): Report error if fstat of archive fails.
  3837. Improve efficiency of check for /dev/null.
  3838. Also, fix some corner cases with remote archives and /dev/null checking.
  3839. (close_archive): Test for input fifo only if not remote.
  3840. Truncate output archive only if it's not remote.
  3841. * src/misc.c (remove_any_file):
  3842. Don't terminate if you see . or ..; just skip them.
  3843. 1999-06-18 Paul Eggert <[email protected]>
  3844. * configure.in (AM_INIT_AUTOMAKE): version 1.12.64013.
  3845. Output sizes using a format that's more compatible with
  3846. traditional tar (and with GNU Emacs).
  3847. * src/common.h (GID_TO_OCT, MAJOR_TO_OCT, MINOR_TO_OCT,
  3848. MODE_TO_OCT, SIZE_TO_OCT, UID_TO_OCT, UINTMAX_TO_OCT):
  3849. Don't subtract 1 from size.
  3850. * src/create.c (to_oct): Prepend leading zeros, not spaces.
  3851. Output a trailing NUL unless the value won't fit without it.
  3852. (finish_header): No need to append NUL to chksum, now that
  3853. to_oct is doing it.
  3854. 1999-06-16 Paul Eggert <[email protected]>
  3855. * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64012.
  3856. * src/Makefile.am (LDADD): Link libtar.a after @INTLLIBS@, since
  3857. @INTLLIBS@ might invoke rpl_realloc.
  3858. * src/tar.c (backup_type): Remove decl; backupfile.h now has it.
  3859. (intconv): Remove; use xstrto* fns instead.
  3860. ("xstrtol.h"): Include.
  3861. (check_decimal): Remove.
  3862. (long_options, usage, OPTION_STRING, decode_options):
  3863. Remove -y, --bzip2, --unbzip2.
  3864. (decode_options): Use xget_version instead of get_version.
  3865. Check for overflow with -b and -L and RECORD_SIZE_OPTION.
  3866. Replace invocations of check_decimal with xstrtoumax.
  3867. * tests/preset.in (echo_n, echo_c): Remove.
  3868. * tests/after: Don't rely on $echo_c and $echo_n.
  3869. * lib/addext.c, lib/dirname.c, lib/lchown.c, lib/lchown.h,
  3870. lib/malloc.c, lib/mktime.c, lib/realloc.c, lib/strtol.c, lib/strtoul.c,
  3871. lib/strtoull.c, lib/strtoumax.c, lib/utime.c, lib/xstrtol.c,
  3872. lib/xstrtol.h, lib/xstrtoul.c, lib/xstrtoumax.c,
  3873. m4/Makefile.am.in, m4/README, m4/ccstdc.m4, m4/d-ino.m4,
  3874. m4/gettext.m4, m4/inttypes_h.m4, m4/isc-posix.m4,
  3875. m4/jm-mktime.m4, m4/largefile.m4, m4/lcmessage.m4,
  3876. m4/malloc.m4, m4/progtest.m4, m4/realloc.m4, m4/uintmax_t.m4,
  3877. m4/ulonglong.m4, m4/utimbuf.m4, m4/utime.m4, m4/utimes.m4,
  3878. m4/xstrtoumax.m4: New files.
  3879. * configure.in(fp_PROG_ECHO): Remove; no longer needed.
  3880. (AC_SYS_LARGEFILE): Renamed from AC_LFS.
  3881. (jm_AC_HEADER_INTTYPES_H): Replaces inline code.
  3882. (jm_STRUCT_DIRENT_D_INO, jm_AC_TYPE_UINTMAX_T, jm_AC_PREREQ_XSTRTOUMAX): Add.
  3883. (AC_CHECK_FUNCS): Remove lchown.
  3884. (AC_REPLACE_FUNCS): Remove basename, dirname.
  3885. Add lchown, strtol, strtoul.
  3886. (jm_FUNC_MKTIME): Add.
  3887. (LIBOBJS): Replace .o with $U.o, so that the .o files in LIBOBJS
  3888. are also built via the ANSI2KNR-filtering rules.
  3889. Use a no-op line to work around bug in automake 1.4 with malloc and
  3890. realloc.
  3891. (AC_OUTPUT): Add m4/Makefile.
  3892. * lib/Makefile.am (EXTRA_DIST):
  3893. Add lchown.c, malloc.c, mktime.c, realloc.c,
  3894. strtol.c, strtoul.c, strtoull.c, strtoumax.c, utime.c.
  3895. (noinst_HEADERS): Add lchown.h, modechange.h, xstrtol.h.
  3896. (libtar_a_SOURCES): Add addext.c, basename.c, xstrtol.c,
  3897. xstrtoul.c, xstrtoumax.c. Remove getversion.c.
  3898. ($(srcdir)/getdate.c:): Remove `expect conflicts' line.
  3899. * src/system.h (uintmax_t): Don't declare; configure now does this.
  3900. * src/common.h (backup_type): New decl.
  3901. * src/common.h, src/misc.c, src/tar.c:
  3902. Move include of backupfile.h to common.h.
  3903. * src/misc.c (maybe_backup_file):
  3904. Pass backup_type to find_backup_file_name.
  3905. * src/list.c (print_header): Change sizes of uform and gform from 11 to
  3906. UINTMAX_STRSIZE_BOUND.
  3907. * doc/tar.texi: Remove --bzip2.
  3908. Fix @xref typos reported by latest makeinfo.
  3909. * Makefile.am (ACLOCAL_AMFLAGS): New macro.
  3910. (SUBDIRS): Add m4.
  3911. (M4DIR, ACINCLUDE_INPUTS): New macros.
  3912. ($(srcdir)/acinclude.m4): New rule.
  3913. * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
  3914. HAVE_INTTYPES_H, HAVE_LC_MESSAGES, HAVE_STPCPY): Remve #undefs;
  3915. now generated automatically by autoconf.
  3916. 1999-05-15 Paul Eggert <[email protected]>
  3917. * doc/tar.texi: Remove -y.
  3918. 1999-04-09 Paul Eggert <[email protected]>
  3919. * src/system.h (INT_STRLEN_BOUND): Fix off-by-factor-of-10 typo
  3920. (we were allocating too much storage).
  3921. (uintmax_t): Don't declare; configure now does this.
  3922. * ABOUT-NLS: Update to gettext 0.10.35 edition.
  3923. 1999-03-22 Paul Eggert <[email protected]>
  3924. * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64010
  3925. * acinclude.m4 (AC_LFS_FLAGS):
  3926. Don't use -mabi=n32 with GCC on IRIX 6.2; it's the default.
  3927. (AC_LFS): -n32, -o32, and -n64 are CPPFLAGS, not CFLAGS.
  3928. (jm_FUNC_MALLOC, jm_FUNC_REALLOC): New macros.
  3929. * configure.in (jm_FUNC_MALLOC, jm_FUNC_REALLOC):
  3930. New macros; needed for latest GNU xmalloc.c.
  3931. * Makefile.am (noinst_HEADERS): Add quotearg.h, xalloc.h.
  3932. (libtar_a_SOURCES): Add quotearg.c.
  3933. * list.c: Include <quotearg.h>.
  3934. (from_oct): Add forward decl.
  3935. (read_header): Return HEADER_FAILURE if we can't parse the checksum.
  3936. (from_oct): Report an error only if TYPE is nonzero.
  3937. Quote any funny characters in bad header.
  3938. 1999-03-20 Paul Eggert <[email protected]>
  3939. * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64009
  3940. * acinclude.m4 (AC_LFS_FLAGS): Add support for IRIX 6.2 and later.
  3941. (AC_LFS_SPACE_APPEND): Assume $2 is quoted properly; all callers
  3942. changed.
  3943. (AC_LFS): Simplify AIX revision number test.
  3944. 1999-03-17 Paul Eggert <[email protected]>
  3945. * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64008
  3946. * configure.in (AC_VALIDATE_CACHED_SYSTEM_TUPLE):
  3947. Remove; it doesn't work that well
  3948. with AC_CANONICAL_HOST.
  3949. (fp_WITH_INCLUDED_MALLOC): Remove; we'll just use the system malloc.
  3950. * Makefile.am (EXTRA_DIST): Remove AC-PATCHES, AM-PATCHES, BI-PATCHES.
  3951. * Makefile.am (EXTRA_DIST): Remove gmalloc.c.
  3952. * acinclude.m4 (fp_WITH_INCLUDED_MALLOC): Remove.
  3953. * tar.texi: Fix bug-report addr.
  3954. * README: Remove --with-included-malloc.
  3955. Upgrade version numbers of build software.
  3956. 1999-03-07 Paul Eggert <[email protected]>
  3957. * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.12.64007.
  3958. * acinclude.m4 (AM_WITH_NLS): Port to Solaris 2.5.1,
  3959. where bindtextdomain and gettext require -lintl.
  3960. (AC_LFS_FLAGS): Simplify so that it only gets the flags;
  3961. `no' means it failed.
  3962. (AC_LFS_SPACE_APPEND, AC_LFS_MACRO_VALUE): New macros.
  3963. (AC_LFS): Use them. Set _FILE_OFFSET_BITS, _LARGEFILE_SOURCE, and
  3964. _LARGE_FILES from LFS_CFLAGS, so that in the normal case we don't need
  3965. to add anything to the command line (it's all in config.h).
  3966. Put any extra -D and -I options into CPPFLAGS, the rest into CFLAGS.
  3967. 1999-03-01 Paul Eggert <[email protected]>
  3968. * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.12.64006.
  3969. * acinclude.m4 (AC_LFS_FLAGS): Port to AIX 4.2.
  3970. * src/list.c: (gid_from_oct, major_from_oct, minor_from_oct,
  3971. mode_from_oct, off_from_oct, size_from_oct, time_from_oct,
  3972. uid_from_oct, uintmax_from_oct): Use TYPE_MAXIMUM instead of macros
  3973. like OFF_MAX, which are not reliable
  3974. (e.g. OFF_MAX in AIX 4.2 is incorrect).
  3975. * src/system.h (GID_MAX, MAJOR_MAX, MINOR_MAX, MODE_MAX, OFF_MAX,
  3976. SIZE_MAX, TIME_MAX,UID_MAX, UINTMAX_MAX): Remove; no longer used.
  3977. * src/incremen.c (get_directory_contents):
  3978. Don't use statx if _LARGE_FILES; it doesn't work under AIX 4.2.
  3979. Have statx depend on STX_HIDDEN, not AIX.
  3980. * src/create.c (to_oct):
  3981. New parameter substitute, giving a substitute value to use
  3982. when the original value is out of range. Do not append a space to the
  3983. output; modern tars don't. When a value is out of range, specify the
  3984. maximum value, not the number of bits.
  3985. (GID_NOBODY, UID_NOBODY): New macros.
  3986. (gid_to_oct, uid_to_oct): Use them as substitutes.
  3987. (finish_header): Do not assume that UINTMAX_TO_OCT appends a space.
  3988. (dump_file): Check whether the file changed as we read it.
  3989. * src/rmt.c (main): Remove suspicious AIX/386 code.
  3990. 1999-02-19 Paul Eggert <[email protected]>
  3991. * intl/localealias.c (read_alias_file): Don't assume that memcpy
  3992. returns a type compatible with char *; it doesn't on SunOS
  3993. 4.1.4 with Sun cc, since <string.h> doesn't declare memcpy.
  3994. * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.12.64005.
  3995. * src/tar.c (long_options, usage): Prefer --unbzip2 to --bunzip2.
  3996. * doc/tar.texi: Add --bzip2, --unbzip2 options.
  3997. * configure.in (AC_CANONICAL_HOST, AC_VALIDATE_CACHED_SYSTEM_TUPLE):
  3998. Add.
  3999. (AC_LINK_FILES): Omit; AM_GNU_GETTEXT now does this.
  4000. (AC_OUTPUT): Omit munging of po/Makefile; AM_GNU_GETTEXT now does this.
  4001. * acinclude.m4 (AM_WITH_NLS):
  4002. Update to latest gettext version (serial 5).
  4003. (AC_LFS_FLAGS): New macro
  4004. (AC_LFS): Use it. Append to CFLAGS, LDFLAGS, LDLIBS instead of
  4005. working only with unset variables. Append to CFLAGS, not CPPFLAGS.
  4006. Work properly in cross-compilation scenario, by checking for getconf
  4007. with AC_CHECK_TOOL and by ditching uname in favor of
  4008. AC_CANONICAL_HOST and $host_os. Add --disable-lfs option.
  4009. * lib/getdate.y: Update to fileutils 4.0 getdate.y, with one patch:
  4010. replace FORCE_ALLOCA_H with HAVE_ALLOCA_H.
  4011. * lib/Makefile.am (AUTOMAKE_OPTIONS): Append ../src/ansi2knr,
  4012. since getdate.y now uses ANSI code.
  4013. * config.guess, config.sub: New files; taken from automake 1.4.
  4014. * intl/Makefile.in, intl/VERSION, intl/bindtextdom.c,
  4015. intl/cat-compat.c, intl/dcgettext.c, intl/dgettext.c,
  4016. intl/explodename.c, intl/finddomain.c, intl/gettext.c,
  4017. intl/gettext.h, intl/gettextP.h, intl/hash-string.h,
  4018. intl/l10nflist.c, intl/libgettext.h, intl/loadinfo.h,
  4019. intl/loadmsgcat.c, intl/localealias.c, intl/textdomain.c:
  4020. Update to GNU gettext 0.10.35, with patches as per GCC snapshot 990109.
  4021. 1999-02-01 Paul Eggert <[email protected]>
  4022. * src/tar.c: Update copyright.
  4023. * NEWS: 1.12.64004
  4024. 1999-02-01 Paul Eggert <[email protected]>
  4025. * NEWS, configure.in: Version 1.12.64004
  4026. * configure.in (AC_LFS): Use this macro, instead of open-coding it.
  4027. * acinclude.m4 (AC_LFS, AM_PROG_CC_STDC): New macros.
  4028. * src/extract.c (extract_archive): Fix bug when extracting sparse
  4029. files: they were trashing the tar file header.
  4030. * src/tar.c: (long_options, usage, OPTION_STRING, decode_options):
  4031. Add -y or --bzip2 or --bunzip2 option.
  4032. 1999-01-30 Paul Eggert <[email protected]>
  4033. * src/names.c (cached_no_such_uname, cached_no_such_gname,
  4034. cached_no_such_uid, cached_no_such_gid): New vars.
  4035. (uid_to_uname, gid_to_gname, uname_to_uid, gname_to_gid):
  4036. Cache failures, too.
  4037. * src/tar.c (decode_options):
  4038. Don't pass names longer than UNAME_FIELD_SIZE to
  4039. uname_to_uid, as it messes up the cache. Similarly for gname_to_uid.
  4040. 1999-01-27 Paul Eggert <[email protected]>
  4041. * NEWS, configure.in: Version 1.12.64003
  4042. * src/buffer.c (backspace_output, close_archive): Cast
  4043. rmtlseek position arg to off_t, for benefit of K&R compilers
  4044. with long long.
  4045. * src/compare.c (verify_volume): Likewise.
  4046. * NEWS, configure.in: Version 1.12.64002
  4047. * src/create.c (gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct,
  4048. off_to_oct, size_to_oct, time_to_oct, uid_to_oct):
  4049. Cast arg to uintmax_t for benefit of pre-ANSI compilers with long long.
  4050. * src/list.c: (gid_from_oct, major_from_oct, minor_from_oct,
  4051. mode_from_oct, off_from_oct, size_from_oct, time_from_oct,
  4052. uid_from_oct): Likewise.
  4053. 1999-01-25 Paul Eggert <[email protected]>
  4054. * incremen.sh: Fix timing bug in regression test.
  4055. 1999-01-22 Paul Eggert <[email protected]>
  4056. * NEWS, configure.in: Update version
  4057. * Makefile.am (localedir): Change to $(datadir)/locale.
  4058. (DEFS): New macro, defining LOCALEDIR.
  4059. (tar.o, tar._o, rmt.o, rmt._o): Remove.
  4060. (INCLUDES): Add -I..
  4061. * Makefile.am (localedir): Change to $(datadir)/locale.
  4062. 1999-01-21 Paul Eggert <[email protected]>
  4063. * NEWS, README, configure.in: Unofficial version 1.12.64001.
  4064. * tests/Makefile.am (localedir): Change to $(datadir)/locale.
  4065. * src/Makefile.am (localedir): Likewise.
  4066. (DEFS): New macro, defining LOCALEDIR.
  4067. (tar.o, tar._o, rmt.o, rmt._o): Remove.
  4068. (INCLUDES): Add `-I..'.
  4069. * tests/incremen.sh: Fix timing bug.
  4070. 1999-01-20 Paul Eggert <[email protected]>
  4071. * NEWS, README, configure.in: Unofficial version 1.12.64000.
  4072. `lfs.7' changed to `64000' in version number
  4073. to conform to gnits standards.
  4074. * COPYING, INSTALL, doc/texinfo.tex, install-sh, missing,
  4075. mkinstalldirs, ansi2knr.c: Update to latest public versions.
  4076. Rebuild with automake 1.4 and autoconf 2.13, to work around some
  4077. porting problems.
  4078. 1998-12-07 Paul Eggert <[email protected]>
  4079. * NEWS, README, configure.in: Unofficial version 1.12.lfs.6.
  4080. * src/list.c (read_header):
  4081. Accept file names as specified by POSIX.1-1996 section 10.1.1.
  4082. 1998-11-30 Paul Eggert <[email protected]>
  4083. * configure.in: Quote the output of uname.
  4084. * src/extract.c (set_stat): chmod after chown even when not root;
  4085. if we are using --same-owner this is needed e.g. on Solaris 2.5.1.
  4086. 1998-11-15 Paul Eggert <[email protected]>
  4087. * NEWS, README, configure.in: Unofficial version 1.12.lfs.5.
  4088. * configure.in (ac_test_CPPFLAGS, ac_test_LDFLAGS, ac_test_LIBS,
  4089. ac_getconfs, ac_result): Special case for HP-UX 10.20 or later.
  4090. 1998-10-28 Paul Eggert <[email protected]>
  4091. * NEWS, README, configure.in: Unofficial version 1.12.lfs.4.
  4092. * src/system.h (voidstar): Use void * if __STDC__ is defined,
  4093. not merely nonzero.
  4094. * src/rtapelib.c: Don't use rexec code unless compiled with WITH_REXEC.
  4095. On many installations, rexec is disabled.
  4096. 1998-08-07 Paul Eggert <[email protected]>
  4097. * NEWS, README, configure.in: Unofficial version 1.12.lfs.3.
  4098. * src/names.c (uid_to_uname, gid_to_gname): Don't used cached name
  4099. for nameless users and groups.
  4100. 1998-02-17 Paul Eggert <[email protected]>
  4101. * NEWS, README, configure.in: Unofficial version 1.12.lfs.2.
  4102. * NEWS, README: Add explanation of why this isn't an official version.
  4103. 1998-02-02 Paul Eggert <[email protected]>
  4104. * NEWS, README, configure.in: Unofficial version 1.12.lfs.1.
  4105. This is an unofficial version.
  4106. 1997-12-17 Paul Eggert <[email protected]>
  4107. * src/incremen.c (ST_DEV_MSB): New macro.
  4108. (NFS_FILE_STAT): Use most significant bit of st_dev,
  4109. even if it's unsigned.
  4110. 1997-12-08 Paul Eggert <[email protected]>
  4111. * src/system.h (ST_NBLOCKS): Fix typo in definition.
  4112. 1997-11-19 Paul Eggert <[email protected]>
  4113. * configure.in (HAVE_INTTYPES_H):
  4114. Don't ignore cache variable if it's already set.
  4115. 1997-11-10 Paul Eggert <[email protected]>
  4116. * src/rmt.c (main): Don't assume mt_count is of type daddr_t.
  4117. * src/delete.c (records_read): Now off_t.
  4118. (move_archive): Don't assume mt_count is of type daddr_t.
  4119. 1997-10-30 Paul Eggert <[email protected]>
  4120. * configure.in (CPPFLAGS, LDFLAGS, LIBS):
  4121. Set to appropriate values if large file support
  4122. needs explicit enabling.
  4123. (HAVE_INTTYPES_H, HAVE_ST_FSTYPE_STRING, daddr_t, major_t, minor_t,
  4124. ssize_t):
  4125. New macros to configure.
  4126. (AC_TYPE_MODE_T, AC_TYPE_PID_T, AC_TYPE_OFF_T): Add.
  4127. * acconfig.h (daddr_t, HAVE_INTTYPES_H, HAVE_ST_FSTYPE_STRING,
  4128. major_t, minor_t, ssize_t): New macros.
  4129. * src/arith.h (TARLONG_FORMAT):
  4130. Fix typo: %uld -> %lu. Use unsigned when long long
  4131. (%lld -> %llu).
  4132. (add_to_tarlong_helper, mult_tarlong_helper): 2nd arg is now unsigned long.
  4133. (add_to_tarlong, mult_tarlong): Cast 2nd arg to unsigned long.
  4134. * src/arith.c (add_to_tarlong_helper, mult_tarlong_helper):
  4135. 2nd arg is now unsigned long.
  4136. * src/rmt.c (allocated_size): Now size_t, and now initialized to 0.
  4137. (prepare_record_buffer): Arg is now size_t.
  4138. Remove now-useless casts.
  4139. (main): Use `long' for status, so that it can store ssize_t.
  4140. Use daddr_t, mode_t, size_t, off_t when appropriate.
  4141. Convert daddr_t and off_t values ourselves, since they might be longer
  4142. than long. Convert other types using `long' primitives.
  4143. When processing MTIOCTOP, do not try to pass resulting
  4144. count back, since it won't work (it could be too large) and it's
  4145. not expected anyway.
  4146. * src/update.c:
  4147. (append_file) Use off_t, size_t, ssize_t when appropriate. Remove
  4148. now-useless casts. Use unsigned long to print *_t types, except use
  4149. STRINGIFY_BIGINT for off_t.
  4150. (update_archive): Cast -1 to dev_t when necessary.
  4151. * src/tar.c (check_decimal):
  4152. Now returns 1 if successful, 0 otherwise, and returns
  4153. uintmax_t value into new arg. Check for arithmetic overflow.
  4154. (decode_options): Avoid overflow if record_size fits in size_t but not int.
  4155. Check for overflow on user or group ids.
  4156. * src/compare.c (diff_init, process_rawdata, read_and_process,
  4157. diff_sparse_files, diff_archive):
  4158. Use off_t, pid_t, size_t, ssize_t when appropriate.
  4159. Remove now-useless casts. Use unsigned long to print *_t types,
  4160. except use STRINGIFY_BIGINT for off_t.
  4161. (process_noop, process_rawdata, process_dumpdir, read_and_process):
  4162. Size arg is now size_t.
  4163. (diff_sparse_files): Arg is now off_t. Check for size_t overflow
  4164. when allocating buffer.
  4165. * src/rtapelib.c:
  4166. (do_command, rmt_open__, rmt_read__, rmt_lseek__, rmt_ioctl__):
  4167. Use pid_t, size_t, ssize_t when appropriate. Remove now-useless casts.
  4168. Use unsigned long to print *_t types, except use STRINGIFY_BIGINT for
  4169. off_t.
  4170. (get_status_string, get_status_off): New function.
  4171. (get_status): Now returns long, so that it can store ssize_t.
  4172. Invoke get_status_string to do the real work.
  4173. (rmt_read__, rmt_write__): Now returns ssize_t. Size arg is now size_t.
  4174. (rmt_lseek__): Now returns off_t, using new get_status_off function.
  4175. (rmt_ioctl__): Convert mt_count by hand,
  4176. since it might be longer than long.
  4177. * src/mangle.c (extract_mangle):
  4178. Check for overflow when converting off_t to size_t.
  4179. Use off_t, size_t when appropriate. Remove now-useless casts.
  4180. * src/system.h (mode_t): Remove; now done by autoconf.
  4181. (ST_NBLOCKS): Do not overflow if st_size is near maximum.
  4182. Return number of ST_NBLOCKSIZE-byte blocks,
  4183. not number of 512-byte blocks;
  4184. this also helps to avoid overflow.
  4185. (st_blocks): Declare if needed.
  4186. (ST_NBLOCKSIZE): New macro.
  4187. (<limits.h>, <inttypes.h>): Include if available.
  4188. (CHAR_BIT): New macro.
  4189. (uintmax_t): New typedef.
  4190. (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_STRLEN_BOUND,
  4191. UINTMAX_STRSIZE_BOUND, GID_MAX, MAJOR_MAX, MINOR_MAX, MODE_MAX,
  4192. OFF_MAX, SIZE_MAX, TIME_MAX, UID_MAX, UINTMAX_MAX): New macros.
  4193. * src/names.c (name_init):
  4194. Fix typo in error message: FILE* was passed, but char*
  4195. was wanted.
  4196. (read_name_from_file, name_gather, addname, name_match, name_scan,
  4197. add_exclude): Use size_t when appropriate. Remove now-useless casts.
  4198. (exclude_pool_size, allocated_exclude_pool_size): Now size_t.
  4199. * src/extract.c (newdir_umask, current_umask): Now mode_t.
  4200. (extract_sparse_file): Args now use off_t.
  4201. (set_mode, set_stat, make_directories, extract_sparse_file,
  4202. extract_archive): Use off_t, size_t, ssize_t when appropriate. Remove
  4203. now-useless casts. Use unsigned long to print *_t types, except use
  4204. STRINGIFY_BIGINT for off_t.
  4205. * src/misc.c (quote_copy_string):
  4206. Use size_t when appropriate. Remove now-useless casts.
  4207. * src/list.c (read_and, list_archive, read_header, decode_mode,
  4208. print_header, print_for_mkdir):
  4209. Use mode_t, off_t, size_t when appropriate. Remove
  4210. now-useless casts. Use unsigned long to print *_t types, except use
  4211. STRINGIFY_BIGINT for off_t.
  4212. (read_header): Check for overflow when converting header size.
  4213. (from_oct): Now static. Now returns uintmax_t. `where' arg is now
  4214. const char *. Size arg is now size_t. Now takes new type and maxval
  4215. args. Compute result using uintmax_t, not long. Report error if
  4216. field does not contain octal number in range.
  4217. (gid_from_oct, major_from_oct, minor_from_oct, mode_from_oct,
  4218. off_from_oct, size_from_oct, time_from_oct, uid_from_oct,
  4219. uintmax_from_oct): New functions.
  4220. (stringify_uintmax_t_backwards): New function.
  4221. (decode_mode, print_for_mkdir): Mode arg is now mode_t.
  4222. (skip_file): Offset arg is now off_t.
  4223. * src/buffer.c (record_start_block, save_totsize, save_sizeleft,
  4224. real_s_totsize, real_s_sizeleft, current_block_ordinal):
  4225. Now off_t.
  4226. (write_error): Arg is now ssize_t.
  4227. (child_pid): Now pid_t.
  4228. (available_space_after): Now size_t.
  4229. (child_open_for_compress, child_open_for_uncompress, flush_write,
  4230. open_archive, flush_write, write_error, flush_read, close_archive):
  4231. Use pid_t, ssize_t, size_t when appropriate. Remove now-useless
  4232. casts. Use unsigned long to print *_t types, except use
  4233. STRINGIFY_BIGINT for off_t.
  4234. * src/delete.c (records_read): Now daddr_t.
  4235. (move_archive): Arg is now daddr_t. Check for overflow when
  4236. computing offset.
  4237. (move_archive, delete_archive_members): Use daddr_t, off_t when
  4238. appropriate. Remove now-useless casts.
  4239. * src/rmt.h (rmt_read__, rmt_write__): Now returns ssize_t.
  4240. (rmt_lseek): Now returns off_t.
  4241. * src/create.c (to_oct):
  4242. Now static. Value arg is now uintmax_t. Accept new args
  4243. giving name of type of octal field, for error messages. Report an
  4244. error if the value is too large to fit in the field.
  4245. (gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct, off_to_oct,
  4246. size_to_oct, time_to_oct, uid_to_oct, uintmax_to_oct): New functions.
  4247. (write_eot, write_long, finish_header, deal_with_sparse,
  4248. finish_sparse_file, dump_file): Use dev_t, off_t, ssize_t, size_t when
  4249. appropriate. Remove now-useless casts. Use unsigned long to print
  4250. *_t types, except use STRINGIFY_BIGINT for off_t.
  4251. (find_new_file_size): 1st arg is now off_t*.
  4252. (finish_sparse_file): Args now use off_t, not long.
  4253. Check for lseek error.
  4254. (create_archive, dump_file): Cast -1 to dev_t when necessary.
  4255. (dump_file): Device arg is now dev_t.
  4256. Avoid overflow when testing whether file has holes
  4257. by using the new ST_NBLOCKSIZE macro.
  4258. * src/incremen.c (struct accumulator, add_to_accumulator,
  4259. get_directory_contents, add_hierarchy_to_namelist, gnu_restore):
  4260. Use size_t for sizes.
  4261. (struct directory, get_directory_contents, add_hierarchy_to_namelist):
  4262. Use dev_t, ino_t for devices and inodes.
  4263. (gnu_restore): Use off_t for file offsets.
  4264. (struct directory): Use char for flags. Add new flag `nfs'.
  4265. (nfs): New constant
  4266. (NFS_FILE_STAT): New macro.
  4267. (note_directory): Accept struct stat * instead of
  4268. device and inode number. All callers changed.
  4269. (note_directory, get_directory_contents):
  4270. Use NFS_FILE_STAT to determine whether directory is an NFS directory.
  4271. (write_dir_file): Cast time_t to unsigned long before printing as %lu.
  4272. * src/common.h (record_size, struct name, struct sp_array,
  4273. available_space_after):
  4274. Use size_t for sizes.
  4275. (save_sizeleft, save_totsize, current_block_ordinal, skip_file):
  4276. Use off_t for file offsets.
  4277. (struct name): dir_contents is now const char *, not char *.
  4278. (dump_file, get_directory_contents): Use dev_t for devices.
  4279. (to_oct): Remove decl.
  4280. (GID_TO_OCT, MAJOR_TO_OCT, MINOR_TO_OCT, MODE_TO_OCT, SIZE_TO_OCT,
  4281. UID_TO_OCT, UINTMAX_TO_OCT, OFF_TO_OCT, TIME_TO_OCT, STRINGIFY_BIGINT,
  4282. GID_FROM_OCT, MAJOR_FROM_OCT, MINOR_FROM_OCT, MODE_FROM_OCT,
  4283. OFF_FROM_OCT, SIZE_FROM_OCT, TIME_FROM_OCT, UID_FROM_OCT,
  4284. UINTMAX_FROM_OCT): New macros.
  4285. (gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct, off_to_oct,
  4286. size_to_oct, time_to_oct, uid_to_oct, uintmax_to_oct,
  4287. stringify_uintmax_t_backwards, gid_from_oct, major_from_oct,
  4288. minor_from_oct, mode_from_oct, off_from_oct, size_from_oct,
  4289. time_from_oct, uid_from_oct, uintmax_from_oct): New decls.
  4290. (print_for_mkdir): 2nd arg is now mode_t.
  4291. See ChangeLog.1 for earlier changes.
  4292. Copyright (C) 1997, 1998, 1999, 2000, 2001, 2003, 2004 Free Software
  4293. Foundation, Inc.
  4294. This file is part of GNU tar.
  4295. GNU tar is free software; you can redistribute it and/or modify
  4296. it under the terms of the GNU General Public License as published by
  4297. the Free Software Foundation; either version 2, or (at your option)
  4298. any later version.
  4299. GNU tar is distributed in the hope that it will be useful,
  4300. but WITHOUT ANY WARRANTY; without even the implied warranty of
  4301. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  4302. GNU General Public License for more details.
  4303. You should have received a copy of the GNU General Public License
  4304. along with GNU tar; see the file COPYING. If not, write to
  4305. the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  4306. Boston, MA 02111-1307, USA.
  4307. Local Variables:
  4308. mode: change-log
  4309. version-control: never
  4310. End: