ChangeLog.CVS 325 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835
  1. Currently the ChangeLog is generated automatically from the Git
  2. revision history, but from 1997 to 2009 the ChangeLog file was
  3. maintained by hand, under CVS. This file records the older log.
  4. Copyright 1997-2001, 2003-2009, 2013, 2023 Free Software Foundation,
  5. Inc.
  6. This file is part of GNU tar.
  7. GNU tar is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 3 of the License, or
  10. (at your option) any later version.
  11. GNU tar is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. GNU General Public License for more details.
  15. You should have received a copy of the GNU General Public License
  16. along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. 2009-03-05 Sergey Poznyakoff <[email protected]>
  18. * src/incremen.c: --no-recursive works with --incremental.
  19. 2009-03-04 Sergey Poznyakoff <[email protected]>
  20. Add xz support.
  21. * src/buffer.c, src/suffix.c: Add support for xz compression.
  22. * src/tar.c: New option --xz, for compression/decompression using xz.
  23. Re-assign -J as a short equivalent of --xz.
  24. 2009-01-19 Sergey Poznyakoff <[email protected]>
  25. * doc/tar.texi: Fix typo.
  26. 2008-12-29 Sergey Poznyakoff <[email protected]>
  27. * bootstrap.conf: Include size_max.
  28. * gnulib.modules: Remove memset, rmdir. Replace strdup with
  29. strdup-posix. Patch by Eric Blake.
  30. * src/tar.c: Implement -I as a shorthand for --use-compress-program.
  31. * doc/tar.texi: Document -I.
  32. * tests/pipe.at, tests/shortrec.at: Account for eventual 'Record
  33. size' output.
  34. * tests/testsuite.at (AT_TAR_CHECK_HOOK): New define
  35. (AT_TAR_WITH_HOOK, TAR_IGNREC_HOOK): New macros.
  36. 2008-11-30 Sergey Poznyakoff <[email protected]>
  37. * src/xheader.c: Remove duplicate inclusion of fnmatch.h. Reported
  38. by Jim Meyering.
  39. 2008-11-25 Sergey Poznyakoff <[email protected]>
  40. Do not try to drain the input pipe before closing the
  41. archive.
  42. * src/buffer.c (close_archive): Remove call to
  43. sys_drain_input_pipe. Pass hit_eof as the second
  44. argument to sys_wait_for_child.
  45. * src/common.h (sys_drain_input_pipe): Remove
  46. (sys_wait_for_child): Declare second argument.
  47. * src/system.c (sys_drain_input_pipe): Remove.
  48. (sys_wait_for_child): Take two arguments. The second one helps to
  49. decide whether to tolerate child termination on SIGPIPE.
  50. 2008-11-03 Sergey Poznyakoff <[email protected]>
  51. * src/buffer.c (_write_volume_label): Fix typo, which prevented
  52. `-V label -M' from working.
  53. 2008-10-30 Sergey Poznyakoff <[email protected]>
  54. * NEWS, configure.ac: Version 1.20.91
  55. * doc/tar.texi: Document transformation scope flags.
  56. * src/common.h (transform_symlinks_option): Remove in favor of
  57. transformation scope flags.
  58. (XFORM_REGFILE, XFORM_LINK, XFORM_SYMLINK, XFORM_ALL): New macros.
  59. (transform_name, transform_member_name, transform_name_fp): Take
  60. an additional argument, specifying scope flags.
  61. * src/create.c: Reflect changes to transform_name.
  62. * src/extract.c (extract_link, extract_symlink): Remove calls to
  63. transform_member_name. It is done in read_header.
  64. * src/list.c (decode_xform): Reflect change in data type of 2nd
  65. argument.
  66. (transform_member_name): 2nd arg is int.
  67. (decode_header): Transform file name and link target names.
  68. * src/tar.c: Remove --transform-symlinks.
  69. * src/transform.c (struct transform): New member `flags'.
  70. (transform_flags): New variable.
  71. (parse_transform_expr): Parse transformation scope flags. Allow to
  72. set global flags using `flags=' syntax.
  73. (_transform_name_to_obstack, transform_name_fp)
  74. (transform_name): Take an additional argument, specifying scope
  75. flags.
  76. 2008-10-19 Sergey Poznyakoff <[email protected]>
  77. * THANKS: Add Ed Leaver.
  78. * src/buffer.c (short_read): Remove !read_full_records condition,
  79. which was always false on a first record and thus disabled record
  80. size autodetection. Thanks Ed Leaver for the patch.
  81. (_gnu_flush_read): Handle blocking_factor == 1.
  82. * tests/sparsemv.at: Reflect changes to buffer.c.
  83. * tests/sparsemvp.at: Likewise.
  84. * tests/volsize.at: Likewise.
  85. * NEWS: Update.
  86. 2008-10-16 Sergey Poznyakoff <[email protected]>
  87. * src/common.h (transform_symlinks_option): New global.
  88. * src/create.c (dump_file0): Transform symlink targets only if
  89. explicitly required. Thanks Cyril Strejc for reporting the
  90. problem.
  91. * src/tar.c (parse_opt): New options --transform-symlinks and
  92. --no-transform-symlinks. New alias --xform to the --transform
  93. option.
  94. * doc/tar.texi: Document --transform-symlinks
  95. * NEWS: Update.
  96. * THANKS: Update.
  97. * src/names.c (name_gather): Use xzalloc.
  98. * src/buffer.c (short_read): Move record size detection before
  99. the loop.
  100. 2008-10-07 Sergey Poznyakoff <[email protected]>
  101. * src/tar.c (options): Add --lzop option.
  102. 2008-10-05 Xavier Hienne <[email protected]> (tiny change)
  103. * src/checkpoint.c (checkpoint_compile_action): Add missing
  104. `else'.
  105. 2008-09-24 Sergey Poznyakoff <[email protected]>
  106. * NEWS: Update.
  107. * doc/tar.texi: Update.
  108. * src/tar.c: New option --no-null.
  109. 2008-09-23 Sergey Poznyakoff <[email protected]>
  110. * src/common.h (filename_terminator): Remove global.
  111. * src/tar.c (filename_terminator): New static.
  112. * src/names.c (name_next_elt): Do not depend on
  113. filename_terminator, this was a leftover from 1.13.
  114. 2008-09-18 Sergey Poznyakoff <[email protected]>
  115. * doc/tar.texi: Remove incorrect example.
  116. 2008-09-07 Sergey Poznyakoff <[email protected]>
  117. * src/incremen.c (dumpdir_create0): Eliminate gcc warning.
  118. (attach_directory): Bugfix - add missing return statement.
  119. * THANKS: Add Enric Hernandez
  120. 2008-07-31 Sergey Poznyakoff <[email protected]>
  121. * src/incremen.c (struct directory): New member `next'. Change
  122. type of `name'.
  123. (dirhead, dirtail): New statics.
  124. (make_directory): Reflect changes to struct directory.
  125. (free_directory, attach_directory): New functions.
  126. (dirlist_replace_prefix): New function.
  127. (note_directory): Use attach_directory, instead of make_directory,
  128. (find_directory, find_directory_meta): Use free_directory.
  129. (procdir): Replace directory prefixes in directory list to avoid
  130. marking subdirectories as renamed after renaming their parent
  131. directory.
  132. (append_incremental_renames): Iterate over directory list, not
  133. hash table, to preserve logical ordering of renames.
  134. * tests/rename04.at, tests/rename05.at: New test cases.
  135. * tests/Makefile.am, tests/testsuite.at: Add rename04.at and
  136. rename05.at.
  137. * tests/atlocal.in (decho): New function.
  138. * tests/multiv06.at: Use decho instead of echo2.
  139. * tests/incremental.at: Raise wait interval to 2 seconds.
  140. 2008-07-24 Sergey Poznyakoff <[email protected]>
  141. * src/tar.c (decode_options): Do not allow volume length less
  142. than record size.
  143. * src/buffer.c (_gnu_flush_write): Compensate for the effect
  144. of eventual flush_archive occurring in the middle of buffer
  145. move.
  146. Increment records_written only if _flush_write was able to write
  147. something.
  148. * tests/multiv06.at: New testcase.
  149. * tests/Makefile.am, test/testsuite.at: Add tests/multiv06.at
  150. 2008-06-26 Sergey Poznyakoff <[email protected]>
  151. * configure.ac, NEWS: Version 1.20.90
  152. * doc/tar.texi: Document -J, --no-auto-compress, etc.
  153. * src/buffer.c (ct_tar): New constant.
  154. (magic): Add lzop support. Proposed by Kevin Day
  155. <[email protected]>.
  156. (check_compressed_archive): Do not use autodetect if the
  157. compression program was specified explicitly.
  158. Fall back to analyzing archive name, if the autodetection fails.
  159. * src/suffix.c: Add .lzo
  160. * src/tar.c: New options --lzop and --no-auto-compress.
  161. New short option -J (alias for --lzma).
  162. * src/buffer.c (try_new_volume): Print more information with error
  163. diagnostics.
  164. (_gnu_flush_write): Improve error checking. Adjust
  165. real_s_sizeleft before calling new_volume to avoid creating
  166. malformed multivolume headers.
  167. * tests/delete05.at, tests/gzip.at, tests/ignfail.at,
  168. tests/longv7.at, tests/lustar01.at, tests/lustar02.at,
  169. tests/shortfile.at: Update to match new diagnostic wording
  170. (see 2008-05-06).
  171. * NEWS: Update.
  172. 2008-06-14 Sergey Poznyakoff <[email protected]>
  173. * doc/tar.texi (exclude): Document support for new VCS.
  174. * THANKS: Update.
  175. * NEWS: Update.
  176. * tests/multiv05.at: Fix typos.
  177. * tests/volsize.at: Remove a TZ dependency.
  178. 2008-06-14 Dan Drake <[email protected]> (tiny change)
  179. * src/tar.c (exclude_vcs_files): Support for Bazaar, Mercurial and
  180. Darcs.
  181. 2008-05-06 Sergey Poznyakoff <[email protected]>
  182. * src/tar.c (main): Reword the "delayed error" message. New
  183. wording proposed by Karl Berry.
  184. 2008-02-20 Sergey Poznyakoff <[email protected]>
  185. * configure.ac: Raise version number to 1.20
  186. * src/compare.c (diff_dumpdir): const.
  187. * src/common.h (dumpdir_t,dumpdir_iter_t): New data types.
  188. (dumpdir_create0,dumpdir_create,dumpdir_free,dumpdir_locate)
  189. (dumpdir_first,dumpdir_next): New functions.
  190. * src/incremen.c (dumpdir_create0,dumpdir_create,dumpdir_free)
  191. (dumpdir_first,dumpdir_next): New functions.
  192. (dumpdir_locate): Rewrite using binary search.
  193. (struct directory): Change members char *contents, *icontents to
  194. struct dumpdir *dump, *idump. All references updated.
  195. (note_directory): Last arg is const.
  196. * src/names.c (add_hierarchy_to_namelist): buffer is const.
  197. * tests/incr03.at, tests/incr04.at, tests/rename02.at,
  198. tests/rename03.at: Insert calls to sleep between creation of files
  199. and adding them to the archive.
  200. 2008-03-31 Sergey Poznyakoff <[email protected]>
  201. * src/create.c (dump_file0): Count links only for actually dumped
  202. files.
  203. 2008-03-27 Sergey Poznyakoff <[email protected]>
  204. * NEWS: Document --no-check-device and --check-device.
  205. * doc/rendition.texi: Change the way FIXME-*refs are handled in
  206. !PROOF.
  207. * doc/intern.texi, doc/tar.texi: Update.
  208. * doc/untabify.el: New file.
  209. * doc/Makefile.am (EXTRA_DIST): Add untabify.el
  210. (untabify, final, check-format, check-refs, check-fixmes)
  211. (check-unrevised, all-check-docs, check-docs): New rules.
  212. * src/common.h (check_device_option): New global.
  213. * src/incremen.c (procdir): Use boolean and instead of bitwise
  214. one. Patch by Jean-Louis Martineau.
  215. Compare device numbers only if check_device_option is set.
  216. * src/tar.c: New command line options --no-check-device and
  217. --check-device. Proposed by Jean-Louis Martineau.
  218. (parse_opt): Hanlde new options.
  219. (decode_options): Initialize check_device_option to true.
  220. * THANKS: Update
  221. 2008-03-06 Sergey Poznyakoff <[email protected]>
  222. * bootstrap: Use rsync to get translations.
  223. * doc/tar.texi: Minor change.
  224. * lib/.cvsignore: Update
  225. * po/.cvsignore: Update
  226. * src/system.c: Remove include setenv.h.
  227. * tests/atlocal.in (STAR_DATA_URL): Update.
  228. * tests/star/README: Update URL.
  229. 2008-02-09 Sergey Poznyakoff <[email protected]>
  230. * doc/tar.texi: Fix a typo. Reported by Denis Excoffier.
  231. 2008-02-08 Sergey Poznyakoff <[email protected]>
  232. * NEWS: Update.
  233. * configure.ac: Version 1.19.90
  234. * po/POTFILES.in: Add missing files.
  235. * src/compare.c (verify_volume): Honor --ignore-zeros.
  236. Proposed by Jan-Benedict Glaw.
  237. * tests/shortfile.at (AT_KEYWORDS): Add shortfile0.
  238. 2008-02-07 Sergey Poznyakoff <[email protected]>
  239. * NEWS: Update.
  240. * src/create.c (dump_file0): Apply transform_name to symlink
  241. targets.
  242. 2008-02-04 Sergey Poznyakoff <[email protected]>
  243. * src/transform.c: Support multiple --transform options. Support
  244. semicolon-separated lists of replace expressions.
  245. * NEWS, tar.texi: Document changes to the --transform option.
  246. 2008-01-30 Paul Eggert <[email protected]>
  247. * doc/tar.texi: Update Back-Cover text to reflect new GNU wording.
  248. 2007-12-17 Paul Eggert <[email protected]>
  249. Exit with nonzero status if a close fails on an archive.
  250. Problem (and initial trivial fix)
  251. * src/buffer.c (close_archive, new_volume): close_error, not
  252. close_warn.
  253. 2007-12-05 Sergey Poznyakoff <[email protected]>
  254. * src/buffer.c (check_compressed_archive): Do not bail out if the
  255. file is too short, set boolean flag, passed as an argument
  256. instead. This fixes a bug introduced on 2007-08-24. See also
  257. tests/shortupd.at.
  258. * tests/Makefile.am, tests/testsuite.at: Add shortupd.at.
  259. * tests/shortupd.at: New test.
  260. 2007-11-12 Jim Meyering <[email protected]>
  261. Don't read from name[-1].
  262. * src/incremen.c (make_directory): Handle namelen == 0, since
  263. find_directory_meta calls make_directory ("").
  264. 2007-11-07 Sergey Poznyakoff <[email protected]>
  265. * bootstrap (checkout): Use URL of the gnulib CVS mirror.
  266. * gnulib.modules: Add fseeko and snprintf.
  267. 2007-10-31 Sergey Poznyakoff <[email protected]>
  268. * src/checkpoint.c: New actions: bell and ttyout
  269. * src/system.c (sys_exec_info_script)
  270. (sys_exec_checkpoint_script): pass the current blocking factor in
  271. TAR_BLOCKING_FACTOR environment variable.
  272. * doc/tar.texi: Update
  273. * NEWS: Update
  274. 2007-10-30 Sergey Poznyakoff <[email protected]>
  275. * doc/Makefile.am: Use texi2html and the CVS version of gendocs.sh
  276. to create HTML versions of the manual.
  277. * doc/gendocs_template: Likewise.
  278. * doc/tar.texi: Document --hard-dereference and
  279. --checkpoint-action options. Improve documentation of
  280. --check-links.
  281. 2007-10-29 Sergey Poznyakoff <[email protected]>
  282. * NEWS: Update
  283. * configure.ac: Version 1.19.1
  284. * po/POTFILES.in: Add src/checkpoint.c
  285. * src/Makefile.am (tar_SOURCES): add checkpoint.c
  286. * src/checkpoint.c: New file - checkpoint handling.
  287. * src/buffer.c (checkpoint, do_checkpoint): Remove.
  288. (_flush_write, simple_flush_read, _gnu_flush_read): Use
  289. checkpoint_run.
  290. * src/common.h (enum checkpoint_style): Remove.
  291. (checkpoint_style): Remove.
  292. (DEFAULT_CHECKPOINT): New define.
  293. (hard_dereference_option): New variable.
  294. (sys_exec_checkpoint_script): New declaration.
  295. * src/create.c (file_count_links): do nothing if
  296. hard_dereference_option is set.
  297. * src/system.c (sys_exec_checkpoint_script): New function.
  298. (sys_exec_info_script): Restore SIGPIPE handler.
  299. * src/tar.c: (parse_opt): New options --hard-dereference,
  300. --checkpoint-action.
  301. (decode_options): Call checkpoint_finish_compile.
  302. * src/system.c (sys_exec_info_script): Initialize buf. Problem
  303. reported by Bengt-Arne Fjellner.
  304. 2007-10-18 Jim Meyering <[email protected]>
  305. Avoid compiler warnings.
  306. * src/list.c (read_header_primitive): Define two locals, to
  307. avoid incorrect "may be used uninitialized" warnings.
  308. * src/incremen.c (procdir): Remove decl of unused local, "len".
  309. 2007-10-18 Sergey Poznyakoff <[email protected]>
  310. * doc/tar.texi (gzip): Remove compression patent
  311. warning. According to Brett Smith, the patent is
  312. expired.
  313. 2007-10-17 Sergey Poznyakoff <[email protected]>
  314. * src/suffix.c: New file. Compress format detection by archive
  315. suffix (when creating). Suggested by Jean-Pierre Demailly.
  316. * src/Makefile.am: Add suffix.c
  317. * src/buffer.c (magic): Add an entry for new lzma format. Proposed
  318. by Lasse Collin.
  319. * src/common.h (set_comression_program_by_suffix): New prototype.
  320. * src/tar.c: New options --auto-compress (-a) and --lzma
  321. * THANKS: Add Lasse Collin and Jean-Pierre Demailly.
  322. * NEWS: Update
  323. * doc/tar.texi: Update
  324. 2007-10-12 Paul Eggert <[email protected]>
  325. * src/utf8.c (string_ascii_p): Recode to avoid bogus GCC 4.2.1
  326. warning about "comparison is always true due to limited range of
  327. data type" when char is unsigned.
  328. 2007-10-11 Paul Eggert <[email protected]>
  329. Adjust to recent gnulib changes.
  330. * configure.ac: Dont' check for strerror, since gnulib now does this.
  331. * .cvsignore: Add m4, tar-[0-9]*.
  332. * lib/.cvsignore: Adjust to various gnulib file name changes.
  333. Add .deps, rmt-command.h.
  334. 2007-10-10 Sergey Poznyakoff <[email protected]>
  335. * configure.ac, NEWS: Raise version number to 1.19
  336. * tests/star/README: Update
  337. 2007-10-05 Sergey Poznyakoff <[email protected]>
  338. * src/create.c (dump_regular_file): Fix file padding in case of
  339. truncation to zero size.
  340. * NEWS: Update
  341. 2007-10-04 Sergey Poznyakoff <[email protected]>
  342. * tests/T-null.at: Use AT_DATA for sample output.
  343. 2007-10-03 Sergey Poznyakoff <[email protected]>
  344. * src/incremen.c (try_purge_directory): Ensure that arguments to T
  345. and R are safe.
  346. 2007-09-29 Sergey Poznyakoff <[email protected]>
  347. * src/incremen.c (obstack_code_rename): Apply safer_name_suffix to
  348. name arguments before storing them in T and R records. Reported by
  349. Nicholas Cole.
  350. 2007-09-27 Sergey Poznyakoff <[email protected]>
  351. * configure.ac: Raise version number to 1.18.90
  352. * NEWS: Likewise
  353. * doc/snapshot.texi: Document version 2.
  354. * doc/dumpdir.texi: Update.
  355. Implement --exclude-tag* and --exclude-cache* options for listed
  356. incremental archives.
  357. New option --exclude-vcs to exclude VCS-specific files and
  358. directories.
  359. * NEWS: Update
  360. * doc/tar.texi: Document --exclude-vcs option
  361. * src/common.h (exclusion_tag_warning, check_exclusion_tags): New
  362. prototypes.
  363. * src/create.c (exclusion_tag_warning, check_exclusion_tags):
  364. Remove static qualifier.
  365. (check_exclusion_tags): account for dirname without terminating
  366. slash.
  367. (dump_dir0): exclusion_tag_all is handled elsewhere.
  368. * src/incremen.c (struct directory): New member tagfile
  369. (make_directory): Initialize tagfile to NULL
  370. (procdir): New argument: entry
  371. Hanlde exclusion tags.
  372. (makedumpdir): Take into account directory->tagfile.
  373. (scan_directory): Hanlde exclusion tags.
  374. * src/tar.c: New option --exclude-vcs
  375. (exclude_vcs_files): New function
  376. 2007-09-14 Paul Eggert <[email protected]>
  377. * AUTHORS: Remove unnecessary information. Just list the
  378. principal authors.
  379. * THANKS: Remove info duplicated from AUTHORS.
  380. 2007-08-25 Jim Meyering <[email protected]>
  381. Don't include <getline.h>. No longer needed.
  382. * src/incremen.c: Don't include <getline.h>. No longer needed.
  383. * src/buffer.c: Likewise.
  384. * src/system.c: Likewise.
  385. * src/tar.c: Likewise.
  386. Avoid shadowing and unused-variable warnings.
  387. * src/create.c (check_exclusion_tags): Remove declaration of unused
  388. local, "ret".
  389. * src/compare.c (diff_dumpdir): Rename stat->stat_data to avoid
  390. shadowing the syscall.
  391. * src/buffer.c (do_checkpoint): Don't shadow the write syscall.
  392. (try_new_volume): Avoid shadowing "access".
  393. * src/tar.c (decode_options): Rename index->idx to avoid shadowing.
  394. (find_argp_option): Rename option->o to avoid shadowing.
  395. * src/incremen.c (scan_directory): Rename local, dir_name->dir,
  396. to avoid shadowing the function.
  397. (get_directory_contents): Likewise.
  398. * src/system.c (global_pid): Rename from "pid", to avoid being
  399. shadowed by locals.
  400. * src/extract.c (apply_nonancestor_delayed_set_stat):
  401. Rename st->sb to avoid shadowing another local.
  402. 2007-08-24 Sergey Poznyakoff <[email protected]>
  403. * configure.ac, NEWS: Raise version number to 1.18.1
  404. * src/buffer.c (check_compressed_archive): Detect files smaller
  405. than 512 bytes.
  406. * tests/shortfile.at: New test case for the above change.
  407. * tests/testsuite.at, tests/Makefile.am: Add shortfile.at
  408. 2007-08-19 Sergey Poznyakoff <[email protected]>
  409. * bootstrap: Gnulib initialization destroyed paxutils m4 files.
  410. Initialize paxutils structure after that of gnulib.
  411. 2007-08-12 Sergey Poznyakoff <[email protected]>
  412. * src/names.c (contains_dot_dot): Fix double-dot recognition in
  413. case of duplicate /. Patch by Dmitry V. Levin.
  414. * bootstrap (symlink_to_gnulib): Make sure the target directory
  415. exists and create it if it does not.
  416. * doc/tar.texi: Fix a typo.
  417. 2007-06-28 Sergey Poznyakoff <[email protected]>
  418. * bootstrap: Update for the change of the TP URL
  419. 2007-06-27 Sergey Poznyakoff <[email protected]>
  420. Relicense under GPLv3
  421. 2007-06-21 Sergey Poznyakoff <[email protected]>
  422. * tests/testsuite.at (AT_TAR_MKHIER): Skip test if genfile is
  423. unable to create the file
  424. * tests/lustar01.at: Likewise
  425. 2007-06-21 Eric Blake <[email protected]>
  426. Resolve testsuite failures 40-42 on cygwin.
  427. * tests/testsuite.at (AT_TAR_MKHIER): Skip tests when long
  428. file names cannot be created.
  429. 2007-06-16 Sergey Poznyakoff <[email protected]>
  430. * doc/Makefile.am (tar_TEXINFOS): Add tar-snapshot-edit.texi
  431. * doc/tar-snapshot-edit.texi: New file
  432. * doc/tar.texi (Fixing Snapshot Files): New appendix
  433. * scripts/tar-snapshot-edit: New file
  434. * tests/extrac07.at: Add back write permissions on dir
  435. 2007-06-09 Sergey Poznyakoff <[email protected]>
  436. * tests/exclude.at: Sort the output.
  437. 2007-06-08 Sergey Poznyakoff <[email protected]>
  438. * configure.ac, NEWS: Raise version number to 1.17
  439. * doc/tar.texi, doc/intern.texi: Replace: s/filename/file name/;
  440. s/(ASCII|ID|BSD)/@acronym{&}/;s/"[^"]+"/``&''/
  441. Use `path' only when it refers to search paths, use
  442. `file name' otherwise.
  443. Fix various errors (based on patch by Benno Schulenberg)
  444. * doc/tar.texi (Operation Summary): Restore alphabetical order of
  445. the options.
  446. 2007-06-02 Sergey Poznyakoff <[email protected]>
  447. Fix bug, introduced on 2007-03-30.
  448. * src/common.h (xform_type): New data type
  449. (transform_member_name): Last argument is of xform_type type
  450. All callers updated
  451. * src/extract.c: Update calls to transform_member_name
  452. * src/list.c (decode_xform): Exempt symbolic links from component
  453. stripping and name suffix normalization.
  454. * tests/extrac07.at: Update
  455. 2007-05-30 Sergey Poznyakoff <[email protected]>
  456. * src/xheader.c (decx): Unknown pax keywords produce a warning,
  457. not error.
  458. 2007-05-29 Paul Eggert <[email protected]>
  459. * src/misc.c (set_file_atime): Use gl_futimens, not futimens,
  460. due to gnulib change.
  461. 2007-05-19 Sergey Poznyakoff <[email protected]>
  462. * src/common.h (buffer_write_global_xheader): New function
  463. (struct xheader): Move definition to tar.h
  464. (extended_header): Remove global
  465. (xheader_init): New function
  466. (xheader_decode_global,xheader_store,xheader_read)
  467. (xheader_write_global,xheader_write,xheader_string_begin)
  468. (xheader_string_add,xheader_string_end): Take xhdr as first
  469. argument.
  470. * src/tar.h (struct xheader): New definition
  471. (struct tar_stat_info): New member xhdr (extended header).
  472. * src/xheader.c (xheader_init): New function
  473. (xheader_decode_global,xheader_store,xheader_read)
  474. (xheader_write_global,xheader_write,xheader_string_begin)
  475. (xheader_string_add,xheader_string_end): Take xhdr as first
  476. argument.
  477. * src/buffer.c (buffer_write_global_xheader): New function
  478. Update to use new xheader calls.
  479. * src/compare.c, src/create.c, src/delete.c, src/list.c,
  480. src/sparse.c, src/tar.c, src/update.c: Global extended_header
  481. removed, use new xheader calls instead.
  482. * tests/T-null.at: Minor fix
  483. * tests/atlocal.in (tarball_prereq): Discard eventual md5sum
  484. output.
  485. 2007-05-18 Sergey Poznyakoff <[email protected]>
  486. * src/create.c (dump_file0): Original ctime cannot be used as a
  487. directory change indicator if --remove-files is given.
  488. 2007-04-12 Paul Eggert <[email protected]>
  489. Adjust to latest Gnulib.
  490. * lib/.cvsignore: Add dirfd.c, dirfd.h, float+.h, mbscasecmp.c,
  491. stdio.h, stdio_.h, stdlib.h, stdlib_.h, time.h, time_.h, unistd.h.
  492. Remove exit.h, getcwd.h, mempcpy.h, memrchr.h, mkdtemp.h, stpcpy.h,
  493. strcase.h, strchrnul.h, strdup.h, strndup.h, strnlen.h, time_r.h,
  494. vsnprintf.h.
  495. * m4/.cvsignore: Remove localedir.h. Sort.
  496. 2007-04-03 Paul Eggert <[email protected]>
  497. * src/common.h (closeopen): Remove decl.
  498. * src/misc.c: Don't include <sys/time.h>, <sys/resource.h>; no longer
  499. needed.
  500. (get_max_open_files, closeopen): Remove. All callers removed.
  501. (chdir_dir): Use a different technique, which doesn't rely on closing
  502. all open files.
  503. * src/tar.c (main): Don't call closeopen.
  504. 2007-04-04 Sergey Poznyakoff <[email protected]>
  505. * NEWS: Update
  506. * doc/tar.texi: Update
  507. * src/system.c (sys_exec_info_script): Store the
  508. inter-communication fd in the environment variable TAR_FD
  509. 2007-04-03 Sergey Poznyakoff <[email protected]>
  510. * src/tar.c (main): Move closeopen after decode_options to
  511. allow shell process substitution to work.
  512. * tests/extrac07.at: Expect a warning on stderr.
  513. 2007-03-30 Sergey Poznyakoff <[email protected]>
  514. * src/common.h (transform_name_fp): Change signature
  515. (transform_member_name): New function
  516. * src/extract.c (extract_link, extract_symlink): Use
  517. transform_member_name instead of safer_name_suffix so that
  518. --transform and --strip-components affect links as well.
  519. * src/list.c (transform_member_name): New function
  520. (decode_header): Use transform_member_name
  521. * src/names.c (all_names_found): Remove check for matching_flags.
  522. * NEWS: Update
  523. * TODO: Update
  524. * bootstrap (slurp): Remove any occurrences of $bt from the
  525. generated gnulib.mk
  526. * src/incremen.c: Do not include mkdtemp.h
  527. 2007-01-26 Paul Eggert <[email protected]>
  528. Adjust to recent gnulib changes.
  529. * lib/.cvsignore: Add fchownat.c, rmt-command.h, strerror.c, string.h,
  530. string_.h, sys, sys_time_.h, unistd_.h, wchar_.h, wctype_.h.
  531. Remove localedir.h, size_max.h, xsize.h.
  532. * src/xheader.c: Don't include stpcpy.h; no longer needed, now that
  533. gnulib string.h defines stpcpy on all platforms.
  534. 2007-01-23 Sergey Poznyakoff <[email protected]>
  535. * doc/tar.texi: Document --exclude-caches* and --exclude-tag*
  536. options.
  537. * src/common.h (exclude_caches_option): Remove
  538. (enum exclusion_tag_type): New data type
  539. (add_exclude_tag): Rename to add_exclusion_tag
  540. (cachedir_file_p): New prototype
  541. * src/create.c (struct exclude_tag): rename to exclusion_tag
  542. (check_exclusion_tags): New function
  543. (cachedir_file_p): New function (from check_cache_directory)
  544. (dump_dir0,dump_file0): Use check_exclusion_tags
  545. * src/tar.c: New options --exclude-caches-all,
  546. --exclude-caches-under, --exclude-tag-all, --exclude-tag-under
  547. * tests/exclude.at: New file
  548. * tests/Makefile.am (TESTSUITE_AT): Add exclude.at
  549. * tests/testsuite.at: Add exclude.at
  550. 2007-01-19 Sergey Poznyakoff <[email protected]>
  551. * gnulib.modules: Require strerror
  552. * doc/gendocs_template: Fix typos
  553. * scripts/xsparse.c (expand_sparse): use ftruncate to handle the
  554. trailing hole
  555. * src/sparse.c (sparse_skip_file,pax_dump_header_1)
  556. (pax_decode_header): Keep track of the number of bytes
  557. written.
  558. * configure.ac: Version 1.16.2
  559. * NEWS: Update
  560. 2007-01-04 Sergey Poznyakoff <[email protected]>
  561. * src/compare.c (diff_dumpdir): Compare directory contents using
  562. dumpdir_cmp. Do not free dumpdir_buffer, it will leave the
  563. incremental directory table in the inconsistent state and trigger
  564. full dump.
  565. (read_and_process): Process dumpdirs no matter what the archive
  566. format.
  567. * src/incremen.c (list_dumpdir): Minor fixes.
  568. * src/compare.c (read_and_process): Fix type of "size"
  569. 2006-12-13 Sergey Poznyakoff <[email protected]>
  570. * tests/T-null.at: Skip the test if genfile is not able to create
  571. the filename with an embedded newline.
  572. 2006-12-12 Paul Eggert <[email protected]>
  573. Port to Forte Developer 7 C 5.4 and C99.
  574. * src/common.h (add_exclude_tag): Add decl; C99 requires this
  575. and Forte warns about it.
  576. * src/incremen.c: Include <mkdtemp.h> for mkdtemp prototype,
  577. for same reason.
  578. * src/misc.c (get_max_open_files): Rewrite to avoid code that
  579. Forte C complains about as being unreachable.
  580. * src/xheader.c (mtime_code): Rewrite to avoid Forte error
  581. reported by Trond Hasle Amundsen.
  582. * src/incremen.c (compare_dirnames): Rewrite to avoid casts.
  583. * src/utf8.c (string_ascii_p): Likewise.
  584. * src/xheader.c (mtime_coder, volume_size_coder, volume_offset_coder):
  585. Likewise.
  586. 2006-12-08 Sergey Poznyakoff <[email protected]>
  587. * bootstrap: Add paxutils files to dot_ignore.
  588. * configure.ac: Raise version number to 1.16.1
  589. * bootstrap (slurp): Create .(cvs|git)ignore if not present
  590. * po/.cvsignore, m4/.cvsignore: Remove automatically generated
  591. files.
  592. 2006-12-07 Sergey Poznyakoff <[email protected]>
  593. * NEWS: Update
  594. * Makefile.am (distclean-local): Fixed
  595. * doc/tar.texi: Update documentation of --exclude-tag
  596. * src/create.c (dump_dir0): Move checks for exclude tags to
  597. dump_file0.
  598. (dump_dir): Move calls to ensure_slash to dump_file0
  599. * src/extract.c (extract_file): Call skip_member if open fails.
  600. Patch proposed by Jan-Benedict Glaw <[email protected]>
  601. * tests/truncate.at: Use genfile instead of dd, because on some
  602. systems /dev/zero is not available.
  603. 2006-12-04 Paul Eggert <[email protected]>
  604. * NEWS: Fix some race conditions with tar -x --same-owner.
  605. * src/extract.c (ARCHIVED_PERMSTATS): Add a comment saying that
  606. S_IRWXG | S_IRWXO might be masked out.
  607. (set_mode): Set the mode if some bits were masked out originally.
  608. (set_stat): Don't chmod before chown, as that might temporarily
  609. grant permissions that we don't want to grant. The chmod was
  610. there only to work around broken hosts, so add a comment advising
  611. users not to use those broken hosts instead.
  612. (repair_delayed_set_stat, extract_dir):
  613. Remember to mask out current umask before inverting permissions.
  614. (extract_dir): If the owner might change, or if the mode has
  615. special bits, create the directory 700 at first, but restore it later.
  616. (open_output_file): New arg mode; all uses changed.
  617. (extract_file, extract_node, extract_fifo): If the owner might
  618. change, omit group and other bits at first, but restore them after
  619. changing the owner.
  620. 2006-12-04 Jim Meyering <[email protected]>
  621. * doc/tar.texi (Long Options): Remove doubled word.
  622. 2006-11-30 Sergey Poznyakoff <[email protected]>
  623. * src/xheader.c (xheader_read): Remove unused variable
  624. * po/POTFILES.in: Remove src/mangle.c
  625. * bootstrap: Implement --update-po and .bootstrap
  626. * src/create.c (dump_dir0): Implement --exclude-tag option
  627. * src/tar.c: Likewise
  628. * doc/tar.texi (exclude): Document --exclude-tag
  629. 2006-11-29 Paul Eggert <[email protected]>
  630. * NEWS: Remove support for mangled names.
  631. * doc/tar.texi (verbose tutorial): Likewise.
  632. * src/Makefile.am (tar_SOURCES): Remove mangle.c.
  633. * src/common.h (extract_mangle): Remove decl.
  634. * src/extract.c (extract_mangle_wrapper): Remove.
  635. (prepare_to_extract): Remove support for mangled names.
  636. * src/list.c (read_and, print_header): Likewise.
  637. * src/mangle.c: Remove.
  638. * src/tar.h (GNUTYPE_NAMES): Remove.
  639. Port to latest gnulib. There were a lot of changes, so the
  640. simplest way to get this up and running was to switch to coreutils
  641. bootstrap procedure. I noticed one feature missing after this
  642. merge: the ability to update a single .po file. I can add that
  643. later if need be.
  644. * README-cvs, bootstrap.conf: New files.
  645. * lib/.cvsignore: Remove Makefile.am, printf-parse.c, vasnprintf.c.
  646. Add fstatat.c, gnulib.mk, openat-proc.c, same-inode.h, stat_.h,
  647. tempname.c, tempname.h, uinttostr.c.
  648. * lib/printf-parse.c, lib/vasnprintf.c: New files, from coreutils,
  649. to override gnulib, so that we don't need xsize.h.
  650. * bootstrap: Replace with coreutils bootstrap, except add support
  651. for paxutils.
  652. * configure.ac (gl_USE_SYSTEM_EXTENSIONS): Remove, as gl_EARLY now
  653. does this.
  654. (gl_EARLY, gl_INIT): Add.
  655. (tar_GNULIB): Remove.
  656. * gnulib.modules: Add configmake.
  657. * lib/Makefile.tmpl: Remove, replacing with....
  658. * lib/Makefile.am: New file.
  659. * src/Makefile.am (tar.o): Remove dependency: Automake does this
  660. for us.
  661. * src/tar.c: Include <configmake.h> and <rmt-command.h>, not
  662. <localedir.h>.
  663. 2006-11-13 Sergey Poznyakoff <[email protected]>
  664. * src/xheader.c (mtime_coder): Treat non-null data as a pointer to
  665. struct timespec, overriding st->mtime
  666. * src/create.c (start_header): Pass mtime as a call-specific data
  667. to xheader_store.
  668. * tests/truncate.at: Do not use 'k' modifier in dd options.
  669. * tests/append02.at: Do not depend on command timing.
  670. 2006-11-01 Sergey Poznyakoff <[email protected]>
  671. * src/tar.c (enum read_file_list_state.file_list_skip): New value
  672. (read_name_from_file): Skip zero-length entries
  673. * tests/T-empty.at: New test case
  674. * tests/T-null.at: New test case
  675. * tests/extrac07.at: New test case
  676. * tests/Makefile.am: Add new test cases.
  677. * tests/testsuite.at: Add new test cases.
  678. * tests/extrac02.at: Add more keywords
  679. * tests/extrac04.at: Likewise
  680. * tests/extrac06.at: Likewise
  681. * tests/shortrec.at: Do not assume tar's default archive is stdout
  682. 2006-10-31 Sergey Poznyakoff <[email protected]>
  683. * src/extract.c, src/xheader.c: Call last_component instead of
  684. base_name. The latter returns a malloced string since 2006-03-11.
  685. 2006-10-21 Sergey Poznyakoff <[email protected]>
  686. * NEWS, configure.ac: Version 1.16
  687. * Makefile.am (distclean-local): New rule
  688. 2006-10-17 Sergey Poznyakoff <[email protected]>
  689. * src/tar.c: Fix help output formatting. Thanks Benno
  690. Schulenberg.
  691. 2006-10-16 Sergey Poznyakoff <[email protected]>
  692. * Makefile.am (dist-hook): Create a cpio archive.
  693. * NEWS: Update
  694. 2006-10-14 Sergey Poznyakoff <[email protected]>
  695. * doc/tar.texi (Synopsis): Document tar exit codes.
  696. * src/create.c (dump_regular_file,dump_file0): Set exit_status to
  697. TAREXIT_DIFFERS if the file being dumped was truncated or
  698. otherwise changed.
  699. * src/tar.c: Do not attempt to close stderr after call to
  700. close_stdout.
  701. * tests/grow.at: New test case
  702. * tests/Makefile.am: New test grow.at
  703. * tests/testsuite.at: Likewise
  704. * tests/truncate.at (AT_KEYWORDS): Keyword `filechange'
  705. Test tar exit status.
  706. * src/buffer.c (_open_archive): Make sure stdlis is set to stderr
  707. when we are writing archive to stdout (unless --index-file is
  708. used). Bug introduced on 2006-07-06.
  709. * tests/Makefile.am: New test verbose.at
  710. * tests/testsuite.at: Likewise
  711. * tests/indexfile.at (AT_KEYWORDS): Add stdout keyword
  712. * tests/verbose.at: New test case
  713. 2006-10-02 Sergey Poznyakoff <[email protected]>
  714. * THANKS: Add Joerg Weilbier
  715. * src/buffer.c (new_volume): Initialize current_block
  716. * src/xheader.c (xheader_string_end): Fix diagnostic message.
  717. * tests/multiv05.at: New testcase.
  718. * tests/Makefile.am, tests/testsuite.at: Add multiv05.at
  719. 2006-09-27 Sergey Poznyakoff <[email protected]>
  720. * bootstrap: Use ${package} instead of hardcoding package name
  721. * doc/tar.texi: Minor fix
  722. * src/tar.c (doc0, doc1, initialize_argp_doc): Removed. Rely on
  723. the new argp method instead.
  724. 2006-09-12 Sergey Poznyakoff <[email protected]>
  725. * README: Fix a typo
  726. 2006-09-08 Paul Eggert <[email protected]>
  727. Adjust to latest gnulib.
  728. * lib/.cvsignore: Add at-func.c, configmake.h, fchmodat.c,
  729. fcntl.h, fcntl_.h, inttypes_.h, lstat.c, lstat.h.
  730. * tests/testsuite.at (AT_TAR_MKHIER): Use install-sh -d
  731. rather than the no-longer-included mkinstalldirs.
  732. 2006-09-08 Sergey Poznyakoff <[email protected]>
  733. * src/incremen.c (try_purge_directory): Initialize struct st. Fix
  734. condition for selecting candidates for removal.
  735. * README-alpha: List texinfo among build prerequisites for the CVS
  736. version.
  737. * bootstrap (intl_files_to_remove): Do not remove m4/inttypes-h.m4
  738. and m4/inttypes-pri.m4
  739. 2006-08-11 Paul Eggert <[email protected]>
  740. * bootstrap: Set XGETTEXT_OPTIONS to flag our printf-format functions,
  741. so that translators are warned about strings that are formats but
  742. don't look like formats. This might help prevent core dumps.
  743. * configure.ac (AM_GNU_GETTEXT): Upgrade to need-formatstring-macros.
  744. Suggested by Eric Blake to avoid problems like
  745. <http://lists.gnu.org/archive/html/bug-coreutils/2006-07/msg00087.html>.
  746. (AM_GNU_GETTEXT_VERSION): Upgrade from 0.12.1 to 0.15. The gettext
  747. manual says we should use the version number normally expected of
  748. maintainers, neither more nor less.
  749. * bootstrap (get_translations):
  750. Don't exclude ky.po; it is working again.
  751. 2006-08-09 Paul Eggert <[email protected]>
  752. * bootstrap (get_translations):
  753. Don't exclude ja.po; it is working again.
  754. Don't remove all old .po files if we're merely updating one.
  755. * po/.cvsignore: Add Makevars.
  756. 2006-08-07 Paul Eggert <[email protected]>
  757. * src/tar.c: Work around limitation imposed by gettext 0.15
  758. by concatenating strings with "\v" after translation.
  759. (doc): Remove, splitting into:
  760. (doc0, doc1): New constants.
  761. (argp): Don't use doc; just initialize to NULL.
  762. (initialize_argp_doc): New function.
  763. (decode_options): Use it.
  764. * bootstrap: Redo po file retrieval to match Bison's method,
  765. since the translation project changed its index format.
  766. Don't use --assume-autoconf; it's now replaced
  767. by looking in configure.ac.
  768. (m4/codeset.m4, m4/intdiv.m4, m4/inttypes-pri.m4, m4/isc-posix.m4):
  769. (m4/lcmessage.m4, m4/onceonly_2_57.m4, m4/gettext.m4, m4/glibc21.m4):
  770. (m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-prefix.m4, m4/po.m4):
  771. (m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4):
  772. Don't rename to ..._gl.m4, as this is no longer needed.
  773. (m4/geteext.m4): Patch to remove the need for intl/*.
  774. Use autopoint manually, then remove the intl files,
  775. then undo changes to gnulib files that autoreconf made,
  776. and then run aclocal/autoconf/autoheader/automake.
  777. This makes our bootstrap procedure closer to Bison's.
  778. (po/Makevars): Generate automatically.
  779. * configure.ac (AC_PREREQ): Update from 2.59 to 2.60.
  780. (gl_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T): Remove.
  781. * gnulib.modules: Add inttypes, stdint.
  782. * lib/.cvsignore: Add close-stream.c, close-stream.h,
  783. stdint.h, stdint_.h.
  784. * po/Makefile: Remove; now automatically generated.
  785. * src/incremen.c (read_incr_db_01): Check input strings more
  786. carefully. Do not pass arbitrary char values to isspace, as
  787. this has undefined behavior. Likewise for assigning arbitrary
  788. uintmax_t values to other types.
  789. (read_negative_num, read_unsigned_num, read_timespec):
  790. New functions, to check input values a bit more carefully.
  791. (read_num): Use read_unsigned_num. New arg MAX_VAL;
  792. all callers changed.
  793. (read_incr_db_2): Use these new functions.
  794. Use a consistent diagnostic for unexpected EOF.
  795. (read_directory_file): Do not assign arbitrary uintmax_t value
  796. to int.
  797. (read_timespec, write_directory_file_entry, write_directory_file):
  798. Handle negative time_t values correctly. We don't bother to do
  799. this with pre-2 formats, since presumably the time stamps were
  800. output incorrectly.
  801. * src/tar.c (doc): Don't use \v in an argument to gettext;
  802. gettext 0.15 rejects this.
  803. 2006-07-24 Sergey Poznyakoff <[email protected]>
  804. * src/tar.c (decode_options): Do not require -L with -M -Hpax.
  805. It could be needed in future, but currently it is not.
  806. * src/create.c (to_chars_subst): Update comment regarding OLDGNU
  807. vs. GNU format differences.
  808. (mode_to_chars): Treat OLDGNU_FORMAT same as GNU_FORMAT. Fixes bug
  809. reported by TAMUKI Shoichi <[email protected]>, which caused
  810. equivalent `tar cf ...' and `tar rf ...' commands to produce
  811. different archives.
  812. * tests/append02.at: New test case
  813. * tests/Makefile.am, tests/testsuite.at: Add append02.at
  814. 2006-07-20 Paul Eggert <[email protected]>
  815. * bootstrap: Adjust to today's change to gnulib-tool by invoking
  816. it with --assume-autoconf='latest-stable'.
  817. 2006-07-16 Paul Eggert <[email protected]>
  818. Adjust to recent gnulib changes.
  819. * lib/.cvsignore: Remove atexit.c, exit.c, getndelim2.c, getndelim2.h,
  820. pathmax.h, paxconvert.c, paxerror.h, xstrdup.c.
  821. Add inttypes.h, mktime.c, wcwidth.h, xstrndup.c, xstrndup.h.
  822. * src/create.c (start_header): Adjust to API change to mode_adjust.
  823. 2006-07-09 Sergey Poznyakoff <[email protected]>
  824. * THANKS: Add Ralf Wildenhues
  825. * NEWS: Update
  826. 2006-07-09 Ralf Wildenhues <[email protected]>
  827. * doc/dumpdir.texi, doc/snapshot.texi, doc/sparse.texi,
  828. doc/tar.texi: Fix some typos.
  829. 2006-07-06 Sergey Poznyakoff <[email protected]>
  830. tar --index-file=FILE --file=- sent the archive to FILE, and
  831. the listing to stderr. Bug reported by Marcin Gryszkalis
  832. <[email protected]>
  833. * src/buffer.c (_open_archive): Remove stdlis initialization
  834. * src/tar.c (decode_options): Initialize stdlis
  835. * tests/indexfile.at: New test case
  836. * tests/testsuite.at: Include indexfile.at
  837. * tests/Makefile.am (TESTSUITE_AT): Add indexfile.at
  838. 2006-07-05 Sergey Poznyakoff <[email protected]>
  839. * doc/Makefile.am (manual): Fix TEXINPUTS
  840. * doc/rendition.texi (FIXME): Do not use deprecated @quote-args.
  841. Do not use @allow-recursion. In its current form the macro is not
  842. recursive.
  843. 2006-07-03 Sergey Poznyakoff <[email protected]>
  844. * bootstrap (update_po): Fix single translation update
  845. 2006-07-03 Sergey Poznyakoff <[email protected]>
  846. * configure.ac (AC_CHECK_FUNCS): Check for getdtablesize
  847. * src/common.h (closeopen): New function
  848. * src/misc.c (chdir_arg): Use x2nrealloc to reallocate wd.
  849. (get_max_open_files,closeopen): New functions
  850. (chdir_do): Do not use save_cwd if it was already used more than
  851. max_open_files-4 times to avoid running off the file
  852. descriptors.
  853. * src/tar.c (main): Call closeopen
  854. * doc/tar.texi: Update --directory description
  855. * NEWS: Update
  856. 2006-06-26 Sergey Poznyakoff <[email protected]>
  857. * doc/tar.texi: Update. Add cross-references.
  858. * doc/sparse.texi: Add cross-references.
  859. 2006-06-25 Sergey Poznyakoff <[email protected]>
  860. * scripts/xsparse.c: A sample utility to expand sparse files
  861. extracted by third-party tars. It is not meant to be installed nor
  862. to be included in the distribution. It is here, so that it can be
  863. obtained either from CVS or from the tar web site.
  864. * doc/Makefile.am (tar_TEXINFOS): Sorted
  865. * doc/tar.texi (Other Tars): New node describing how to extract
  866. GNU-specific member formats using third-party tars.
  867. * src/common.h (sparse_file_p): Remove
  868. * src/sparse.c: Likewise
  869. * src/create.c: Use ST_IS_SPARSE instead of sparse_file_p (update
  870. paxutils first)
  871. * src/tar.c: --sparse-version turns on --sparse
  872. 2006-06-24 Sergey Poznyakoff <[email protected]>
  873. * src/buffer.c (print_total_stats): Add default case.
  874. * src/common.h (name_init): New prototype.
  875. (xheader_string_end): Return bool.
  876. * src/extract.c (extract_volhdr): Add missing return
  877. * src/incremen.c: Remove not used variables
  878. * src/sparse.c (pax_dump_header_0): Return false if
  879. xheader_string_end fails (for 0.1 formats).
  880. (pax_dump_header): Return meaningful value
  881. * src/transform.c (segm_count): Change type to size_t
  882. * src/xheader.c (xhdr_tab.decoder): pass keyword as a second
  883. argument. All callers changed.
  884. (decode_record): Check for numeric overflow
  885. (xheader_string_end): Return boolean value. Check for possible
  886. numeric overflow
  887. 2006-06-23 Sergey Poznyakoff <[email protected]>
  888. * doc/sparse.texi: New file
  889. * doc/Makefile.am (tar_TEXINFOS): Add sparse.texi
  890. * doc/intern.texi (Sparse Formats): New node
  891. * doc/tar.texi: Update master menu
  892. * src/common.h (tar_sparse_major,tar_sparse_minor): New globals.
  893. * src/sparse.c: Implement sparse format versioning. Implement new
  894. version (1.0) of PAX sparse format.
  895. (pax_sparse_member_p): Fix condition
  896. (pax_dump_header): A dispatcher function
  897. (pax_dump_header_0,pax_dump_header_1): New functions.
  898. (pax_optab): Update
  899. (oldgnu_dump_header): Minor fix: make sure
  900. sparse_header.isextended is set before calling
  901. set_next_block_after
  902. * src/tar.c: New option --sparse-version
  903. * src/tar.h (struct tar_stat_info.sparse_major,sparse_minor): New
  904. members.
  905. * src/xheader.c: Implement new keywords: GNU.sparse.name,
  906. GNU.sparse.major, GNU.sparse.minor, GNU.sparse.realsize
  907. * tests/spmpv00.at, tests/spmvp01.at, tests/spmvp10.at: New
  908. testcases.
  909. * tests/Makefile.am: Add spmvp00.at, spmpv01.at, spmpv10.at
  910. * tests/shortrec.at: Explicitely give `-f -' to the tar invocation
  911. * tests/sparsemvp.at: Rewritten as an include file.
  912. (TAR_MVP_TEST): New macro
  913. * tests/testsuite.at: Include sparsemvp.at, spmvp00.at,
  914. spmvp01.at, spmvp10.at
  915. 2006-06-21 Sergey Poznyakoff <[email protected]>
  916. * doc/tar.texi (Overriding File Metadata): New node
  917. Document --mtime option.
  918. * src/common.h (set_mtime_option,mtime_option): New globals
  919. * src/create.c (start_header): Override mtime if requested
  920. * src/tar.c: Implement new option, --mtime, allowing to set
  921. modification times for all archive members during creation.
  922. (struct tar_args): textual_date_option replaced with a linked list
  923. textual_date. All references updated.
  924. (get_date_or_file,report_textual_dates): New functions.
  925. * configure.ac: Raise version number to 1.15.92
  926. * NEWS: Update
  927. 2006-06-20 Sergey Poznyakoff <[email protected]>
  928. * src/common.h (struct name.explicit): Remove
  929. Use variable names in all declarations
  930. (name_scan): Remove second argument
  931. * src/delete.c: Remove second argument from calls to name_scan
  932. * src/update.c: Likewise
  933. * src/incremen.c (procdir): Use is_individual_file to check for
  934. files explicitly specified in the command line. Fixes bug
  935. reported by Dat Head on 19 Jun 2006 (descending into mountpoints
  936. with --one-file-system in use)
  937. * src/misc.c (maybe_backup_file): Second argument is bool
  938. * src/names.c (name_next_elt): Call register_individual_file
  939. (namelist_match): Remove third argument
  940. (name_match): Change return type to bool
  941. (name_scan): Remove second argument
  942. * src/sparse.c (pax_dump_header): Store original sparse file name
  943. in GNU.sparse.name variable. The name field in the ustar header
  944. now contains generated name (%d/GNUSparseFile.%p/%f), so that
  945. non-pax-aware tars won't extract the file under the original
  946. filename.
  947. * src/xheader.c (GNU.sparse.name): New variable for storing sparse
  948. file name.
  949. 2006-06-13 Sergey Poznyakoff <[email protected]>
  950. * doc/Makefile.am (check-options): Expand macros before grepping
  951. in $(info_TEXINFOS)
  952. * doc/rendition.texi (FIXME) [!PROOF_FOOTNOTED]: Enclose in a
  953. cartouche
  954. * doc/tar.texi: Define op as codeindex. Use special macros to
  955. populate it
  956. Consequently prefer @dfn{long options} over @dfn{mnemonic
  957. options}.
  958. Document --unquote, --no-unquote
  959. (Short Option Summary): Build a table of cross-references to the
  960. corresponding long options.
  961. (Using Multiple Tapes,Multi-Volume Archives): Rewritten
  962. * doc/value.texi (xopindex,opsummary): New macros
  963. * doc/Makefile.am (check-options): New goal
  964. * doc/tar.texi: Update
  965. * src/tar.c: Implement --overwrite-dir option (long ago
  966. documented).
  967. 2006-06-12 Sergey Poznyakoff <[email protected]>
  968. * doc/tar.texi: Document better the --totals option
  969. * NEWS: Update
  970. * src/buffer.c (total_blocks_deleted): New variable
  971. (set_start_time): Set volume_start_time and last_stat_time as well
  972. (set_volume_start_time): New function
  973. (compute_duration): Do not call set_start_time, update
  974. last_stat_time instead. Use it in calculation instead of
  975. start_time, which is now set only once, upon startup.
  976. (print_total_written): Removed.
  977. (print_total_stats): New function for printing byte/speed statistics.
  978. (_open_archive): Detect attempts to update compressed archives.
  979. (_gnu_flush_write): Always update prev_written.
  980. (open_archive): Call set_volume_start_time.
  981. * src/common.h (volume_start_time,last_stat_time): New globals
  982. (print_total_written): Replaced with:
  983. (print_total_stats): New function
  984. * src/delete.c (records_skipped): Remove static qualifier, the
  985. variable is used by print_total_stats in buffer.c
  986. * src/extract.c (check_time): Use volume_start_time when checking
  987. for timestamp plausibility.
  988. * src/tar.c: (options, parse_opt): Allow for optional argument to
  989. the --totals option, which specifies a signal upon delivery of which
  990. the statistics must be output.
  991. (main): Call print_total_stats if total_option is set.
  992. 2006-06-11 Sergey Poznyakoff <[email protected]>
  993. * src/xheader.c (xheader_set_single_keyword): Fix typo.
  994. (decode_time): Avoid using gotos.
  995. * doc/mastermenu.el: New file
  996. * doc/Makefile.am (master-menu): New goal
  997. * doc/tar.texi: Update master menu
  998. 2006-06-10 Sergey Poznyakoff <[email protected]>
  999. * doc/tar.texi: Remove leftover include
  1000. 2006-06-09 Sergey Poznyakoff <[email protected]>
  1001. * doc/Makefile.am (tar_TEXINFOS): Add intern.texi
  1002. (EXTRA_DIST): Remove convtexi.pl, add texify.sed
  1003. * doc/intern.texi: New file
  1004. * doc/convtexi.pl: Remove
  1005. * doc/texify.sed: Auxiliary script to convert ../src/tar.h to
  1006. header.texi
  1007. * doc/rendition.texi: Fix typo
  1008. * doc/tar.texi: Update
  1009. * src/tar.h: Fix indentation, introduce end-of-format marker for
  1010. texify.sed
  1011. * THANKS: Add Jason Armistead
  1012. * doc/tar.texi: Update
  1013. * NEWS: Update
  1014. * src/buffer.c: Implement more flexible checkpoint style
  1015. * src/common.h (checkpoint_option): Change type to unsigned
  1016. (checkpoint_style): New variable.
  1017. * src/tar.c: --checkpoint takes an optional argument specifying
  1018. number of records between two successive checkpoints (proposed
  1019. by Jason Armistead on 2004-06-22). Optional dot starting the
  1020. argument means "print dots instead of textual checkpoints".
  1021. (tar_help): New function
  1022. * src/transform.c: Minor fixes.
  1023. 2006-06-08 Sergey Poznyakoff <[email protected]>
  1024. * gnulib.modules: Add mkdtemp
  1025. * doc/dumpdir.texi: New file
  1026. * doc/Makefile.am (tar_TEXINFOS): Add dumpdir.texi
  1027. * doc/tar.texi: Document dumpdir format
  1028. * src/incremen.c (dumpdir_locate,obstack_code_rename):
  1029. (purge_directory): Re-implement renaming. Introduce
  1030. 'X' control code.
  1031. (make_tmp_dir_name): Remove
  1032. * src/transform.c (set_transform_expr,_transform_name_to_obstack):
  1033. Implement NUMBER flag.
  1034. (add_char_segment): Fix length assignment
  1035. * doc/tar.texi: Update
  1036. 2006-06-07 Sergey Poznyakoff <[email protected]>
  1037. * src/transform.c (transform_name_fp): Run fun even if
  1038. _transform_name_to_obstack returns false.
  1039. (_transform_name_to_obstack,set_transform_expr): Implement GNU
  1040. extension case conversion operations.
  1041. * doc/tar.texi (transform): Document the option.
  1042. 2006-06-02 Sergey Poznyakoff <[email protected]>
  1043. * NEWS: Update
  1044. * src/common.h (set_transform_expr): New function
  1045. * tests/Makefile.am: Add incr04.at
  1046. * tests/testsuite.at: Likewise
  1047. * tests/incr04.at: New test case
  1048. * tests/long01.at: Fix typo in the comment
  1049. * tests/multiv04.at: Use genfile --files-from
  1050. (Above changes need new genfile.c from paxutils)
  1051. * TODO: Update
  1052. * NEWS: Update
  1053. * doc/tar.texi: Update
  1054. * src/transform.c: New file
  1055. * src/Makefile.am (tar_SOURCES): New module transform.c
  1056. * src/common.h (transform_name, transform_name_fp): New functions
  1057. (show_stored_names_option): Renamed to
  1058. show_transformed_names_option. All uses changed
  1059. * src/create.c (dump_file0): Transform file name
  1060. * src/extract.c (extract_archive): safer_name_suffix and
  1061. stripped_prefix_len are now called by decode_header
  1062. * src/list.c (print_header): Update displayable name selection.
  1063. * src/tar.c: New option --transform
  1064. New option --show-transformed-names generalizes
  1065. --show-stored-names. The latter is retained as an alias.
  1066. 2006-05-31 Sergey Poznyakoff <[email protected]>
  1067. * src/incremen.c (make_directory): Fix initialization of struct
  1068. directory.
  1069. 2006-05-25 Sergey Poznyakoff <[email protected]>
  1070. * doc/tar.texi: Document use of globbing patterns.
  1071. * src/tar.c (parse_opt): Add comment before --preserve case.
  1072. 2006-05-24 Sergey Poznyakoff <[email protected]>
  1073. * NEWS: Update
  1074. * doc/tar.texi: Update
  1075. * configure.ac (AM_INIT_AUTOMAKE): Use tar-ustar option. Raise
  1076. version requirement to 1.9
  1077. * src/common.h (struct name): Refactored
  1078. (warn_regex_usage): New variable.
  1079. (dump_file): First argument is const char*.
  1080. (name_init,name_add): Removed
  1081. (name_add_name,name_add_dir): New functions
  1082. (name_next): Return const char*.
  1083. * src/create.c: (dump_file,dump_file0): First argument is const
  1084. char*. All callers updated.
  1085. * src/names.c: Rewritten handling of member names in the command
  1086. line. Tar no longer attempts to guess globbing patterns, instead
  1087. it relies on --wildcard option.
  1088. (init_names): Removed.
  1089. (struct name_elt): New structure.
  1090. (name_array): Change type to struct name_elt. All references updated
  1091. (name_add_name,name_add_dir): New functions
  1092. (name_next_elt): New function
  1093. (name_next): Rewritten using name_next_elt.
  1094. (namelist_match): Rewritten pattern matching using
  1095. exclude_fnmatch.
  1096. (names_notfound): Warn if globbing patterns were used without
  1097. --wildcards option
  1098. * src/tar.c (options): Move globbing-related options into a
  1099. separate group. Set -l as an alias to --check-links, as required
  1100. by UNIX98
  1101. (struct tar_args): New fields
  1102. wildcards,matching_flags,include_anchored
  1103. (MAKE_EXCL_OPTIONS,MAKE_INCL_OPTIONS): New macros
  1104. (parse_opt): Use x2nrealloc to grow archive_name_array.
  1105. Use MAKE_EXCL_OPTIONS,MAKE_INCL_OPTIONS to create appropriate
  1106. fnmatch options, and name_add_name,name_add_dir to handle member
  1107. name and -C arguments.
  1108. (decode_options): Likewise
  1109. (main): Remove call to init_names.
  1110. * tests/append.at, tests/append01.at, tests/extrac01.at,
  1111. tests/options.at, tests/options02.at, tests/same-order01.at,
  1112. tests/same-order02.at: Make AT_SETUP more readable.
  1113. 2006-05-23 Sergey Poznyakoff <[email protected]>
  1114. * src/buffer.c (change_tape_menu): Fix typo (uninitialized
  1115. variable) introduced yesterday.
  1116. 2006-05-22 Sergey Poznyakoff <[email protected]>
  1117. * doc/tar.texi: Use @var{file_name} instead of @var{file name}
  1118. * src/buffer.c (change_tape_menu): Break the loop after obtaining
  1119. new archive name. Check for empty input line.
  1120. 2006-05-15 Sergey Poznyakoff <[email protected]>
  1121. * tests/atlocal.in (XFAILFILE): New variable
  1122. * tests/version.at: Create $XFAILFILE on failure
  1123. * tests/testsuite.at (AT_TAR_CHECK): Declare expected failure if
  1124. $XFAILFILE exists.
  1125. 2006-05-13 Sergey Poznyakoff <[email protected]>
  1126. * THANKS: Update
  1127. * src/buffer.c (read_header0): Use read_header_primitive to avoid
  1128. clubbering current_tar_info. All callers updated.
  1129. * src/common.h (read_header_primitive): New function
  1130. * src/extract.c (extract_volhdr): New function
  1131. (prepare_to_extract): Use extract_volhdr as extractor for volume
  1132. names.
  1133. * src/list.c (read_header_primitive): New function
  1134. (read_header): Front end for read_header_primitive
  1135. * tests/chtype.at: New file
  1136. * tests/volsize.at: New file
  1137. * tests/Makefile.am (TESTSUITE_AT): Add chtype.at, volsize.at
  1138. (check-full): New target.
  1139. * tests/atlocal.in (TEST_DATA_URL,STAR_DATA_URL)
  1140. (STAR_TESTSCRIPTS): Provide default values.
  1141. (tarball_prereq): New function
  1142. * tests/testsuite.at (AT_TARBALL_PREREQ): New defun
  1143. (AT_STAR_PREREQ): Rewrite using tarball_prereq
  1144. Include chtype.at and volsize.at
  1145. * tests/volume.at: Add keywords.
  1146. * tests/star/gtarfail.at, tests/star/gtarfail2.at,
  1147. tests/star/multi-fail.at, tests/star/pax-big-10g.at,
  1148. tests/star/ustar-big-2g.at, tests/star/ustar-big-8g.at
  1149. (AT_STAR_PREREQ): Provide md5 sum.
  1150. * lib/.cvsignore: Update
  1151. 2006-05-08 Sergey Poznyakoff <[email protected]>
  1152. * tests/testsuite.at (AT_SORT_PREREQ, AT_UNPRIVILEGED_PREREQ): New
  1153. defines
  1154. * tests/extrac04.at, tests/incr03.at, tests/listed02.at,
  1155. tests/pipe.at, tests/rename01.at, tests/rename02.at,
  1156. tests/rename03.at, tests/same-order01.at: Call
  1157. AT_SORT_PREREQ. Remove fd 2 redirection after calls to sort
  1158. * ignfail.at: Call AT_UNPRIVILEGED_PREREQ
  1159. 2006-05-08 Sergey Poznyakoff <[email protected]>
  1160. Listed incremental backups: keep more information about
  1161. directories. Handle renamed directories more effectively
  1162. (initial implementation, more updates to follow).
  1163. Source tree before this point is tagged
  1164. alpha_1_15_90_incremental_1.
  1165. * NEWS: Update
  1166. * configure.ac: Raise version number to 1.15.91
  1167. * src/common.h (rename_directory,append_incremental_renames): New
  1168. functions.
  1169. * src/extract.c (rename_directory): New function
  1170. * src/incremen.c (struct directory.contents, flags): New members
  1171. (nfs,found,new): Remove. Replaced by appropriate bitmask values in
  1172. `flags' field. All uses updated.
  1173. (directory_meta_table): New table.
  1174. (hash_directory): Rename to hash_directory_name
  1175. (compare_directories): Rename to compare_directory_names
  1176. (hash_directory_meta,compare_directory_meta,find_directory_meta):
  1177. New functions
  1178. (compare_dirents): Removed
  1179. (note_directory): Get 7th argument: directory contents.
  1180. All callers updated
  1181. (dumpdir_locate,makedumpdir): New functions
  1182. (scan_directory): Rewritten. Use makedumpdir to create a sorted
  1183. dumpdir array. This makes the obstack argument unnecessary. Besides,
  1184. ALL_CHILDREN flag is set only for new directories.
  1185. (procdir): Change return type to struct directory. Return
  1186. immediately if the directory was already initialized. Discover
  1187. directory renames using directory_meta_table.
  1188. (append_incremental_renames): New function.
  1189. (read_directory_file, write_directory_file): Use new snapshot file
  1190. format.
  1191. * src/names.c (collect_and_sort_names): Update dir_contents of the
  1192. first non-fake name entry when in listed incremental mode.
  1193. * tests/incr03.at: New testcase
  1194. * tests/rename01.at: New testcase
  1195. * tests/rename02.at: New testcase
  1196. * tests/rename03.at: New testcase
  1197. * tests/Makefile.am: Add
  1198. incr03.at,rename01.at,rename02.at,rename03.at
  1199. * tests/testsuite.at: Likewise.
  1200. * tests/listed02.at: Update for the new behavior
  1201. * tests/multiv04.at (AT_KEYWORDS): Add missing incremental kw.
  1202. 2006-05-02 Sergey Poznyakoff <[email protected]>
  1203. * src/buffer.c (try_new_volume): Attempt to continue if the name
  1204. is apparently truncated in a GNU format volume.
  1205. * tests/comprec.at, tests/delete01.at, tests/delete02.at,
  1206. tests/delete04.at, tests/delete05.at, tests/extrac05.at,
  1207. tests/listed01.at, tests/multiv01.at, tests/multiv02.at,
  1208. tests/pipe.at, tests/same-order01.at, tests/same-order02.at,
  1209. tests/sparse01.at, tests/sparse03.at: Always use genfile --file,
  1210. this enables extra error checking.
  1211. * tests/multiv03.at: Attempt to extract a member with truncated
  1212. file name from the archive.
  1213. * src/buffer.c (_open_archive): Remove unnecessary argument to
  1214. check_compressed_archive.
  1215. 2006-04-25 Sergey Poznyakoff <[email protected]>
  1216. * tests/sparse01.at, tests/sparse02.at, tests/sparse03.at,
  1217. tests/sparsemv.at, tests/sparsemvp.at: Skip the test if the file
  1218. system does not support sparse files.
  1219. * doc/tar.texi (@copying): Remove the reference to not existing
  1220. invariant section.
  1221. 2006-04-11 Sergey Poznyakoff <[email protected]>
  1222. * src/extract.c (extract_dir): Fix toggling existing directory
  1223. permissions (Debian bug #361077). Use parts of patch provided by
  1224. Ian Jackson <[email protected]>.
  1225. * src/compare.c: Minor changes
  1226. * src/incremen.c (directory.new): New member
  1227. (note_directory,find_directory: Use make_directory to create
  1228. struct directory entries
  1229. (procdir): Avoid duplicating directories in the incremental
  1230. backup map.
  1231. * tests/Makefile.am (TESTSUITE_AT): Add extrac06.at
  1232. * tests/testsuite.at: Include extrac06.at
  1233. 2006-03-18 Ralf Wildenhues <[email protected]> (trivial change)
  1234. * tests/atlocal.in (PATH): Add build-aux from the source tree,
  1235. not the build tree.
  1236. 2006-03-13 Sergey Poznyakoff <[email protected]>
  1237. * THANKS: Add Benno Schulenberg
  1238. 2006-03-13 Jim Meyering <[email protected]>
  1239. * tests/listed02.at: Sort the two lines of stderr from the
  1240. first `tar -v --listed-incremental'. They would come out
  1241. reversed and provoke a test failure on a tmpfs
  1242. file system.
  1243. 2006-03-13 Benno Schulenberg <[email protected]>
  1244. * doc/tar.texi: Minor fixes.
  1245. * src/tar.c (options): Consistently begin help messages with a
  1246. lowercase letter.
  1247. 2006-03-12 Sergey Poznyakoff <[email protected]>
  1248. * tests/Makefile.am (AM_CPPFLAGS): Define LOCALEDIR
  1249. 2006-03-07 Paul Eggert <[email protected]>
  1250. * src/buffer.c (record_buffer_aligned): New var.
  1251. (init_buffer): Use it to ensure that the buffer is aligned.
  1252. This doesn't result in any measurable performance improvement
  1253. on my host (Debian GNU/Linux 3.1 stable, with default block size),
  1254. but I assume it does help on some hosts.
  1255. * lib/.cvsignore: Sort.
  1256. 2006-03-04 Sergey Poznyakoff <[email protected]>
  1257. * tests/shortrec.at: Use -f - to read from stdin.
  1258. 2006-02-21 Sergey Poznyakoff <[email protected]>
  1259. * doc/tar.texi: Fix typo: --to-command instead of --to-program
  1260. 2006-02-20 Paul Eggert <[email protected]>
  1261. * tests/multiv04.at (split directory members in a MV archive):
  1262. Don't use %X in an awk printf format; this doesn't work with
  1263. Solaris 10 /usr/bin/awk. Use %x instead.
  1264. 2006-02-20 Sergey Poznyakoff <[email protected]>
  1265. * src/create.c (split_long_name): Fix maximum length estimation.
  1266. Patch by Jim Lowe.
  1267. * tests/Makefile.am (lustar01.at,lustar02.at,lustar03.at): New
  1268. tests.
  1269. * tests/atlocal.in: Add build-aux to the PATH
  1270. * tests/long01.at: Remove mkhier, use AT_TAR_MKHIER instead
  1271. * tests/longv7.at: Reword test title
  1272. * tests/lustar01.at: New test
  1273. * tests/lustar02.at: New test
  1274. * tests/lustar03.at: New test
  1275. * tests/testsuite.at (AT_TAR_MKHIER): New macro
  1276. (lustar01.at,lustar02.at,lustar03.at): New tests.
  1277. 2006-02-20 Paul Eggert <[email protected]>
  1278. * bootstrap: Don't claim lib/Makefile.am is generated automatically
  1279. from itself.
  1280. Avoid installation glitches on Solaris 8 with Sun C 5.4.
  1281. * lib/.cvsignore: Add system-ioctl.h.
  1282. * lib/Makefile.tmpl (noinst_HEADERS): Add system-ioctl.h.
  1283. * src/buffer.c: Include system-ioctl.h.
  1284. * src/compare.c: Likewise.
  1285. * src/delete.c: Likewise.
  1286. * src/system.c: Include <getline.h>, <setenv.h>.
  1287. * src/tar.c: Include <getline.h>.
  1288. 2006-02-19 Sergey Poznyakoff <[email protected]>
  1289. * src/buffer.c (add_chunk_header): Free st.orig_file_name after
  1290. calling finish_header().
  1291. (new_volume): Prompt the user for archive name if unable to open
  1292. next archive.
  1293. * src/create.c (dump_file0): Restore file_count_links,
  1294. accidentally removed on 2005-11-29.
  1295. * configure.ac: Raise version number to 1.15.90
  1296. * NEWS: Likewise.
  1297. 2006-02-08 Sergey Poznyakoff <[email protected]>
  1298. * src/tar.c (tar_set_quoting_style): Provide second argument to
  1299. the format spec: program_invocation_short_name. Reported by Jim
  1300. Meyering.
  1301. 2006-02-07 Paul Eggert <[email protected]>
  1302. * gnulib.modules: Add closeout, exitfial.
  1303. * lib/.cvsignore: Add __fpending.c, __fpending.h, closeout.c,
  1304. closeout.h.
  1305. * src/buffer.c: Incluse closeout.h.
  1306. (_open_archive): Use freopen rather than fopen, so
  1307. that stdlis is always either stdout or stderr. Use
  1308. close_stdout_set_file_name to report its name.
  1309. * src/tar.c: Include closeout.h and exitfail.h.
  1310. (parse_opt, usage): Call close_stdout as appropriate, to check for
  1311. write errors.
  1312. (decode_options): Exit with status TAREXIT_FAILURE, not 1.
  1313. (main): Set exit_failure, to exit with proper status on memory
  1314. allocation failure and the like.
  1315. Use close_stdout rather than rolling our own test.
  1316. * NEWS: --version now outputs copyright etc., to conform to the
  1317. GNU coding standards. Remove --license.
  1318. * gnulib.modules: Add version-etc-fsf.
  1319. * doc/tar.texi: Document the change.
  1320. * lib/.cvsignore: Add version-etc-fsf.c, version-etc.c, version-etc.h.
  1321. * scripts/Makefile.am (SED_CMD): Update PAKCAGE_NAME, not PACKAGE.
  1322. * scripts/backup.in: Remove --license. Change --version to conform
  1323. to GCS.
  1324. * scripts/restore.in: Likewise.
  1325. * scripts/backup.sh.in (license): Output briefer license in the
  1326. style of coreutils, for consistency with other changes.
  1327. * src/tar.c: Include <version-etc.h>.
  1328. (LICENSE_OPTION): Remove.
  1329. (options): Remove --license.
  1330. (license): Remove.
  1331. (parse_opt): Use version_etc instead of rolling it ourselves.
  1332. Remove --license.
  1333. * tests/version.at (tar --version): Check only the first line of
  1334. output.
  1335. * ChangeLog, NEWS, src/common.h, src/extract.c, src/incremen.c:
  1336. * src/list.c, src/names.c, src/tar.h, src/xheader.c:
  1337. Update copyright year to 2006.
  1338. 2006-02-07 Jim Meyering <[email protected]>
  1339. * src/xheader.c (sparse_map_decoder): Fix misleading diagnostic.
  1340. 2006-01-31 Sergey Poznyakoff <[email protected]>
  1341. * src/common.h (get_gnu_dumpdir): Remove prototype
  1342. (is_dumpdir): New function
  1343. * src/extract.c (prepare_to_extract): Use is_dumpdir member to
  1344. check for dumpdirs.
  1345. * src/incremen.c (get_gnu_dumpdir): Static
  1346. (is_dumpdir): New function
  1347. (purge_directory): Use is_dumpdir
  1348. * src/list.c (list_archive): Use is_dumpdir
  1349. Do not wrap skip_member in mv_begin/mv_end, the function itself
  1350. takes care of it.
  1351. (decode_header): Set stat_info->is_dumpdir
  1352. (skip_member): Do nothing if skipped is true
  1353. * src/tar.h (struct tar_stat_info): New members is_dumpdir and skipped.
  1354. 2006-01-22 Sergey Poznyakoff <[email protected]>
  1355. * src/tar.c (decode_options): Refuse using --delete with
  1356. compression options.
  1357. 2006-01-18 Sergey Poznyakoff <[email protected]>
  1358. * NEWS: Updated.
  1359. * configure.ac (DEFAULT_QUOTING_STYLE): New configuration variable
  1360. * doc/tar.texi: Initial documentation for --quoting-style,
  1361. --quote-chars and --no-quote-chars option.
  1362. * src/tar.c: Implement new options --quoting-style, --quote-chars
  1363. and --no-quote-chars.
  1364. 2006-01-09 Paul Eggert <[email protected]>
  1365. * bootstrap: Default to pserver, and switch to cvs.sv.gnu.org,
  1366. to accommodate recent changes to the GNU CVS server.
  1367. * lib/.cvsignore: Add argp-pin.c, mkdirat.c, openat-priv.h.
  1368. 2005-12-14 Sergey Poznyakoff <[email protected]>
  1369. * src/names.c (name_scan): Take an additional argument requesting
  1370. exact matching.
  1371. * src/common.h (name_scan): Change prototype.
  1372. * src/delete.c, src/incremen.c, src/update.c: Update invocations
  1373. of name_scan.
  1374. 2005-12-13 Sergey Poznyakoff <[email protected]>
  1375. * src/common.h (struct name): New member `explicit'. Remove unused
  1376. member `isdir'.
  1377. * src/incremen.c (procdir): If name_scan() returns something,
  1378. check if it was explicitly given in the command line
  1379. * src/names.c (addname,add_hierarchy_to_namelist): Initialize
  1380. explicit member appropriately.
  1381. * src/incremen.c (procdir): If --one-file-system is given and a
  1382. directory is found to be on another device, *and* this directory
  1383. is explicitly given in the command line, then do not omit it.
  1384. 2005-12-11 Sergey Poznyakoff <[email protected]>
  1385. * NEWS: Update
  1386. * doc/tar.texi: Document --delay-directory-restore option.
  1387. (Configuring Help Summary): Document usage of ARGP_HELP_FMT
  1388. variable to customize help output.
  1389. * src/common.h (delay_directory_restore_option): New global.
  1390. * src/extract.c (directories_first): Replaced by
  1391. delay_directory_restore_option. All uses changed.
  1392. * src/tar.c (options,parse_opt): New options
  1393. --delay-directory-restore and --no-delay-directory-restore
  1394. 2005-12-09 Sergey Poznyakoff <[email protected]>
  1395. * src/buffer.c (open_archive): Add default case to shut up gcc.
  1396. * src/common.h (set_file_atime): Add prototype.
  1397. * src/create.c (to_chars_subst): Remove unused variable
  1398. Make sure useful result code is returned.
  1399. * src/incremen.c (read_directory_file): Fix format string
  1400. Thanks Eric Blake for reporting.
  1401. 2005-12-08 Sergey Poznyakoff <[email protected]>
  1402. * doc/tar.texi (Current status): Renamed to 'Changes' and moved to
  1403. appendices.
  1404. (Large or Negative Values): Rewritten
  1405. * src/common.h (gid_to_chars, major_to_chars, minor_to_chars)
  1406. (mode_to_chars, off_to_chars, size_to_chars, time_to_chars)
  1407. (uid_to_chars, uintmax_to_chars): Return bool
  1408. * src/create.c (gid_to_chars, major_to_chars, minor_to_chars)
  1409. (mode_to_chars, off_to_chars, size_to_chars, time_to_chars)
  1410. (uid_to_chars, uintmax_to_chars): Return bool
  1411. (to_chars): Return bool
  1412. (start_header): Check return values of conversion routines. Fail
  1413. if unable to store data in the header.
  1414. 2005-12-07 Sergey Poznyakoff <[email protected]>
  1415. * doc/tar.texi: Following the discussion with Karl Berry,
  1416. discontinue using @value{} substitutions for Texinfo commands.
  1417. Properly index all long options. Print a
  1418. separate long option index.
  1419. * doc/value.texi: Remove @set's
  1420. * doc/tar.texi: Update --info-script documentation
  1421. Resolve some more FIXMEs.
  1422. * scripts/dump-remind.in: Use TAR_VOLUME instead of reading volno
  1423. file.
  1424. * src/buffer.c (new_volume): Update invocation
  1425. (change_tape_menu): New function. Disable '!' command if given
  1426. --restrict option.
  1427. * src/common.h (sys_exec_info_script): Update declaration
  1428. (restrict_option): New global
  1429. * src/system.c (sys_exec_info_script): The script can supply new
  1430. archive name to use by writing it to file descriptor 3.
  1431. * src/tar.c (options): Add --restrict option. Use macros for
  1432. option grouping.
  1433. (license): Print full list of copyright years
  1434. * NEWS: Update
  1435. 2005-12-06 Eric Blake <[email protected]> (trivial changes)
  1436. * configure.ac (DENSITY_LETTER): Fix m4 overquoting.
  1437. * .cvsignore: Ignore .bootstrap.
  1438. 2005-12-06 Sergey Poznyakoff <[email protected]>
  1439. * doc/tar.texi: Document --to-command and --info-script
  1440. options. Add missing xrefs.
  1441. * src/buffer.c (new_volume): Use sys_exec_info_script() instead of
  1442. system().
  1443. * src/common.h (archive_format_string,subcommand_string)
  1444. (sys_exec_info_script): New prototypes.
  1445. * src/system.c (sys_exec_info_script): New function.
  1446. * src/tar.c (archive_format_string): Remove static qualifier.
  1447. (subcommand_string): New function.
  1448. 2005-12-01 Sergey Poznyakoff <[email protected]>
  1449. * src/extract.c: Fix restoring of directory timestamps from
  1450. incremental archives.
  1451. (directories_first): New variable.
  1452. (prepare_to_extract): Set directories_first
  1453. (extract_archive): Call apply_nonancestor_delayed_set_stat() only
  1454. if not extracting from an incremental archive
  1455. (extract_dir): Obtain root_device here, to make sure it works
  1456. correctly with -C.
  1457. * src/incremen.c (purge_directory): Skip the member and return if
  1458. the archive is not in incremental format.
  1459. * tests/incr02.at: New testcase
  1460. * tests/Makefile.am: Add incr02.at
  1461. * tests/testsuite.at: Likewise
  1462. * THANKS: Add Guerkan Karaman.
  1463. * NEWS: Update
  1464. 2005-11-30 Paul Eggert <[email protected]>
  1465. * doc/tar.texi (Option Summary): Rewrite the
  1466. --atime-preserve=system description in response to Ian Turner's
  1467. proposed patch.
  1468. 2005-11-30 Ian Turner <[email protected]>
  1469. * doc/tar.texi (Extracting Specific Files): Remove obsolescent
  1470. FIXME.
  1471. 2005-11-29 Paul Eggert <[email protected]>
  1472. * NEWS: New option --atime-preserve=system, which uses O_NOATIME.
  1473. * THANKS: Add Ian Turner.
  1474. * configure.ac: Prefer AC_CHECK_HEADERS_ONCE to AC_CHECK_HEADERS.
  1475. Check for stropts.h and sys/filio.h too, for _FIOSATIME.
  1476. * doc/tar.texi: Change "modification time" to "data modification
  1477. time", "change time" to "status change time", and "filesystem" to
  1478. "file system", so that we use terminology consistent with POSIX.
  1479. Use American spacing rather than French for sentence ends.
  1480. "non-dependable" -> "undependable".
  1481. (Option Summary, Attributes): Explain better the pitfalls of the
  1482. --atime-preserve option, and suggest read-only mounts,loopback
  1483. mounts, and noatime mounts for older systems.
  1484. * doc/value.texi (op-atime-preserve-system): Renamed from
  1485. op-atime-preserver-system to fix a misspelling.
  1486. * src/common.h (enum atime_preserve): Use lower case for enum values.
  1487. * src/compare.c: Don't include utimens.h; no longer needed.
  1488. (diff_file): Use set_file_atime rather than utimens; avoid closing
  1489. diff_handle until after this, so that we can set the file time stamp
  1490. via the file descriptor rather than via its name.
  1491. * src/create.c: Don't include utimens.h; no longer needed.
  1492. (dump_regular_finish): Remove. All callers now do its work inline.
  1493. (dump_dir): New arg FD. All callers changed.
  1494. Use fdsavedir rather than savedir.
  1495. (unknown_file_error): Arg is a const pointer now.
  1496. (dump_file0): 2nd arg is a const pointer now.
  1497. Treat directories more like files, with respect to --atime-preserve.
  1498. For example, also warn if a directory changes while we are dumping it.
  1499. Prefer file descriptors to file names when retrieving/setting file
  1500. attributes; this saves path-resolution time and allows us to avoid
  1501. changing mtime/ctime on Solaris when restoring atime as root.
  1502. Use O_DIRECTORY when opening directories, to avoid some race conditions.
  1503. Do not reset atime if mtime has changed. Report an error if
  1504. we cannot reset atime.
  1505. * lib/.cvsignore: Add malloc.h, regcomp.c, regex.c, regex.h,
  1506. regex_internal.c, regex_internal.h, regexc.c; used by rpmatch.
  1507. 2005-11-29 Ian Turner <[email protected]>
  1508. First cut at adding support for --atime-preserve=system.
  1509. * doc/tar.texi (Option Summary): First cut at documenting it.
  1510. All other uses of --atime-preserve changed to --atime-preserve=replace.
  1511. * doc/value.texi (op-atime-preserve-replace, op-atime-preserver-system):
  1512. New.
  1513. (op-atime-preserve): Mention METHOD.
  1514. * src/common.h (atime_preserve): New enum.
  1515. (atime_preserve_option): Now of the enum type rather than bool.
  1516. All uses changed.
  1517. * src/compare.c (diff_file): Read with O_NOATIME if asked for.
  1518. * src/create.c (dump_file0): Read regular and CTG files with O_NOATIME
  1519. if asked for.
  1520. * src/tar.c (usage): Mention new usage.
  1521. (parse_opt): Parse new usage.
  1522. 2005-11-29 Paul Eggert <[email protected]>
  1523. * THANKS: Convert back to UTF-8, sort (using LC_ALL=C on Debian
  1524. stable), and consistently use tabs rather than spaces.
  1525. 2005-11-27 Sergey Poznyakoff <[email protected]>
  1526. * src/xheader.c: Remove parts of code prematurely introduced
  1527. yesterday. Thanks Eric Blake.
  1528. 2005-11-26 Sergey Poznyakoff <[email protected]>
  1529. * src/xheader.c (xheader_format_name): Fix memory leak.
  1530. 2005-11-11 Sergey Poznyakoff <[email protected]>
  1531. * gnulib.modules: Add rpmatch
  1532. * lib/stdopen.h, lib/stdopen.c: New file. Imported from coreutils.
  1533. * lib/Makefile.tmpl: Add stdopen.h, stdopen.c
  1534. * po/POTFILES.in: Add rpmatch.c
  1535. * src/tar.c (confirm): Rewritten using rpmatch.
  1536. (decode_options): Minor optimizations
  1537. (main): Call stdopen() to ensure the first three descriptors are
  1538. open.
  1539. * tests/multiv01.at, tests/multiv02.at, tests/multiv03.at,
  1540. tests/multiv04.at, tests/sparsemv.at, tests/sparsemvp.at,
  1541. tests/star/multi-fail.at: Close stdin so that if something fails
  1542. causing tar to ask for the next volume, it won't hang the
  1543. testsuite.
  1544. * src/buffer.c (flush_write,flush_read): Change data type.
  1545. (flush_archive): Compute actual buffer fill level before calling
  1546. low level function.
  1547. (close_archive): Call flush_archive again if the first call
  1548. resulted in partially filled buffer.
  1549. (try_new_volume): Rewritten handling of initial headers.
  1550. (add_chunk_header): New function. Write an additional header
  1551. before the continuation chunk. The purpose of the header is to
  1552. allow third-party tars to extract the member.
  1553. (simple_flush_write): Take an argument.
  1554. (_gnu_flush_write): Correctly handle partially filled buffers.
  1555. * src/common.h (flush_read,flush_write): Functions, again.
  1556. (write_extended): Changed declaration
  1557. (xheader_format_name): New declaration
  1558. * src/create.c (write_extended): Change type and meaning of
  1559. the first argument. All callers updated
  1560. * src/xheader.c (xheader_format_name): Remove static
  1561. qualifier. Change last argument.
  1562. Correct buffer size calculation (allocated too much space).
  1563. (xheader_write): Increase global_header_count here ...
  1564. (xheader_write_global): ... instead of here
  1565. * tests/testsuite.at (AT_TAR_CHECK): Define TEST_TAR_FORMAT
  1566. * tests/multiv01.at: Update
  1567. * tests/multiv02.at: Update
  1568. * tests/multiv03.at: Update
  1569. * tests/sparsemvp.at: Update
  1570. * tests/star/multi-fail.at: Update
  1571. * scripts/tarcat: Handle archives in pax format. Improve handling
  1572. of traditional archives.
  1573. * doc/tar.texi (Tarcat): New node
  1574. 2005-11-10 Sergey Poznyakoff <[email protected]>
  1575. Fix splitting of sparse files between the volumes.
  1576. * src/buffer.c (try_new_volume): Bugfix. Always check
  1577. continued_file_name. If it is absent, the volume is out
  1578. of sync.
  1579. (add_multi_volume_header): Create GNU.volume.filename keyword in
  1580. the extended header.
  1581. * src/sparse.c (sparse_dump_region): Call mv_size_left.
  1582. (sparse_dump_file): Enclose the loop in mv_begin/mv_end.
  1583. * src/system.c: Do not pad compressed output if it goes to
  1584. stdout.
  1585. * src/xheader.c (xhdr_tab): New keyword GNU.volume.filename.
  1586. * tests/sparsemv.at: New testcase
  1587. * tests/sparsemvp.at: New testcase
  1588. * tests/Makefile.am: Add sparsemv.at and sparsemvp.at.
  1589. * tests/testsuite.at: Likewise.
  1590. 2005-11-09 Sergey Poznyakoff <[email protected]>
  1591. * src/buffer.c: Rewritten in a more modular fashion to provide
  1592. GNU extensions (multi-volume archives and archive labels) in
  1593. pax format.
  1594. NOTICE, that some of the aspects (e.g. splitting the archive
  1595. on the extended header boundary) are still not solved, others
  1596. (splitting a sparse file between the volume) require additional
  1597. testing. Wait for the next commit.
  1598. (volume_label,continued_file_name,continued_file_size)
  1599. (continued_file_offset): New globals.
  1600. (save_name,save_totsize,save_sizeleft): Make static
  1601. (mv_begin,mv_end,mv_total_size,mv_size_left): New functions
  1602. (open_archive,flush_write,flush_read): Rewritten
  1603. * src/common.h (save_name,save_sizeleft,save_totsize): Remove
  1604. globals.
  1605. (volume_label,continued_file_name,continued_file_size): New
  1606. variables.
  1607. (flush_read,flush_write): Pointers to functions
  1608. (mv_begin,mv_end,mv_total_size,mv_size_left): New functions
  1609. (write_extended): New function.
  1610. * src/compare.c, src/create.c, src/extract.c, src/incremen.c,
  1611. src/list.c: Use mv_.* functions uniformly instead of fiddling
  1612. with the global variables.
  1613. * src/sparse.c: Use mv_.* functions where necessary.
  1614. * src/tar.c (decode_options): Allow to use --multi-volume and
  1615. --label with pax archives.
  1616. * src/xheader.c (xhdr_tab): Support for new GNU keywords.
  1617. * tests/delete01.at, tests/delete02.at, tests/delete03.at,
  1618. tests/delete04.at, tests/delete05.at, tests/extrac01.at,
  1619. tests/extrac02.at, tests/extrac03.at, tests/extrac04.at,
  1620. tests/extrac05.at, tests/incr01.at, tests/incremental.at,
  1621. tests/listed01.at, tests/listed02.at, tests/long01.at,
  1622. tests/longv7.at, tests/multiv01.at, tests/multiv02.at,
  1623. tests/multiv03.at, tests/multiv04.at, tests/options.at,
  1624. tests/options02.at, tests/same-order01.at, tests/same-order02.at,
  1625. tests/sparse01.at, tests/sparse02.at, tests/sparse03.at,
  1626. tests/star/multi-fail.at (AT_KEYWORDS): Improve to allow execution
  1627. of related tests in groups.
  1628. * doc/tar.texi: Update
  1629. 2005-11-07 Paul Eggert <[email protected]>
  1630. * src/xheader.c (struct xhdr_tab.coder): Last arg is void const *,
  1631. not void *, to avoid create.c warning from GCC "passing argument 3
  1632. of 'xheader_store' discards qualifiers from pointer target type".
  1633. (dummy_coder, atime_coder, gid_coder, gname_coder, linkpath_coder):
  1634. (ctime_coder, mtime_coder, path_coder, size_coder, uid_coder):
  1635. (uname_coder, sparse_size_coder, sparse_numblocks_coder):
  1636. (sparse_offset_coder, sparse_numbytes_coder, dumpdir_coder):
  1637. (xheader_store): Likewise.
  1638. * src/common.h (xheader_store): Likewise.
  1639. 2005-11-07 Sergey Poznyakoff <[email protected]>
  1640. and Paul Eggert <[email protected]>
  1641. * src/tar.c (NS_PRECISION_FORMAT_MASK): New macro.
  1642. (tar_timespec_cmp): New function. Wrapper over
  1643. timespec_cmp using the timespec precision provided by the
  1644. current archive format.
  1645. * src/common.h (tar_timespec_cmp): New declaration.
  1646. * src/compare.c (diff_file): Use tar_timespec_cmp.
  1647. * src/extract.c (file_newer_p): Likewise.
  1648. * src/update.c (update_archive): Likewise.
  1649. * tests/truncate.at: Reverted changes
  1650. * tests/update.at: Reverted changes
  1651. 2005-11-07 Sergey Poznyakoff <[email protected]>
  1652. Support for incremental formats in pax archives.
  1653. Fixed POSIX compatibility of `sparse' extended header keywords.
  1654. * src/common.h (dumpdir_size,get_gnu_dumpdir)
  1655. (xheader_string_begin,xheader_string_add)
  1656. (xheader_string_end): New functions.
  1657. * src/create.c (dump_dir0): Handle incremental backups in pax
  1658. archives.
  1659. * src/incremen.c (dumpdir_size, get_gnu_dumpdir): New functions.
  1660. (purge_directory): Use stat_info.dumpdir instead of getting its
  1661. value explicitly.
  1662. * src/list.c (list_archive): Handle incremental backups in pax
  1663. format.
  1664. (decode_header): Initialize stat_info.dumpdir
  1665. * src/sparse.c (sparse_diff_file): Bugfix: set seekable.
  1666. (pax_dump_header): Store sparse map in GNU.sparse.map. If this
  1667. variable has been explicitly deleted, use GNU.sparse.offset/
  1668. GNU.sparse.numbytes variables.
  1669. * src/tar.c (decode_options): Incremental options are allowed with
  1670. --format=pax
  1671. (tar_stat_destroy): Free dumpdir
  1672. * src/tar.h (struct tar_stat_info.dumpdir): New member.
  1673. * src/xheader.c (xheader_keyword_deleted_p): Remove static
  1674. qualifier.
  1675. (struct xhdr_tab.decoder): Change prototype. POSIX allows string
  1676. values to contain embedded nulls, so take an extra argument
  1677. specifying the length of the string.
  1678. (decx,decg,dummy_decoder,atime_decoder,gid_decoder)
  1679. (gname_decoder,linkpath_decoder,ctime_decoder,mtime_decoder)
  1680. (path_decoder,size_decoder,uid_decoder,uname_decoder)
  1681. (sparse_size_decoder,sparse_numblocks_decoder)
  1682. (sparse_offset_decoder,sparse_numbytes_decoder): Likewise.
  1683. (decode_record): Pass value length to the handler
  1684. (run_override_list): Pass value length to the decoder
  1685. (xheader_print_n): New function
  1686. (xheader_print): Rewritten using xheader_print_n
  1687. (xheader_finish): Do not rely om strlen to compute the length of
  1688. the collected string: it can contain embedded nulls
  1689. (xheader_string_begin,xheader_string_add,xheader_string_end): New
  1690. functions.
  1691. (sparse_map_decoder,dumpdir_coder,dumpdir_decoder): New
  1692. functions. Handle GNU.sparse.map and GNU.dumpdir variables.
  1693. (xhdr_tab): Add new variables.
  1694. * tests/incr01.at: Test gnu, oldgnu, and posix formats
  1695. * tests/incremental.at: Likewise
  1696. 2005-11-06 Paul Eggert <[email protected]>
  1697. * NEWS: Minor language and white space fixes.
  1698. * tests/truncate.at: Create files whose time stamps must fall on
  1699. 1-second boundaries. This prevents tests from failing on hosts
  1700. like Solaris 8 that have nanosecond-resolution file time stamps.
  1701. * tests/update.at: Likewise.
  1702. * src/xheader.c (strtoimax, strtoumax): Remove decls; now done
  1703. in system.h.
  1704. 2005-11-06 Sergey Poznyakoff <[email protected]>
  1705. * doc/tar.texi: Properly document incremental dumps
  1706. * doc/value.texi: Likewise.
  1707. * doc/snapshot.texi: Likewise.
  1708. 2005-11-05 Sergey Poznyakoff <[email protected]>
  1709. Improve listed incremental format:
  1710. * src/common.h (update_parent_directory): New prototype.
  1711. * src/create.c (dump_file): Call update_parent_directory.
  1712. * src/incremen.c (struct directory.mtime): New member.
  1713. (note_directory): Take additional arguments. All callers updated.
  1714. (scan_directory): Updated to use more metadata. In particular,
  1715. this allows to correctly detect renamed files.
  1716. (read_directory_file,write_directory_file)
  1717. (write_directory_file_entry): Support new directory file format.
  1718. * tests/listed01.at: Sleep 1 sec before creating second file.
  1719. * tests/listed02.at: Never skip the test. It should work on any
  1720. filesystem.
  1721. * doc/snapshot.texi: New file
  1722. * doc/tar.texi: Update.
  1723. * doc/Makefile.am: Update.
  1724. 2005-11-04 Paul Eggert <[email protected]>
  1725. * src/extract.c (set_stat): Rewrite to avoid bug in Forte
  1726. Developer 7 C 5.4 Patch 111708-09 (2004-02-19).
  1727. 2005-11-04 Sergey Poznyakoff <[email protected]>
  1728. * bootstrap: Fix quoting in help output.
  1729. (update_po): Use backward-compatible wget option --cache instead
  1730. of deprecated -C to accommodate for wget 1.10.
  1731. Changes proposed by Eric Blake
  1732. * THANKS: Add Eric Blake
  1733. 2005-11-02 Paul Eggert <[email protected]>
  1734. * doc/tar.texi: Consistently put two spaces after sentences,
  1735. and put commas after "i.e." and "e.g.". This is the usual GNU
  1736. style in manuals.
  1737. * lib/.cvsignore: Add creat-safer.c, fcntl--.h, fcntl-safer.h,
  1738. open-safer.c, openat-die.c, verify.h, to accommodate recent gnulib
  1739. changes.
  1740. 2005-10-27 Sergey Poznyakoff <[email protected]>
  1741. * src/compare.c (diff_dumpdir): Pass a valid device number to
  1742. get_directory_contents.
  1743. * THANKS: Add John Thomas McDole
  1744. * bootstrap: If file `.bootstrap' exists in the cwd and is
  1745. readable, prepend its contents to the command line
  1746. 2005-10-21 Sergey Poznyakoff <[email protected]>
  1747. * tests/link01.at: Skip test if ln fails (suppose the OS does
  1748. not support hard links).
  1749. 2005-10-04 Sergey Poznyakoff <[email protected]>
  1750. * src/tar.c (decode_options): Report error if -A or -r is used
  1751. together with compression option.
  1752. 2005-09-29 Sergey Poznyakoff <[email protected]>
  1753. * doc/tar.texi: Use @option and @kbd consistently.
  1754. Document new options.
  1755. 2005-09-28 Sergey Poznyakoff <[email protected]>
  1756. * NEWS: Updated
  1757. * src/common.h (show_stored_names_option): New variable
  1758. * src/list.c (print_header): If show_stored_names_option is given,
  1759. list member names as stored in the archive. Patch proposed by Erik
  1760. Cumps <[email protected]>
  1761. * src/tar.c: Implement --show-stored-names option
  1762. * src/common.h (test_label_option): New variable;
  1763. * src/list.c (print_header): Special handling if test_label_option
  1764. is set.
  1765. * src/names.c (all_names_found): If test_label_option is set
  1766. return true.
  1767. * src/tar.c: New option --test-label tests the archive volume
  1768. label. The option proposed by Wouter Verhelst <[email protected]>
  1769. 2005-09-21 Paul Eggert <[email protected]>
  1770. * tests/Makefile.am (clean-local): Don't attempt to run
  1771. $(TESTSUITE) if it doesn't exist. Problem reported by
  1772. Eric Blake.
  1773. 2005-09-16 Paul Eggert <[email protected]>
  1774. Don't filter time stamps through the resolution supported
  1775. by struct stat; keep them to full nanosecond resolution.
  1776. This affects behavior only on older hosts or file systems
  1777. that have lower-resolution time stamps.
  1778. * src/common.h (OLDER_STAT_TIME): Parenthesize arg.
  1779. (OLDER_TAR_STAT_TIME): New macro.
  1780. (code_timespec): New function.
  1781. (BILLION, LOG10_BILLION, TIMESPEC_STRSIZE_BOUND): New constants.
  1782. * src/compare.c (diff_file): Use full time stamp resolution.
  1783. * src/create.c (start_header, dump_file0): Likewise.
  1784. (start_header, dump_file0): Adjust to new structure layout.
  1785. (dump_regular_finish): Simplify by using timespec_cmp.
  1786. * src/extract.c (struct delayed_set_stat): Don't store stat info
  1787. that we don't need, to save space. All uses changed.
  1788. (struct delayed_set_stat, struct delayed_link, file_newer_p):
  1789. (create_placeholder_file, extract_link, apply_delayed_links):
  1790. Use full time stamp resolution.
  1791. (check_time): Use code_timespec rather than rolling our own code.
  1792. (set_stat, delay_set_stat): Arg now points to tar_stat_info to
  1793. avoid losing time information. All callers changed.
  1794. * src/list.c (read_and, decode_header, print_heaeder):
  1795. Use full time stamp resolution.
  1796. * src/misc.c (code_timespec): New function.
  1797. * src/tar.h (struct tar_stat_info): Record atime, mtime, ctime
  1798. separately, for benefit of hosts with lower resolution.
  1799. * src/update.c (update_archive): Use full time stamp resolution.
  1800. * src/xheader.c (code_time): Use new code_timespec function
  1801. to simplify code.
  1802. (atime_coder, atime_decoder, ctime_coder, ctime_decoder):
  1803. (mtime_coder, mtime_decoder): Use full time stamp resolution.
  1804. Report time stamps to full resolution in environment.
  1805. Report memory allocation failures rather than ignoring them.
  1806. * src/system.c (time_to_env): New function.
  1807. (oct_to_env, str_to_env, chr_to_env): Report memory allocation failures.
  1808. (stat_to_env): Report full resolution in time stamps.
  1809. 2005-09-16 Paul Eggert <[email protected]>
  1810. Merge changes from gnulib for file system sub-second time stamps.
  1811. * configure.ac: Remove checks for struct stat.st_spare1, struct
  1812. stat.st_atim.tv_nsec, struct stat.st_atimespec.tv_nsec, struct
  1813. stat.st_atimensec, as gnulib now does this for us.
  1814. Similarly for LIB_CLOCK_GETTIME.
  1815. * gnulib.modules: Add stat-time.
  1816. * lib/.cvsignore: Add stat-time.h.
  1817. * src/common.h: Include stat-time.h.
  1818. (timespec_lt): Remove. All callers changed to use timespec_cmp.
  1819. (get_stat_atime, get_stat_ctime, get_stat_mtime):
  1820. (set_stat_atime, set_stat_ctime, set_stat_mtime):
  1821. Remove; now defined by stat-time.h.
  1822. 2005-09-14 Sergey Poznyakoff <[email protected]>
  1823. * src/incremen.c (list_dumpdir): New function. Used to dump
  1824. contents of GNUTYPE_DUMPDIR blocks.
  1825. * src/common.h (list_dumpdir): Likewise.
  1826. * src/list.c (list_archive): Use list_dumpdir() to display
  1827. GNUTYPE_DUMPDIR blocks. Do that only if two or more -v options are
  1828. given.
  1829. 2005-09-12 Paul Eggert <[email protected]>
  1830. * lib/.cvsignore: Adjust to current gnulib and modules used.
  1831. Add getdelim.c, getdelim.h, mbchar.c, mbchar.h, mbuiter.h, memchr.c,
  1832. pipe-safer.c, size_max.h, strdup.c, strdup.h, strnlen.h, strnlen1.c,
  1833. strnlen1.h, unistd--.h.
  1834. Remove getndelim2.c, getndelim2.h, pathmax.h, sysexits.h, xstrdup.c.
  1835. Treat fishy-looking hard links like fishy-looking symlinks.
  1836. * src/extract.c (struct delayed_set_stat): Rename after_symlinks
  1837. member to after_links. All uses changed.
  1838. (struct delayed_link): Renamed from struct delayed_symlink.
  1839. All uses changed. New member is_symlink.
  1840. (delayed_link_head): Renamed from delayed_symlink_head. All uses
  1841. changed.
  1842. (create_placeholder_file): New function, taken from extract_symlink.
  1843. (extract_link): Create placeholders for fishy-looking hard links.
  1844. (extract_symlink): Move code into create_placeholder_file.
  1845. (apply_delayed_links): Renamed from apply_delayed_symlinks.
  1846. All uses changed. Create both hard links and symlinks.
  1847. 2005-09-03 Paul Eggert <[email protected]>
  1848. * README-alpha: Modernize description of software required for
  1849. developers.
  1850. 2005-09-03 Sergey Poznyakoff <[email protected]>
  1851. * gnulib.modules: Add strdup
  1852. * src/incremen.c (purge_directory): Do not dereference symbolic
  1853. links. Bug reported by Ralph Corderoy <[email protected]> and
  1854. David Brown <[email protected]>
  1855. * tests/incr01.at: New test.
  1856. * tests/Makefile.am: Add incr01.at
  1857. * tests/testsuite.at: Likewise
  1858. * THANKS: Updated
  1859. 2005-08-17 Sergey Poznyakoff <[email protected]>
  1860. * src/incremen.c (read_directory_file): Use strtoumax to read
  1861. snapshot file contents.
  1862. (write_directory_file_entry): Use umaxtostr().
  1863. 2005-07-31 Sergey Poznyakoff <[email protected]>
  1864. * src/create.c (file_dumpable_p,dump_file0): Fix handling of
  1865. sparse files to /dev/null with --totals option.
  1866. * tests/update.at: Remove dependency on file order.
  1867. 2005-07-08 Sergey Poznyakoff <[email protected]>
  1868. * doc/tar.texi: Fix typo.
  1869. 2005-07-07 Sergey Poznyakoff <[email protected]>
  1870. * tests/pipe.at: Pipe the output from `tar xfv' through sort.
  1871. 2005-06-25 Sergey Poznyakoff <[email protected]>
  1872. * src/sparse.c (tar_sparse_init): Fill structure with zeros. Call
  1873. sparse_select_optab(). All callers updated.
  1874. (sparse_member_p, sparse_fixup_header): Use tar_sparse_init().
  1875. 2005-06-23 Sergey Poznyakoff <[email protected]>
  1876. * src/sparse.c (pax_sparse_member_p): Checking member size
  1877. vs. file size is not reliable enough. Use sparse_map_avail.
  1878. * tests/star/gtarfail.at: Adapt to the new output format
  1879. * tests/star/gtarfail2.at: Likewise
  1880. * tests/star/multi-fail.at: Likewise
  1881. * tests/star/pax-big-10g.at: Likewise
  1882. * tests/star/ustar-big-2g.at: Likewise
  1883. * tests/star/ustar-big-8g.at: Likewise
  1884. * tests/sparse03.at: New test.
  1885. * tests/Makefile.am: Add sparse03.at
  1886. * tests/testsuite.at: Likewise
  1887. * src/xheader.c (size_decoder): Do not set archive_file_size.
  1888. Fix bugs introduced yesterday:
  1889. * src/sparse.c (tar_sparse_init): Initialize
  1890. dimped_size to 0.
  1891. (sparse_scan_file): Initialize archive_file_size to 0. The
  1892. variable keeps size of the file *as stored in the archive*, not
  1893. the size reported by stat.
  1894. 2005-06-22 Paul Eggert <[email protected]>
  1895. A sweep of the sparse code prompted by a bug report by Jim Meyering.
  1896. * src/sparse.c: Include <inttostr.h>.
  1897. (struct tar_sparse_file): offset and dumped_size are off_t, not
  1898. size_t. optab is now const *.
  1899. (dump_zeros): Return bool success flag, not off_t.
  1900. All callers changed.
  1901. Use a constant-zero buffer rather than clearing a buffer each time.
  1902. Don't mess up if write fails.
  1903. (dump_zeros, check_sparse_region):
  1904. Don't assume off_t is no wider than size_t.
  1905. (tar_sparse_init): Don't bother clearing a field that is already clear.
  1906. (zero_block_p): First arg is const *, not *.
  1907. (clear_block, SPARSES_INIT_COUNT): Remove.
  1908. (sparse_add_map): First arg is now struct start_stat_info *, not
  1909. struct tar_sparse_file *. All callers changed.
  1910. Use x2nrealloc to check for size_t overflow.
  1911. (parse_scan_file): Cache commonly-used parts of file.
  1912. Use an auto buffer, not a static one.
  1913. Don't bother clearing the buffer; not needed.
  1914. Don't bother clearing items that are already clear.
  1915. (oldgnu_optab, star_optab, pax_optab): Now const.
  1916. (sparse_dump_region): Don't bother clearing the buffer before
  1917. reading into it; just clear the parts that aren't read into.
  1918. (sparse_dump_file): Clear the whole local variable 'file'.
  1919. (diff_buffer): Remove; now a local var.
  1920. (check_sparse_region): Don't bother clearing buffer before
  1921. reading into it. Don't assume off_t is promoted to long.
  1922. (oldgnu_get_sparse_info, star_get_sparse_info):
  1923. Use an auto status, not static.
  1924. * src/tar.h (struct tar_stat_info): had_trailing_slash is
  1925. now bool, not int.
  1926. * src/xheader.c (sparse_offset_coder, sparse_numbytes_coder):
  1927. Rewrite to avoid cast.
  1928. (sparse_offset_decoder, sparse_numbytes_decoder):
  1929. Diagnose excess entries rather than crashing.
  1930. 2005-06-22 Jim Meyering <[email protected]>
  1931. * src/common.h (timespec_lt): Add a return type: bool.
  1932. 2005-06-21 Paul Eggert <[email protected]>
  1933. Further improvements inspired by Jim Meyering's fixes.
  1934. * NEWS: Better support for full-resolution time stamps.
  1935. The -v option now prints time stamps only to 1-minute resolution.
  1936. * gnulib.modules: Add utimens.
  1937. * lib/.cvsignore: Add imaxtostr.c, inttostr.c, inttostr.h,
  1938. offtostr.c, umaxtostr.c, utimens.c, utimens.h. Remove paxconvert.c.
  1939. * lib/Makefile.tmpl (libtar_a_SOURCES): Remove paxconvert.c.
  1940. * lib/paxconvert.c: Remove; superseded by umaxtostr.c.
  1941. * po/POTFILES.in: Remove lib/paxconvert.c. Add lib/xalloc-die.c,
  1942. lib/obstack.c.
  1943. * src/buffer.c (set_start_time, compute_duration, start_time):
  1944. Use gettime rather than rolling our own code.
  1945. * src/common.h (OLDGNU_NAME_FIELD_SIZE, MAXOCTAL11, MAXOCTAL7): Remove.
  1946. (newer_ctime_option): Remove.
  1947. (timespec_lt): New function.
  1948. (OLDER_STAT_TIME): Use it.
  1949. (string_to_chars): First arg is char const *, not char *.
  1950. (tartime): Time arg is now struct timespec. New bool arg.
  1951. All callers changed.
  1952. (code_ns_fraction): New decl.
  1953. (sys_stat_nanoseconds): Remove decl.
  1954. (get_stat_atime, get_stat_ctime, get_stat_mtime): New functions.
  1955. (set_stat_atime, set_stat_ctime, set_stat_mtime): New functions.
  1956. * src/compare.c: Include utimens.h rather than rolling our own.
  1957. (diff_dir, diff_file, diff_link, diff_symlink, diff_special):
  1958. Prototype.
  1959. (diff_dumpdir, diff_multivol): Prototype.
  1960. (diff_file): Support higher-resolution time stamps.
  1961. * src/create.c: Include utimens.h rather than rolling our own.
  1962. (MAX_OCTAL_VAL): New macro.
  1963. (tar_copy_str, string_to_chars): Don't bother to zero-fill;
  1964. the destination is already zeroed.
  1965. (string_to_chars): First arg is char const *.
  1966. (start_private_header): Use MINOR_TO_CHARS, not MAJOR_TO_CHARS,
  1967. for minor device number.
  1968. (write_header_name, dump_hard_link, dump_file0):
  1969. Simplify test for old GNU format.
  1970. (start_header): Put in placeholders for uid, etc., even when
  1971. using extended headers, for benefit of older "tar" implementations.
  1972. Don't assume uintmax_t is wider than 32 bits.
  1973. Output extended header for mtime if needed.
  1974. (dump_regular_finish, dump_file0):
  1975. Support extended time stamp resolution.
  1976. * src/extract.c: Include utimens.h rather than rolling our own.
  1977. (check_time): Support extended time stamp resolution.
  1978. * src/list.c: Include <inttostr.h>.
  1979. (tartime): Use umaxtostr rather than stringify_uintmax_t_backwards.
  1980. * src/xheader.c: Include <inttostr.h>.
  1981. Do not include <xstrtol.h>.
  1982. (strtoimax) [!HAVE_DECL_STRTOIMAX && !defined strtoimax]: New decl.
  1983. (strtoumax) [!HAVE_DECL_STRTOUMAX && !defined strtoumax]: New decl.
  1984. (BILLION, LOG10_BILLION): New constants.
  1985. (to_decimal): Remove; superseded by inttostr. All callers changed
  1986. to use umaxtostr.
  1987. (xheader_format_name): Don't assume pids and uintmax_t values
  1988. fit in 63 bytes (!) when printed.
  1989. (decode_record): Don't bother to check for ERANGE; an out of range
  1990. value must be treater than len_max anyway.
  1991. If the length is out of range, output it in the diagnostic.
  1992. (format_uintmax): Remove; all callers changed to use umaxtostr.
  1993. (xheader_print): Don't assume sizes can be printed in 99 bytes (!).
  1994. (out_of_range_header): New function.
  1995. (decode_time): Use it.
  1996. (code_time): Accept struct timespec, not time_t and unsigned long.
  1997. All callers changed. Size sbuf properly, and remove unnecessary check.
  1998. Don't assume time stamps can fit in 199 bytes.
  1999. Handle negative time stamps. Handle fractional time stamps
  2000. more consistently. Don't output unnecessary trailing zeros.
  2001. (decode_time): Yield struct timespec, not time_t and unsigned long.
  2002. All callers changed.
  2003. Handle negative time stamps. Truncate towards minus infinity
  2004. consistently. Improve overflow checks, and output a better
  2005. diagnostic on overflow.
  2006. (code_num): Don't assume uintmax_t can be printed in 99 bytes (!).
  2007. (decode_num): New function, for better diagnostics.
  2008. (atime_coder, atime_decoder, gid_decoder, ctime_coder):
  2009. (ctime_decoder, mtime_coder, mtime_decoder, size_decoder):
  2010. (uid_decoder, sparse_size_decoder, sparse_numblocks_decoder):
  2011. (sparse_offset_decoder, sparse_numbytes_decoder):
  2012. Use decode_num, etc., instead of xstrtoumax, etc.
  2013. 2005-06-21 Jim Meyering <[email protected]>
  2014. Carefully crafted invalid headers can cause buffer overrun.
  2015. Invalid header fields go undiagnosed.
  2016. Some valid time strings are ignored.
  2017. * src/xheader.c (sparse_numblocks_decoder): Remove unchecked use
  2018. of `calloc'. Use xcalloc instead.
  2019. (decode_time, gid_decoder, size_decoder, uid_decoder):
  2020. (sparse_size_decoder, sparse_offset_decoder, sparse_numblocks_decoder):
  2021. Ensure that the result of calling xstrtoumax is no larger than
  2022. the maximum value for the target type. Upon any failure, exit with
  2023. a diagnostic.
  2024. (sparse_numblocks_decoder): Avoid buffer overrun/heap corruption:
  2025. use x2nrealloc, rather than `n *= 2' and xrealloc(p, n,....
  2026. (decode_time): Rewrite to accept time strings like
  2027. 1119018481.000000000. Before, such strings were always ignored.
  2028. 2005-06-13 Sergey Poznyakoff <[email protected]>
  2029. * src/create.c (dump_file0): Check for is_avoided_name()
  2030. first. Fixes bug reported by Martin Lohmeier
  2031. <[email protected]>
  2032. * tests/update.at: New file
  2033. * tests/Makefile.am (TESTSUITE_AT): Add update.at
  2034. * tests/testsuite.at: Likewise
  2035. 2005-06-13 Sergey Poznyakoff <[email protected]>
  2036. * configure.ac (AC_STRUCT_ST_BLKSIZE)
  2037. (AC_STRUCT_ST_BLOCKS): Removed. Handled by system.m4.
  2038. 2005-06-02 Paul Eggert <[email protected]>
  2039. * src/names.c (excluded_name): excluded_filename ->
  2040. excluded_file_name, because the name was changed in gnulib.
  2041. 2005-05-30 Sergey Poznyakoff <[email protected]>
  2042. * src/tar.c (read_name_from_file,update_argv): Automatically
  2043. detect nul-terminated list files.
  2044. * NEWS: Updated
  2045. 2005-05-27 Sergey Poznyakoff <[email protected]>
  2046. * scripts/backup.sh.in: Bugfixes.
  2047. 2005-05-26 Sergey Poznyakoff <[email protected]>
  2048. * scripts/backup.in: Minor fixes
  2049. * scripts/backup.sh.in (mt_begin,mt_rewind)
  2050. (mt_offline,mt_status): Use $MT to invoke mt
  2051. (init_common): Set --rsh-command option for mt if TAPE_FILE is a
  2052. remote archive.
  2053. * doc/tar.texi: Document new backup scripts behavior
  2054. 2005-05-22 Sergey Poznyakoff <[email protected]>
  2055. * lib/.cvsignore: Updated
  2056. * lib/Makefile.tmpl: Add new paxutils files
  2057. * po/POTFILES.in: Likewise
  2058. * src/buffer.c: Update invocations of safer_name_suffix()
  2059. * src/create.c: Likewise
  2060. * src/extract.c: Likewise
  2061. * src/xheader.c: Likewise
  2062. * src/common.h: Include paxlib.h instead of paxerror.h
  2063. (safer_name_suffix,removed_prefixes_p): Removed. The functions are
  2064. imported from paxutils
  2065. * src/names.c (hash_string_hasher,hash_string_compare)
  2066. (hash_string_insert,hash_string_lookup,removed_prefixes_p)
  2067. (safer_name_suffix): Moved to paxutils
  2068. 2005-05-19 Sergey Poznyakoff <[email protected]>
  2069. * bootstrap (copy_files): Accept optional third argument: a prefix
  2070. to be appended to destination file names.
  2071. Import paxutils/paxlib files.
  2072. * configure.ac: Remove checking for LIB_SETSOCKOPT, it is handled
  2073. by paxutils.
  2074. * lib/Makefile.tmpl (libtar_a_SOURCES): Add paxerror.c paxexit.c
  2075. paxconvert.c
  2076. * po/POTFILES.in: Likewise.
  2077. * src/common.h: Remove defines and declarations imported from
  2078. paxutils
  2079. * src/misc.c: Likewise
  2080. * src/list.c (stringify_uintmax_t_backwards): Moved to paxutils
  2081. 2005-05-17 Paul Eggert <[email protected]>
  2082. * src/misc.c (remove_any_file): Fix typo in previous change.
  2083. 2005-05-14 Paul Eggert <[email protected]>
  2084. Port to Solaris 10's treatment of unlinking directories.
  2085. * gnulib-modules: Add unlinkdir.
  2086. * lib/.cvsignore: Add unlinkdir.h, unlinkdir.c.
  2087. * src/common.h (we_are_root): Remove extern decl; it's now static.
  2088. * src/extract.c (we_are_root): Now static.
  2089. * src/misc.c: Include <unlinkdir.h>.
  2090. (remove_any_file): Use cannot_unlink_dir () rather than we_are_root.
  2091. * ChangeLog, ChangeLog.1, Makefile.am, NEWS, PORTS, README,
  2092. README-alpha, TODO, bootstrap, configure.ac, doc/Makefile.am,
  2093. doc/convtexi.pl, doc/fdl.texi, doc/gendocs_template,
  2094. lib/Makefile.tmpl, lib/prepargs.c, lib/waitpid.c, po/POTFILES.in,
  2095. scripts/Makefile.am, scripts/backup-specs, scripts/backup.in,
  2096. scripts/backup.sh.in, scripts/restore.in, src/Makefile.am,
  2097. src/arith.h, src/buffer.c, src/common.h, src/compare.c,
  2098. src/create.c, src/delete.c, src/extract.c, src/incremen.c,
  2099. src/list.c, src/mangle.c, src/misc.c, src/names.c, src/sparse.c,
  2100. src/system.c, src/tar.c, src/tar.h, src/update.c, src/utf8.c,
  2101. src/xheader.c, tests/Makefile.am, tests/append.at,
  2102. tests/append01.at, tests/comprec.at, tests/delete01.at,
  2103. tests/delete02.at, tests/delete03.at, tests/delete04.at,
  2104. tests/delete05.at, tests/extrac01.at, tests/extrac02.at,
  2105. tests/extrac03.at, tests/extrac04.at, tests/extrac05.at,
  2106. tests/gzip.at, tests/ignfail.at, tests/incremental.at,
  2107. tests/link01.at, tests/listed01.at, tests/listed02.at,
  2108. tests/long01.at, tests/longv7.at, tests/multiv01.at,
  2109. tests/multiv02.at, tests/multiv03.at, tests/multiv04.at,
  2110. tests/old.at, tests/options.at, tests/options02.at, tests/pipe.at,
  2111. tests/recurse.at, tests/same-order01.at, tests/same-order02.at,
  2112. tests/shortrec.at, tests/sparse01.at, tests/sparse02.at,
  2113. tests/testsuite.at, tests/truncate.at, tests/version.at,
  2114. tests/volume.at, tests/star/gtarfail.at, tests/star/gtarfail2.at,
  2115. tests/star/multi-fail.at, tests/star/pax-big-10g.at,
  2116. tests/star/quicktest.sh, tests/star/ustar-big-2g.at,
  2117. tests/star/ustar-big-8g.at:
  2118. Update FSF postal mail address.
  2119. 2005-05-12 Sergey Poznyakoff <[email protected]>
  2120. * NEWS: Updated
  2121. * THANKS: Updated
  2122. * bootstrap: Install files from paxutils/doc
  2123. * doc/Makefile.am (tar_TEXINFOS): Add genfile.texi
  2124. * doc/tar.texi (Genfile): New appendix
  2125. * src/compare.c (diff_file): diff_handle was not initialized
  2126. * src/create.c (dump_regular_file): Correctly pad archive members
  2127. that shrunk during archiving. Repored by Frank Heckenbach.
  2128. * src/extract.c (file_newer_p): Return false if file does not
  2129. exist
  2130. (prepare_to_extract): Correct warning wording.
  2131. * tests/truncate.at: New test case
  2132. * tests/Makefile.am: Add truncate.at
  2133. * tests/testsuite.at: Likewise.
  2134. * doc/.cvsignore: Updated
  2135. * lib/.cvsignore: Updated
  2136. * tests/.cvsignore: Updated
  2137. 2005-05-02 Paul Eggert <[email protected]>
  2138. * tests/multivol04.at: Tell awk to read from /dev/null.
  2139. Adjust to recent gnulib changes.
  2140. * lib/.cvsignore: Add dup-safer.c, fd-safer.c, unistd-safer.h.
  2141. * src/common.h (initial_umask): New var.
  2142. * src/create.c (start_ueader): Use it, and adjust to new modechange
  2143. API.
  2144. (hash_link): unsigned -> size_t parameters and result.
  2145. * src/incremen.c (hash_directory): Likewise.
  2146. * src/names.c (hash_string_hasher): Likewise.
  2147. * src/tar.c (parse_opt): Set it, and adjust to new modechange API.
  2148. 2005-04-19 Sergey Poznyakoff <[email protected]>
  2149. * tests/Makefile.am: Add shortrec.at.
  2150. 2005-04-18 Paul Eggert <[email protected]>
  2151. * src/buffer.c (reading_from_pipe): Remove. All uses removed.
  2152. (short_read): Don't warn about short reads; they're normal.
  2153. * tests/shortrec.at: New file.
  2154. * tests/testsuite.at: Include it.
  2155. * bootstrap (gnulib_modules): Don't create a file modlist.tmp, as
  2156. it is sometimes left behind as a garbage file (maybe due to the
  2157. multiple traps?).
  2158. 2005-04-14 Sergey Poznyakoff <[email protected]>
  2159. * src/list.c: Handle Solaris 'X' type flag
  2160. * src/tar.h (SOLARIS_XHDTYPE): New define
  2161. 2005-04-06 Sergey Poznyakoff <[email protected]>
  2162. * src/tar.c: Minor fixes to text messages. Proposed by Benno
  2163. Schulenberg.
  2164. * src/extract.c: Likewise
  2165. (extract_file): Assign orig_file_name
  2166. to save_name uniformly over the program. This fixes matching
  2167. directory names at the start of an archive volume.
  2168. * src/buffer.c (flush_write): Warn when the name of the archive
  2169. straddling volume boundary is longer than 100 characters. Earlier
  2170. behavior was to issue a fatal error.
  2171. (struct zip_magic): Reverted part of changes from 2005-04-04.
  2172. They make the maintenance too costly. Removing `unsigned'
  2173. qualifier from `magic' member should be enough.
  2174. * src/compare.c (diff_init): Read directory file if in listed
  2175. incremental. This prevents spurious 'Contents differ' diagnostics.
  2176. (diff_archive): Minor fixes to text messages
  2177. (diff_file,diff_dumpdir,diff_multivol): Assign orig_file_name
  2178. to save_name uniformly over the program. This fixes matching
  2179. directory names at the start of an archive volume.
  2180. * src/create.c: Assign orig_file_name
  2181. to save_name uniformly over the program. This fixes matching
  2182. directory names at the start of an archive volume.
  2183. * src/list.c: Likewise
  2184. * tests/multiv03.at: Modified to match the new behavior
  2185. * tests/multiv04.at: New file. Test splitting directory members between
  2186. the archive volumes.
  2187. * tests/Makefile.am: Add multiv04.at
  2188. * tests/testsuite.at: Likewise.
  2189. 2005-04-04 Paul Eggert <[email protected]>
  2190. * configure.ac (AC_CONFIG_AUX_DIR): Rename from config to build-aux,
  2191. for reasons discussed in the thread beginning at
  2192. <http://lists.gnu.org/archive/html/bug-gnulib/2005-03/msg00119.html>.
  2193. * .cvsignore: Remove config; add build-aux.
  2194. * src/buffer.c (struct zip_magic): Use char arrays, not pointers.
  2195. The unsigned char * pointer ran afoul of pedantic C compilers, and
  2196. we didn't need pointers anyway. Put the size field before the
  2197. data to avoid unnecessary padding. All uses changed.
  2198. (magic) Make it const, since it doesn't change. All uses changed.
  2199. 2005-04-02 Paul Eggert <[email protected]>
  2200. * src/xheader.c (decode_record): Don't dump core when given
  2201. a corrupted extended header. Problem reported by Jim Meyering.
  2202. Also, check for other ways that the header might be invalid,
  2203. e.g., missing newline at end. Do not allow keys with nulls.
  2204. Allow blanks before and after length, as POSIX requires.
  2205. Do not allow leading "-" in length. Check for length overflow.
  2206. (xheader_decode, xheader_decode_global): Let decode_record
  2207. check for exhaustion of record.
  2208. (xheader_read): Null-terminate the extended record;
  2209. decode_record relies on this.
  2210. 2005-03-21 Paul Eggert <[email protected]>
  2211. * bootstrap (TP_URL): Change from
  2212. <http://www2.iro.umontreal.ca/~gnutra/po/maint/tar/> to
  2213. <http://www.iro.umontreal.ca/translation/maint/tar/> to avoid
  2214. some redirection glitches.
  2215. Use "trap - 0" rather than "trap 0" to fix a POSIX-conformance bug.
  2216. * doc/.cvsignore: Change "tar.info" to "tar.info*". Sort.
  2217. * lib/.cvsignore: Add intprops.h (new gnulib file).
  2218. 2005-03-04 Sergey Poznyakoff <[email protected]>
  2219. * src/list.c (print_header): Print UID/GID in case of
  2220. empty user/group name. This could occur when dumping
  2221. files belonging to non-existing users and when listing
  2222. broken archives.
  2223. Reported by Igor Lautar.
  2224. * src/create.c: Correctly parse empty uname/gname
  2225. * src/sparse.c (sparse_scan_file): Bugfix. offset had
  2226. incorrect type.
  2227. * scripts/backup.in: Use `head -n 1'. Provide missing
  2228. argument to ${MT_STATUS}. Proposed by Jan Merka.
  2229. * scripts/backup.sh.in: Likewise. Fixed typo in
  2230. MT_OFFLINE assignment.
  2231. * scripts/restore.in (restore_fs): Use root_fs
  2232. 2005-02-15 Sergey Poznyakoff <[email protected]>
  2233. * src/create.c: Replace strdup with xstrdup
  2234. * src/names.c: Likewise
  2235. * src/tar.c: Likewise
  2236. * tests/append01.at: Added reference to bug-tar archive
  2237. * tests/listed02.at: Use -print with find.
  2238. 2005-02-11 Sergey Poznyakoff <[email protected]>
  2239. * THANKS: Added Tim Adye. Fixed UTF.
  2240. * src/list.c (read_header): Removed assignment to
  2241. oldgnu_header.isextended. It was breaking append mode.
  2242. * tests/append01.at: New test.
  2243. * tests/Makefile.am: Added append01.at
  2244. * tests/testsuite.at: Likewise
  2245. 2005-02-06 Sergey Poznyakoff <[email protected]>
  2246. * gnulib.modules: New file. List of required gnulib
  2247. modules.
  2248. * bootstrap: Merge list of required modules from
  2249. paxutils with that from tar proper.
  2250. * src/tar.c: Various fixes in help and diagnostic messages.
  2251. 2005-02-05 Sergey Poznyakoff <[email protected]>
  2252. * src/common.h (EXTRACT_OVER_PIPE): New macro
  2253. * src/compare.c: Code clean up.
  2254. * src/extract.c (extract_archive): Do not check for
  2255. EXTRACT_OVER_PIPE, decode_options() does this.
  2256. * src/misc.c (exec_error,fork_error,dup2_error)
  2257. (pipe_error): Removed unneeded functions.
  2258. * src/system.c (sys_exec_command): Use xclose, xpipe,
  2259. xfork, xdup2 and exec_fatal.
  2260. * src/tar.c (options): Improved sorting. Document --backup=off.
  2261. (decode_options): Clear backup_option if necessary.
  2262. 2005-02-05 Sergey Poznyakoff <[email protected]>
  2263. Initial implementation of --to-command option proposed
  2264. by Hansjoerg Lipp.
  2265. * bootstrap: Get setenv module from gnulib
  2266. * src/buffer.c: Do not use 8-bit chars in comments
  2267. * src/common.h (to_command_option)
  2268. (ignore_command_error_option): New globals
  2269. (sys_exec_command,sys_wait_command): New commands
  2270. * src/extract.c (extract_file): Handle to_command_option
  2271. Fix error recovery: decrease `size' by `written', not
  2272. by `count', otherwise tar misses the next header
  2273. Do not diagnose write error if to_command_option
  2274. is set, since the command may have exited prematurely.
  2275. It would be better to check for sigpipe, though.
  2276. (prepare_to_extract): Handle to_command_option
  2277. * src/misc.c (exec_error, fork_error, dup_error)
  2278. (pipe_error): New functions
  2279. * src/system.c (sys_exec_command)
  2280. (sys_wait_command): New functions
  2281. * src/tar.c: Handle new options --to-command,
  2282. --ignore-command-error
  2283. * THANKS: Added Hansjoerg Lipp
  2284. 2005-02-03 Paul Eggert <[email protected]>
  2285. * src/list.c (from_header): New arg OCTAL_ONLY, normally false.
  2286. All uses changed. Fix typo that sometimes suppressed all "Archive
  2287. contains obsolescent base-64 headers" warnings, not just the first
  2288. one.
  2289. (tar_checksum): Accept only octal checksums, since they aren't
  2290. supposed to overflow into weird formats.
  2291. Adjust to gnulib changes.
  2292. * lib/.cvsignore: Add chdir-long.c, chdir-long.h, memrchr.c,
  2293. memrchr.h, openat.c, openat.h. Remove pathmax.h (added by
  2294. mistake, perhaps?), sysexit.h (my typo), xstrdup.c (gnulib removed
  2295. this file). Sort entries.
  2296. 2005-02-04 Sergey Poznyakoff <[email protected]>
  2297. * src/extract.c: Further rewrite.
  2298. * src/buffer.c: Removed unused variables.
  2299. * src/list.c: Likewise
  2300. * src/tar.c (update_argv): Changed type to void
  2301. * src/common.h (OLDGNU_NAME_FIELD_SIZE): New constant
  2302. * src/create.c (start_private_header,write_header_name)
  2303. (dump_hard_link): Restore compatibility with 1.13.25
  2304. * src/extract.c (extract_archive): Rewritten
  2305. * src/list.c: Add translators' comments
  2306. * src/tar.c (options) Minor spelling fix
  2307. * tests/star/quicktest.sh: Determine path to the tar executable.
  2308. 2005-02-03 Sergey Poznyakoff <[email protected]>
  2309. * po/POTFILES.in: Added tests/genfile.c
  2310. * src/buffer.c (short_read): Use ngettext()
  2311. (new_volume): use quote().
  2312. * src/create.c: Use quote()
  2313. * src/extract.c: Likewise
  2314. * src/xheader.c: Likewise
  2315. * src/misc.c: Add comments to translators
  2316. * tests/same-order01.at: sort ls output
  2317. * tests/sparse01.at (RE_CHECK): Added missing space
  2318. * tests/sparse02.at: Test extracting sparse files over a pipe.
  2319. * tests/Makefile.am: Added sparse02.at
  2320. * tests/testsuite.at: Likewise
  2321. * tests/listed02.at: Skip the test on filesystems that do not
  2322. update ctime of a file when renaming it. To be reverted when
  2323. the new incremental mode is ready.
  2324. * tests/sparse01.at: Extract and compare sparse file
  2325. 2005-02-02 Sergey Poznyakoff <[email protected]>
  2326. * src/sparse.c: Extract sparse files even if the output
  2327. fd is not seekable.
  2328. 2005-02-01 Sergey Poznyakoff <[email protected]>
  2329. * bootstrap: Add a comment to lib/Makefile.am saying that this
  2330. is an autogenerated file.
  2331. Exit with code 1 if any of autotools fails.
  2332. * lib/Makefile.tmpl: Insert Emacs magic to the first line.
  2333. * tests/Makefile.am: Add append.at
  2334. * m4/.cvsignore: Ignore all *.m4 files
  2335. 2005-01-18 Sergey Poznyakoff <[email protected]>
  2336. Rewritten handling of -T (--files-from) option. Now it
  2337. inserts the file names immediately into argv array which allows
  2338. for:
  2339. 1) any valid tar options (including another -T) to be used in the file
  2340. 2) any number of -T options to be given in command line
  2341. * configure.ac: Raised version number to 1.15.2
  2342. * src/common.h: Include obstack.h
  2343. (files_from_option): Removed
  2344. (unquote_option): New variable
  2345. (stat_fatal): New function
  2346. (name_close): Removed function.
  2347. * src/incremen.c: Remove inclusion of obstack.h
  2348. * src/xheader.c: Likewise.
  2349. * src/misc.c (stat_fatal): New function
  2350. * src/names.c (name_file): Removed variable.
  2351. (read_name_from_file): Removed function. All callers changed.
  2352. (name_close): Removed function. All callers changed.
  2353. * src/tar.c: New options --unquote (--no-unquote) and
  2354. --add-file
  2355. (add_file_id,read_name_from_file,update_argv): New functions
  2356. (parse_opt): Rewritten handling of -T option. Handle hidden
  2357. --HANG option for debugging purposes.
  2358. (decode_options): Init unquote_option to true. Init argv_stk.
  2359. Remove unneeded references to files_from_option
  2360. * doc/tar.texi: Document new options.
  2361. Moved rendition macros and option value definitions into
  2362. separate files
  2363. * doc/rendition.texi: New file
  2364. * doc/value.texi: New file
  2365. * doc/Makefile.am: Updated
  2366. 2005-01-13 Paul Eggert <[email protected]>
  2367. * tests/testsuite.at (RE_CHECK): Use "join - file", not
  2368. "join file -", to work around a bug in Solaris 8 join.
  2369. Problem reported by Tomohiro Suzuki.
  2370. 2005-01-13 Sergey Poznyakoff <[email protected]>
  2371. * src/list.c (read_header): Fixed calculation of the
  2372. size for GNU long name/link. Tar was reading one block
  2373. more if name_size was divisible by 512. Thanks Josef
  2374. Bauer.
  2375. * tests/long01.at: New file. Test listing of GNU long names
  2376. divisible by 512.
  2377. * tests/pipe.at: Sort tar output.
  2378. * tests/Makefile.am: Added long01.at
  2379. * tests/testsuite.at: Likewise.
  2380. * THANKS: Added Josef Bauer
  2381. * lib/.cvsignore: Updated
  2382. * m4/.cvsignore: Updated
  2383. * NEWS: Updated
  2384. 2005-01-11 Sergey Poznyakoff <[email protected]>
  2385. * directory: Updated for 1.15.1
  2386. * doc/Makefile.am: Use gendocs.sh to generate web documentation
  2387. * doc/gendocs_template: Template file for gendocs.sh
  2388. * doc/tar.texi: Updated docs for --[no-]same-permissions
  2389. * src/tar.c: Reworded docstrings for --[no-]same-permissions
  2390. 2005-01-06 Sergey Poznyakoff <[email protected]>
  2391. * bootstrap: Create m4/paxutils.m4
  2392. * configure.ac: Call tar_PAXUTILS
  2393. * tests/options02.at: Test that tar correctly handles non-option
  2394. arguments interspersed with options.
  2395. * tests/Makefile.am: Add options02.at
  2396. * tests/testsuite.at: Likewise
  2397. * tests/listed02.at: Do not create useless directory
  2398. 2005-01-05 Sergey Poznyakoff <[email protected]>
  2399. * src/tar.c (parse_opt): Bugfix: Use ARGP_KEY_ARG. Thanks
  2400. Mike Frysinger <[email protected]> for reporting.
  2401. 2005-01-04 Paul Eggert <[email protected]>
  2402. * lib/Makefile.tmpl (localedir.h): Omit needless quotes and a
  2403. needless sed command. Problem reported by Paul Jarc.
  2404. 2004-12-23 Paul Eggert <[email protected]>
  2405. Accommodate latest gnulib.
  2406. * doc/.cvsignore: Add getdate.texi.
  2407. * bootstrap: Do not treat alloca-opt specially; this is no
  2408. longer needed (and breaks builds) with latest gnulib.
  2409. 2004-12-22 Sergey Poznyakoff <[email protected]>
  2410. * src/tar.c (main): Reverted recent changes (#ifdef).
  2411. 2004-12-21 Sergey Poznyakoff <[email protected]>
  2412. * configure.ac: Raise version number to 1.15.1
  2413. Check for locale.h
  2414. * NEWS: Entry for 1.15.1
  2415. * src/buffer.c: Bugfix. Changes introduced 2004-11-26
  2416. broke extraction from stdin.
  2417. * src/list.c (from_header, tar_checksum): Changed declaration.
  2418. All callers updated.
  2419. * src/common.h: Likewise
  2420. * src/tar.c (main): Protect invocation of setlocale by
  2421. ifdef.
  2422. * tests/comprec.at: New test
  2423. * tests/pipe.at: New test
  2424. * tests/Makefile.am (comprec.at,pipe.at): New tests
  2425. * tests/testsuite.at: Likewise
  2426. * tests/gzip.at: Use AT_GZIP_PREREQ
  2427. * tests/star/pax-big-10g.at: Likewise
  2428. * tests/star/ustar-big-2g.at: Likewise
  2429. * tests/star/ustar-big-8g.at: Likewise
  2430. * tests/extrac04.at: Discard stderr from sort, on some
  2431. systems it spits out lots of irrelevant info.
  2432. * tests/listed02.at: Likewise
  2433. * doc/index.html.in: Rewritten in xhtml to follow recent
  2434. GNU site standards.
  2435. * THANKS: Updated
  2436. 2004-12-20 Sergey Poznyakoff <[email protected]>
  2437. Released version 1.15. Sources up to this point are
  2438. tagged release_1_15.
  2439. * configure.ac: Raised version number to 1.15
  2440. * NEWS: Likewise
  2441. * directory: Updated
  2442. * bootstrap (update_po): Give -r to wget. Always remove index.html
  2443. Ignore alloca-opt module (it duplicates alloca)
  2444. * tests/Makefile.am: Distribute star/quicktest.sh
  2445. * tests/star/README: Document quicktest.sh
  2446. * tests/star/qucktest.sh: Removed.
  2447. * tests/star/quicktest.sh: New file.
  2448. 2004-12-18 Sergey Poznyakoff <[email protected]>
  2449. * NEWS: Updated
  2450. * doc/tar.texi: Document auto-detection of compressed archive
  2451. formats.
  2452. * src/tar.c (decode_options): Ignore --seek if used with --delete.
  2453. Delete.c is based on the assumption that the archive is being
  2454. actually read, not lseeked.
  2455. * tests/delete05.at: New file
  2456. * tests/extrac02.at: Fixed typo in AT_SETUP
  2457. * tests/Makefile.am: Added delete05.at
  2458. * tests/testsuite.at: Likewise.
  2459. 2004-12-17 Sergey Poznyakoff <[email protected]>
  2460. * src/delete.c (delete_archive_members): Bugfix: when
  2461. attempting to delete an nonexistent member, the last
  2462. blocking_factor blocks were zeroed.
  2463. 2004-12-14 Paul Eggert <[email protected]>
  2464. * TODO: Mention sub-second resolution, lutimes, lchmod.
  2465. 2004-11-27 Paul Eggert <[email protected]>
  2466. Adjust to recent gnulib changes.
  2467. * doc/getdate.texi: Remove, since bootstrap gets it from gnulib now.
  2468. * .cvsignore: Add rmt, rmt/*, rmt/*/*.
  2469. * lib/.cvsignore: Add allocsa.c, allocsa.h, allocsa.valgrind,
  2470. charset.alias, config.charset, getcwd.c, getcwd.h, localcharset.c,
  2471. localcharset.h, ref-add.sed, ref-add.sin, ref-del.sed,
  2472. ref-del.sin, setenv.c, setenv.h, unsetenv.c. Remove pathmax.h,
  2473. xstrdup.c.
  2474. * m4/.cvsignore: Add allocsa.m4, eealloc.m4, getcwd-path-max.m4,
  2475. localcharset.m4, realloc.m4, setenv.m4. Remove malloc.m4,
  2476. pathmax.m4, realloc.m4.
  2477. 2004-11-26 Sergey Poznyakoff <[email protected]>
  2478. * configure.ac: Raised version number to 1.14.91
  2479. * scripts/tarcat: New file
  2480. * scripts/Makefile.am: Added tarcat
  2481. * src/buffer.c (hit_eof): Changed type to boolean
  2482. (read_full_records,reading_from_pipe): New variables
  2483. (check_compressed_archive,open_compressed_archive): New functions
  2484. (open_archive): Autodetect compressed archives and act accordingly.
  2485. Set reading_from_pipe. This fixes controversial set of changes
  2486. introduced 2004-05-11,2004-03-22.
  2487. * src/list.c (tar_checksum): New function
  2488. (read_header): Use tar_checksum().
  2489. * src/common.h (tar_checksum): New function
  2490. * tests/star/README: Updated
  2491. * NEWS: Updated
  2492. * PORTS: Updated
  2493. 2004-11-16 Sergey Poznyakoff <[email protected]>
  2494. * src/tar.c (decode_options): Fixed -o semantics. Thanks
  2495. Jean Delvare <[email protected]>
  2496. 2004-10-25 Sergey Poznyakoff <[email protected]>
  2497. * bootstrap: Add localcharset
  2498. * lib/Makefile.tmpl: Initialize SUFFIXES and CLEANFILES since the
  2499. makefile snippet from localcharset uses '+=' on them.
  2500. * src/Makefile.am (LDADD): Add LIBICONV
  2501. * src/list.c (decode_header): Set uname/gname to NULL if their
  2502. header counterparts are empty
  2503. * src/tar.c (options): Use OPTION_NO_TRANS
  2504. * src/utf8.c: Use locale_charset() from gnulib
  2505. * tests/star/README: Updated
  2506. * NEWS: Updated
  2507. * TODO: Minor fix
  2508. 2004-10-04 Sergey Poznyakoff <[email protected]>
  2509. * THANKS: Added Bryan Ford
  2510. * doc/Makefile.am (.text): Fixed rule
  2511. * po/POTFILES.in: Added argp-help.c
  2512. 2004-10-04 Bryan Ford <[email protected]>
  2513. * src/tar.c: New option --exclude-caches, to exclude
  2514. cache directories automatically on archive creation.
  2515. Cache directories are directories containing a
  2516. standardized tag file, as specified at:
  2517. http://www.brynosaurus.com/cachedir/spec.html
  2518. * src/common.h: New variable exclude_caches_option.
  2519. * src/create.c: New function check_cache_directory(),
  2520. called from dump_dir0() if exclude_caches_option is set,
  2521. to check for a cache directory tag and exclude the directory
  2522. if such a tag is found.
  2523. * doc/tar.texi: Updated accordingly.
  2524. 2004-09-16 Sergey Poznyakoff <[email protected]>
  2525. * doc/tar.texi: Minor fix
  2526. * src/tar.c (options): Minor fix
  2527. 2004-09-12 Sergey Poznyakoff <[email protected]>
  2528. * TODO: Updated
  2529. * lib/Makefile.tmpl: Added 'rtapelib.o: localedir.h' dependency
  2530. * src/common.h: Comment WANT_DIRECTORY_REMOVE_OPTION.
  2531. * src/extract.c: Normalized use of remove_any_file().
  2532. * src/misc.c: Likewise.
  2533. * src/tar.c (parse_opt): Emit warning if -l option is used.
  2534. (show_default_settings): REMOTE_SHELL may be undefined
  2535. 2004-09-07 Sergey Poznyakoff <[email protected]>
  2536. Test suite rewritten in autotest.
  2537. * configure.ac: Updated for autotest
  2538. * src/tar.c (argp_program_version): Modified.
  2539. * tests/Makefile.am: Rewritten for autotest.
  2540. * tests/.cvsignore: Updated
  2541. * tests/append.at: New file
  2542. * tests/atlocal.in: New file
  2543. * tests/delete01.at: New file
  2544. * tests/delete02.at: New file
  2545. * tests/delete03.at: New file
  2546. * tests/delete04.at: New file
  2547. * tests/extrac01.at: New file
  2548. * tests/extrac02.at: New file
  2549. * tests/extrac03.at: New file
  2550. * tests/extrac04.at: New file
  2551. * tests/extrac05.at: New file
  2552. * tests/gzip.at: New file
  2553. * tests/ignfail.at: New file
  2554. * tests/incremental.at: New file
  2555. * tests/link01.at: New file
  2556. * tests/listed01.at: New file
  2557. * tests/listed02.at: New file
  2558. * tests/longv7.at: New file
  2559. * tests/multiv01.at: New file
  2560. * tests/multiv02.at: New file
  2561. * tests/multiv03.at: New file
  2562. * tests/old.at: New file
  2563. * tests/options.at: New file
  2564. * tests/recurse.at: New file
  2565. * tests/same-order01.at: New file
  2566. * tests/same-order02.at: New file
  2567. * tests/sparse01.at: New file
  2568. * tests/testsuite.at: New file
  2569. * tests/version.at: New file
  2570. * tests/volume.at: New file
  2571. * tests/star/gtarfail.at: New file
  2572. * tests/star/gtarfail2.at: New file
  2573. * tests/star/multi-fail.at: New file
  2574. * tests/star/pax-big-10g.at: New file
  2575. * tests/star/ustar-big-2g.at: New file
  2576. * tests/star/ustar-big-8g.at: New file
  2577. * tests/preset.in: Removed
  2578. * tests/before: Removed
  2579. * tests/after: Removed
  2580. * tests/version.sh: Removed.
  2581. * tests/append.sh: Removed.
  2582. * tests/delete01.sh: Removed.
  2583. * tests/delete02.sh: Removed.
  2584. * tests/delete03.sh: Removed.
  2585. * tests/delete04.sh: Removed.
  2586. * tests/extrac01.sh: Removed.
  2587. * tests/extrac02.sh: Removed.
  2588. * tests/extrac03.sh: Removed.
  2589. * tests/extrac04.sh: Removed.
  2590. * tests/extrac05.sh: Removed.
  2591. * tests/gzip.sh: Removed.
  2592. * tests/incremen.sh: Removed.
  2593. * tests/ignfail.sh: Removed.
  2594. * tests/link01.sh: Removed.
  2595. * tests/listed01.sh: Removed.
  2596. * tests/listed02.sh: Removed.
  2597. * tests/longv7.sh: Removed.
  2598. * tests/multiv01.sh: Removed.
  2599. * tests/multiv02.sh: Removed.
  2600. * tests/multiv03.sh: Removed.
  2601. * tests/old.sh: Removed.
  2602. * tests/options.sh: Removed.
  2603. * tests/same-order01.sh: Removed.
  2604. * tests/same-order02.sh: Removed.
  2605. * tests/volume.sh: Removed.
  2606. * tests/recurse.sh: Removed.
  2607. * tests/sparse01.sh: Removed.
  2608. * tests/star/gtarfail.sh: Removed.
  2609. * tests/star/gtarfail2.sh: Removed.
  2610. * tests/star/multi-fail.sh: Removed.
  2611. * tests/star/ustar-big-2g.sh: Removed.
  2612. * tests/star/ustar-big-8g.sh: Removed.
  2613. * tests/star/pax-big-10g.sh: Removed.
  2614. 2004-09-07 Sergey Poznyakoff <[email protected]>
  2615. * bootstrap: Install genfile.c from paxutils
  2616. * tests/genfile.c: Removed. Integrated into
  2617. paxutils.
  2618. * tests/mksparse.c: Removed. Integrated into
  2619. (paxutils) genfile.c
  2620. * tests/Makefile.am: Removed mksparse
  2621. * tests/sparse01.sh: Use genfile instead of mksparse
  2622. 2004-09-06 Sergey Poznyakoff <[email protected]>
  2623. Started merging with cpio into paxutils. Sources before
  2624. this point are tagged alpha-1_14_90
  2625. * Makefile.am: Updated for use with paxutils
  2626. * README-alpha: Likewise
  2627. * bootstrap: Likewise
  2628. * configure.ac: Likewise
  2629. * lib/Makefile.tmpl: Likewise
  2630. * po/POTFILES.in: Likewise
  2631. * src/Makefile.am: Likewise
  2632. * src/buffer.c: Likewise
  2633. * src/common.h: Likewise
  2634. * src/compare.c: Likewise
  2635. * src/create.c: Likewise
  2636. * src/delete.c: Likewise
  2637. * src/extract.c: Likewise
  2638. * src/incremen.c: Likewise
  2639. * src/list.c: Likewise
  2640. * src/mangle.c: Likewise
  2641. * src/misc.c: Likewise
  2642. * src/names.c: Likewise
  2643. * src/sparse.c: Likewise
  2644. * src/system.c: Likewise
  2645. * src/tar.c: Likewise
  2646. * src/update.c: Likewise
  2647. * src/utf8.c: Likewise
  2648. * src/xheader.c: Likewise
  2649. * src/system.h: Removed
  2650. * src/rmt.c: Removed
  2651. * src/rmt.h: Removed
  2652. * src/rtapelib.c: Removed
  2653. 2004-09-03 Sergey Poznyakoff <[email protected]>
  2654. * tests/listed02.sh: Do not depend on any particular ordering
  2655. of output.
  2656. 2004-09-02 Sergey Poznyakoff <[email protected]>
  2657. * doc/tar.texi: Document the use of -C option in
  2658. file lists. Document --seek option.
  2659. * configure.ac: New option --with-rmt. New configuration variable
  2660. DEFAULT_RMT_DIR. Removed DEFAULT_RMT_COMMAND.
  2661. * src/Makefile.am: Install rmt into rmtdir
  2662. * src/tar.c (usage): Minor fix.
  2663. * NEWS: Updated.
  2664. * README: Updated.
  2665. 2004-09-01 Sergey Poznyakoff <[email protected]>
  2666. * configure.ac: Raised version number to 1.14.90
  2667. * src/common.h (is_individual_file): New prototype
  2668. * src/create.c (dump_file0): Fix bug introduced
  2669. 2004-02-21.
  2670. * src/names.c (register_individual_file)
  2671. (is_individual_file): New functions.
  2672. * tests/listed01.sh: Use genfile instead of dd.
  2673. * tests/listed02.sh: New file.
  2674. * tests/Makefile.am: Added listed02.sh
  2675. * NEWS: Updated
  2676. 2004-08-31 Sergey Poznyakoff <[email protected]>
  2677. * src/sparse.c (sparse_add_map): Fixed improper initializations
  2678. of sparse_map_size. We assume that whatever number it contains
  2679. describes adequately the current size of sparse_map. The only
  2680. number we need to reset is sparse_map_avail.
  2681. * src/compare.c (verify_volume): Call set_next_block_after
  2682. if read_header returns HEADER_FAILURE
  2683. Destroy and reinitialize content of current_stat_info and
  2684. extended_header after each iteration (bug reported by
  2685. John L. Males <[email protected]>).
  2686. Issue a warning if the created archive contains some members
  2687. whose file names were stripped off their leading prefixes.
  2688. This is a temporary fix of the issue reported by Bdale Garbee
  2689. <[email protected]> (Refs: Debian bug 230064, Message-Id
  2690. <[email protected]>, Sun, 15 Feb 2004 11:22:17 -0700)
  2691. * src/names.c (removed_prefixes_p): New function.
  2692. * src/buffer.c: When computing write rate do not take
  2693. into account the time needed to verify the archive(s).
  2694. The bug reported by John L. Males <[email protected]>
  2695. (set_start_time,compute_duration): New functions.
  2696. (print_total_written): Use the result of compute_duration().
  2697. (close_archive): Call compute_duration.
  2698. * src/common.h (set_start_time, removed_prefixes_p): New prototypes.
  2699. * src/list.c (decode_header): Fixed initialization
  2700. of stat_info->is_sparse
  2701. * src/tar.c (main): Call set_start_time().
  2702. * src/misc.c (unquote_string): Unquote '\a' and '\v'.
  2703. Reported by Helmut Waitzmann <[email protected]>.
  2704. * NEWS: Updated
  2705. * THANKS: Updated
  2706. 2004-08-30 Sergey Poznyakoff <[email protected]>
  2707. * src/tar.c: Fix copy-n-paste errors in the license
  2708. 2004-08-19 Sergey Poznyakoff <[email protected]>
  2709. * scripts/backup.in: Renamed LIBPATH to LIBDIR.
  2710. Use ROOT_FS with -C option. Do not send mail
  2711. if ADMINISTRATOR is set to NONE.
  2712. * scripts/backup.sh.in (test_root): Append / to
  2713. ROOT_FS if it does not already end in it.
  2714. * scripts/restore.in: Renamed LIBPATH to LIBDIR.
  2715. New option -a (--all). Do not start restore unless
  2716. -a or patterns are given.
  2717. (restore_fs,restore_files): Fixed use of --listed option.
  2718. * doc/tar.texi: Updated
  2719. * NEWS: Updated
  2720. 2004-08-17 Sergey Poznyakoff <[email protected]>
  2721. * src/tar.c (find_argp_option): Fixed typo
  2722. 2004-08-12 Paul Eggert <[email protected]>
  2723. Merge argp, getopt, xalloc changes from gnulib.
  2724. * bootstrap (gnulib_modules): Add xalloc-die.
  2725. Remove code to test for patches; we don't have patches now.
  2726. Set LC_ALL=C so that file names sort consistently.
  2727. Prefer the gnulib copies of gettext.m4, glibc21.m4,
  2728. lib-ld.m4, lib-prefix.m4, po.m4 too.
  2729. * patches/getopt.diff: Remove; gnulib now works unpatched.
  2730. * configure.ac (_getopt_long_only_r): Remove check.
  2731. gl_ARGP now does this for us.
  2732. * lib/.cvsignore: Add fnmatch.h, getopt_.h, sysexit.h,
  2733. xalloc-die.c.
  2734. * src/extract.c: Adjust to changes to gnulib xalloc module.
  2735. (extr_init): Remove assignment to xalloc_fail_func; no longer needed.
  2736. (xalloc_die): New function.
  2737. 2004-08-10 Sergey Poznyakoff <[email protected]>
  2738. * NEWS: Updated
  2739. * src/buffer.c (flush_write): Limit filenames
  2740. of the members that straddle multivolume archive
  2741. boundary to 100 characters.
  2742. (flush_read): Use strncmp when comparing multivolume member
  2743. names.
  2744. * tests/multiv03.sh: New file
  2745. * tests/Makefile.am: Added multiv03.sh
  2746. 2004-08-09 Sergey Poznyakoff <[email protected]>
  2747. * src/list.c (read_and): Call decode_header before
  2748. calling skip_member()
  2749. (skip_member): Use is_sparse field to determine if the
  2750. member is a sparse file.
  2751. * tests/Makefile.am: Added extrac05.sh
  2752. * tests/extrac05.sh: New file
  2753. * tests/append.sh: Rearranged leading comments. Added explicit
  2754. references to report messages wherever available.
  2755. * tests/delete01.sh: Likewise
  2756. * tests/delete02.sh: Likewise
  2757. * tests/delete03.sh: Likewise
  2758. * tests/delete04.sh: Likewise
  2759. * tests/extrac01.sh: Likewise
  2760. * tests/extrac02.sh: Likewise
  2761. * tests/extrac03.sh: Likewise
  2762. * tests/extrac04.sh: Likewise
  2763. * tests/gzip.sh: Likewise
  2764. * tests/ignfail.sh: Likewise
  2765. * tests/incremen.sh: Likewise
  2766. * tests/link01.sh: Likewise
  2767. * tests/listed01.sh: Likewise
  2768. * tests/longv7.sh: Likewise
  2769. * tests/multiv01.sh: Likewise
  2770. * tests/multiv02.sh: Likewise
  2771. * tests/old.sh: Likewise
  2772. * tests/options.sh: Likewise
  2773. * tests/recurse.sh: Likewise
  2774. * tests/same-order01.sh: Likewise
  2775. * tests/same-order02.sh: Likewise
  2776. * tests/sparse01.sh: Likewise
  2777. * tests/version.sh: Likewise
  2778. * tests/volume.sh: Likewise
  2779. 2004-08-08 Sergey Poznyakoff <[email protected]>
  2780. * bootstrap: Extended --update-po option to take an
  2781. optional argument specifying the po file to update.
  2782. * src/create.c: Improved compatibility with 1.13.25
  2783. * tests/link01.sh: New file.
  2784. * tests/Makefile.am: Added link01.sh
  2785. 2004-08-06 Paul Eggert <[email protected]>
  2786. Merge from gnulib.
  2787. * patches/argp.diff: Remove; no longer needed.
  2788. * lib/.cvsignore: Add stat-macros.h.
  2789. Remove addext.c, malloc.c, realloc.c.
  2790. * src/extract.c: Include <getcwd.h>.
  2791. (extract_archive): Rewrite with new macro IS_ABSOLUTE_FILE_NAME.
  2792. * src/extract.c (make_directories):
  2793. FILESYSTEM_PREFIX_LEN -> FILE_SYSTEM_PREFIX_LEN.
  2794. * src/misc.c (must_be_dot_or_slash): Likewise.
  2795. * src/names.c (excluded_name, safer_name_suffix, stripped_prefix_len):
  2796. Likewise.
  2797. * src/tar.c (parse_opt): Likewise.
  2798. * src/incremen.c (purge_directory): Fix format buffer typos in warning
  2799. strings.
  2800. * src/tar.c (options): Add missing initializers to pacify gcc.
  2801. (decode_options): Remove unused var.
  2802. 2004-08-02 Paul Eggert <[email protected]>
  2803. * bootstrap (gnulib_modules): Add getpagesize.
  2804. * configure.ac (valloc): Remove check; valloc no longer used.
  2805. * lib/.cvsignore: Add getpagesize.h.
  2806. * m4/.cvsignore: Add getpagesize.m4.
  2807. * src/buffer.c (record_buffer): New var.
  2808. (open_archive): Don't use valloc; on older or buggy hosts, you can't
  2809. free the result. Use page_aligned_alloc instead.
  2810. * src/compare.c (diff_init): Likewise.
  2811. * src/buffer.c (open_archive): Record the pointer to be freed
  2812. into record_buffer.
  2813. (close_archive): Free record_buffer.
  2814. * src/common.h (page_aligned_alloc): New decl.
  2815. * src/misc.c (quote_n, quote): Remove these redundant functions.
  2816. (ptr_align): New function, from coreutils/src/system.h.
  2817. (page_aligned_alloc): New function.
  2818. * src/system.h (valloc): Remove.
  2819. 2004-07-09 Paul Eggert <[email protected]>
  2820. * src/extract.c (extract_archive): Do not report an error
  2821. when hard-linking X to X when X exists. Problem reported by
  2822. Toby Peterson.
  2823. * lib/.cvsignore: Add fchown-stub.c.
  2824. 2004-06-29 Sergey Poznyakoff <[email protected]>
  2825. * NEWS: Updated
  2826. * src/common.h (root_device): New global.
  2827. (gnu_restore): Renamed to purge_directory().
  2828. * src/extract.c (extr_init): Save the device number
  2829. of the root device.
  2830. (extract_archive): Renamed gnu_restore() to purge_directory().
  2831. * src/incremen.c (gnu_restore): Renamed to purge_directory().
  2832. Do not attempt to purge the directory if it is on a different
  2833. device and one_file_system_option is set.
  2834. 2004-06-25 Sergey Poznyakoff <[email protected]>
  2835. * doc/tar.texi: The actual default for exclude patterns
  2836. is --no-anchored. Fixed.
  2837. * src/tar.c (options): Likewise.
  2838. Thanks "Felix Natter" <[email protected]> for noticing.
  2839. 2004-06-22 Sergey Poznyakoff <[email protected]>
  2840. * doc/tar.texi: Fixed several inconsistencies.
  2841. * src/tar.c: Fixed docstring for --checkpoint option.
  2842. 2004-05-19 Sergey Poznyakoff <[email protected]>
  2843. * src/buffer.c (seek_archive): New function
  2844. * src/common.h (seek_archive): New function
  2845. (seekable_archive): New global.
  2846. * src/list.c (skip_file): Use seek_archive() if
  2847. possible.
  2848. * src/tar.c (struct fmttab): Accept 'pax' as alias
  2849. for 'posix'
  2850. (options): New option -n (--seek).
  2851. * src/update.c: Determine type of the archive before
  2852. appending to it.
  2853. * TODO: Updated.
  2854. 2004-05-19 Sergey Poznyakoff <[email protected]>
  2855. * bootstrap: New option --update-po
  2856. * src/tar.c: New option -H (short alias to --format)
  2857. * doc/tar.texi: Document -H option
  2858. * src/names.c (safer_name_suffix): Fixed bug introduced
  2859. 2004-05-11.
  2860. 2004-05-16 Sergey Poznyakoff <[email protected]>
  2861. * bootstrap: Apply patches from patch subdirectory
  2862. * patches: New dir
  2863. * patches/argp.diff: New file
  2864. * patches/getopt.diff: New file
  2865. * configure.ac: Check for _getopt_long_only_r and
  2866. force using included version of getopt if the function
  2867. is not available.
  2868. * src/tar.c: Use argp for command line parsing.
  2869. * src/system.h: Minor formatting fix
  2870. * m4/.cvsignore: Updated
  2871. * lib/.cvsignore: Updated
  2872. * doc/tar.texi: Minor fix.
  2873. * src/extract.c: Fix improper use of 'path' term
  2874. * src/incremen.c: Likewise
  2875. * src/list.c: Likewise
  2876. * src/misc.c: Likewise
  2877. * src/names.c: Likewise
  2878. * src/rmt.h: Likewise
  2879. * src/rtapelib.c: Likewise
  2880. * src/update.c: Likewise
  2881. * src/xheader.c: Likewise
  2882. * tests/star/README: Minor fix
  2883. 2004-05-13 Sergey Poznyakoff <[email protected]>
  2884. * configure.ac: Raised version number to 1.14.1
  2885. * src/tar.c: Renamed --strip-path to --strip-components
  2886. Changed improper use of _() to ngettext().
  2887. * src/extract.c: Renamed strip_path_option to strip_components_option
  2888. * src/common.h: Likewise.
  2889. * NEWS: Updated.
  2890. * doc/tar.texi: Updated
  2891. 2004-05-11 Sergey Poznyakoff <[email protected]>
  2892. * src/system.c (sys_child_open_for_uncompress): Do not
  2893. set read_full_records_option: the compressed archive is
  2894. likely not to contain integer number of records. Should
  2895. the user wish to use reblocking, he may always give tar
  2896. -B option. This is a minor improvement over the change
  2897. dated 2004-03-22.
  2898. * src/buffer.c (open_archive): Removed assignment to
  2899. read_full_records_option.
  2900. * src/names.c (safer_name_suffix): (safer_name_suffix): Use "%s"
  2901. as the format argument, rather than a possibly-translated variable
  2902. string. Patch provided by Jim Meyering <[email protected]>
  2903. * src/tar.c (decode_options): Fixed typo in the comment.
  2904. * tests/star/README: Minor correction
  2905. 2004-05-11 Sergey Poznyakoff <[email protected]>
  2906. * directory: New file. GNU directory entry for tar.
  2907. * doc/Makefile.am: Rewritten. Added rules for generating
  2908. documentation for the project's website.
  2909. * doc/.cvsignore: Updated
  2910. * doc/index.html.in: New file.
  2911. 2004-05-11 Sergey Poznyakoff <[email protected]>
  2912. * configure.ac: Raised version number to 1.14
  2913. * NEWS: Updated.
  2914. * tests/after: Added copyleft statement
  2915. * tests/before: Added copyleft statement
  2916. * tests/preset.in: Added copyleft statement
  2917. Tar 1.14 is released. Sources up to this point are tagged
  2918. release_1_14
  2919. 2004-05-10 Sergey Poznyakoff <[email protected]>
  2920. * configure.ac: Fixed prerequisite headers for sys/buf.h
  2921. (needed on FreeBSD)
  2922. * src/system.h: Likewise.
  2923. * tests/after (compare): Fixed argument quoting under eval
  2924. * tests/before: Quote TAR_ARCHIVE_FORMATS
  2925. 2004-05-10 Sergey Poznyakoff <[email protected]>
  2926. * NEWS: Updated
  2927. * README: Updated
  2928. * PORTS: Updated
  2929. * configure.ac: Call gl_AC_TYPE_INTMAX_T. Document
  2930. DEFAULT_.* variables. Use DEFAULT_RMT_COMMAND to set
  2931. the pathname of the rmt utility.
  2932. New option --enable-backup-scripts.
  2933. * doc/tar.texi: Updated
  2934. * scripts/Makefile.am: Install the scripts only if requested
  2935. by the configure.
  2936. * scripts/backup.in: Fixed --version output.
  2937. Fixed initialization of the listing files and printing
  2938. the time of the last previous level dump.
  2939. * scripts/restore.in: Fixed --version output.
  2940. * src/Makefile.am (localedir.h rule): Generate correct
  2941. DEFAULT_RMT_COMMAND variable.
  2942. * src/common.h (rmt_command_option): New variable.
  2943. * src/list.c (read_and): Print block number before
  2944. issuing 'Skipping to next header' diagnostics, if
  2945. requested by block_number_option.
  2946. * src/rtapelib.c: Use rmt_command_option instead of
  2947. hardcoded "/etc/rmt".
  2948. * src/tar.c: New option --rmt-command.
  2949. (decode_options): Handle --rmt-command. Initialize
  2950. rmt_command_option to DEFAULT_RMT_COMMAND.
  2951. 2004-05-09 Sergey Poznyakoff <[email protected]>
  2952. * doc/tar.texi: Further update.
  2953. 2004-05-08 Sergey Poznyakoff <[email protected]>
  2954. * configure.ac: Minor fix
  2955. * scripts/Makefile.am: Updated
  2956. * scripts/backup-specs: Updated
  2957. * scripts/backup.in: Minor fixes
  2958. * scripts/backup.sh: Removed
  2959. * scripts/backup.sh.in: New file. Source for backup.sh
  2960. * scripts/restore.in: New file
  2961. * scripts/.cvsignore: Updated
  2962. * scripts/WARNING: Removed
  2963. * doc/tar.texi: Updated
  2964. * NEWS: Updated
  2965. 2004-05-07 Sergey Poznyakoff <[email protected]>
  2966. * src/names.c (name_gather): Bugfix: Honor single -C with
  2967. --same-order.
  2968. * tests/same-order01.sh: New file
  2969. * tests/same-order02.sh: New file
  2970. * tests/Makefile.am: Updated
  2971. * tests/append.sh: Added copyleft header
  2972. * tests/delete01.sh: Likewise
  2973. * tests/delete02.sh: Likewise
  2974. * tests/delete04.sh: Likewise
  2975. * tests/extrac01.sh: Likewise
  2976. * tests/extrac02.sh: Likewise
  2977. * tests/extrac03.sh: Likewise
  2978. * tests/extrac04.sh: Likewise
  2979. * tests/gzip.sh: Likewise
  2980. * tests/ignfail.sh: Likewise
  2981. * tests/incremen.sh: Likewise
  2982. * tests/multiv01.sh: Likewise
  2983. * tests/old.sh: Likewise
  2984. * tests/options.sh: Likewise
  2985. * tests/recurse.sh: Likewise
  2986. * tests/version.sh: Likewise
  2987. * tests/volume.sh: Likewise
  2988. * tests/star/gtarfail.sh: Likewise
  2989. * tests/star/gtarfail2.sh: Likewise
  2990. * tests/star/multi-fail.sh: Likewise
  2991. * tests/star/pax-big-10g.sh: Likewise
  2992. * tests/star/qucktest.sh: Likewise
  2993. * tests/star/ustar-big-2g.sh: Likewise
  2994. * tests/star/ustar-big-8g.sh: Likewise
  2995. * doc/.cvsignore: Updated
  2996. 2004-05-06 Sergey Poznyakoff <[email protected]>
  2997. * configure.ac: Check whether date accepts +format argument
  2998. (for backup scripts).
  2999. * scripts/level-0: Removed
  3000. * scripts/level-1: Removed
  3001. * scripts/weekly.new: Removed
  3002. * scripts/dump-remind: Removed
  3003. * scripts/backup.in: New file
  3004. * scripts/backup.sh: New file
  3005. * scripts/dump-remind.in: New file
  3006. * scripts/backup-specs: Updated
  3007. * scripts/Makefile.am: Updated for new directory contents.
  3008. * scripts/.cvsignore: Updated
  3009. 2004-05-05 Sergey Poznyakoff <[email protected]>
  3010. * TODO: Updated
  3011. * doc/tar.texi: Updated
  3012. * src/tar.c: --utc implies -vv
  3013. 2004-04-28 Sergey Poznyakoff <[email protected]>
  3014. * src/utf8.c: Make sure ICONV_CONST is defined. AM_ICONV
  3015. does not define it if it fails to find iconv.h.
  3016. 2004-04-26 Sergey Poznyakoff <[email protected]>
  3017. * bootstrap: Use gnulib-tool to generate lib/Makefile.am
  3018. and parts of configure.ac
  3019. * configure.ac: Invoke tar_GNULIB to configure gnulib stuff.
  3020. * lib/Makefile.am: Removed
  3021. * lib/Makefile.tmpl: New file.
  3022. * lib/.cvsignore: Updated
  3023. * m4/.cvsignore: Updated
  3024. * src/xheader.c: Include stpcpy.h
  3025. * src/create.c: Produce an error, not warning, if the
  3026. filename is too long.
  3027. * tests/longv7.sh: Synchronized with the recent changes.
  3028. 2004-04-20 Sergey Poznyakoff <[email protected]>
  3029. * configure.ac: Fixed test for iconv_t
  3030. * src/rmt.h: Bugfix by Jürgen Weigert
  3031. * THANKS: Add Jürgen Weigert
  3032. * tests/star/README: Fixed typo
  3033. 2004-04-04 Paul Eggert <[email protected]>
  3034. Merge getdate documentation changes from coreutils.
  3035. * doc/getdate.texi: Update from coreutils CVS.
  3036. * doc/tar.texi: Fix getdate menu to match getdate.texi's.
  3037. Merge recent gnulib changes, and remove some lint.
  3038. Improve support for nanosecond-resolution time stamps.
  3039. * bootstrap: Add gettime, timespec modules.
  3040. * configure.ac (gl_GETTIME, gl_TIMESPEC): Add.
  3041. * lib/.cvsignore (getopt_int.h, gettime.c, gettimeofday.c,
  3042. timespec.h): Add.
  3043. * lib/Makefile.am (libtar_a_SOURCES): Add gettime.c, timespec.h.
  3044. * m4/.cvsignore: Add clock_time.m4, gettime.m4, gettimeofday.m4,
  3045. st_mtim.m4, timespec.m4. Remove malloc.m4, realloc.m4.
  3046. * src/common.h (newer_mtime_option): Now a struct timespec, not
  3047. time_t. All uses changed.
  3048. (NEWER_OPTION_INITIALIZED, OLDER_STAT_MTIME): New macros.
  3049. * src/create.c (dump_file0): Use OLDER_STAT_TIME to compare times.
  3050. * src/incremen.c (scan_path): Likewise.
  3051. * src/list.c (read_and): Likewise.
  3052. * src/list.c (read_and): Use NEWER_OPTION_INITIALIZED to decide
  3053. whether newer_mtime_option is initialized.
  3054. * src/tar.c (decode_options): Likewise.
  3055. * src/tar.c (decode_options): Adjust to new signature for get_date.
  3056. * src/buffer.c (short_read, flush_read): Use size_t, not ssize_t, for
  3057. result of safe_read, full_write, and similar functions.
  3058. Detect safe_read error by comparing to SAFE_READ_ERROR;
  3059. detect full_write error by comparing to 0.
  3060. All uses changed.
  3061. * src/common.h (write_error_details, sys_write_archive_buffer):
  3062. Likewise.
  3063. * src/misc.c (write_error_details): Likewise.
  3064. * src/rmt.c (main): Likewise.
  3065. * src/rmt.h (rmt_read__, rmt_write__): Likewise.
  3066. * src/rtapelib.c (rmt_read__, rmt_write__, rmt_ioctl__): Likewise.
  3067. * src/sparse.c (sparse_scan_file, sparse_dump_region,
  3068. check_sparse_region, check_data_region): Likewise.
  3069. * src/system.c (sys_write_archive_buffer, sys_drain_input_pipe,
  3070. sys_child_open_for_compress, sys_child_open_for_uncompress): Likewise.
  3071. * src/update.c (append_file): Likewise.
  3072. * src/buffer.c (clear_read_error_count): Use explicit (void)
  3073. to indicate a function with no arguments.
  3074. * src/create.c (check_links): Likewise.
  3075. * src/system.c (sys_get_archive_stat, sys_save_archive_dev_ino,
  3076. sys_detect_dev_null_output, sys_drain_input_pipe, sys_spawn_shell,
  3077. sys_reset_uid_gid, sys_get_archive_stat, sys_save_archive_dev_ino,
  3078. sys_detect_dev_null_output, sys_drain_input_pipe, sys_spawn_shell):
  3079. Likewise.
  3080. * src/utf8.c (get_input_charset): Likewise.
  3081. * src/xheader.c (xheader_ghdr_name, xheader_write_global,
  3082. xheader_decode_global, extended_header_init): Likewise.
  3083. * tests/mksparse.c (usage): Likewise.
  3084. * src/buffer.c (new_volume): Rename local variables to avoid
  3085. shadowing warnings.
  3086. * src/common.h (file_dumpable_p, sys_stat_nanoseconds,
  3087. sparse_file_p, sparse_member_p, sparse_fixup_header,
  3088. sparse_dump_file, sparce_extract_file, sparse_skip_file,
  3089. sparse_diff_file): Likewise.
  3090. * src/compare.c (diff_archive): Likewise.
  3091. * src/create.c (file_dumpable_p, dump_regular_file, dump_dir0,
  3092. dump_dir, dump_hard_link, file_count_links, dump_file0, dump_file):
  3093. Likewise.
  3094. * src/extract.c (repair_delayed_set_stat): Likewise.
  3095. * src/misc.c (maybe_backup_file, add_hierarchy_to_namelist):
  3096. Likewise.
  3097. * src/sparse.c (struct tar_sparse_optab, tar_sparse_dump_region,
  3098. tar_sparse_extract_region, sparse_dump_region, sparse_extract_region,
  3099. sparse_dump_file, sparse_file_p, sparse_member_p,
  3100. sparse_fixup_header, sparse_extract_file, sparse_skip_file,
  3101. check_data_region, sparse_diff_file): Likewise.
  3102. * src/system.c (sys_stat_nanoseconds): Likewise.
  3103. * src/xheader.c (xheader_format_name): Likewise.
  3104. * src/common.h (enum old_files): Remove comma before }; not portable.
  3105. * src/common.h (read_fatal_details): Add __attribute__ ((noreturn)).
  3106. * src/rmt.c (usage): Likewise.
  3107. * src/xheader.c (xheader_set_single_keyword): Likewise.
  3108. * tests/genfile.c (usage): Likewise.
  3109. * tests/mksparse.c (die, usage): Likewise. Also add printf attribute
  3110. to die.
  3111. * src/common.h (gname_to_gid, uname_to_uid): Add const to avoid
  3112. some gcc warnings.
  3113. * src/names.c (uname_to_uid, gname_to_gid): Likewise.
  3114. * src/utf8.c (struct langtab.lang, struct langtab.terr, struct
  3115. langtab.charset, charset_lookup): Likewise.
  3116. * src/common.h (name_init): Remove unused args. All callers changed.
  3117. * src/names.c (name_init): Likewise.
  3118. * src/common.h (usage, xheader_write, xheader_write_global,
  3119. sys_reset_uid_gid): New decls.
  3120. * src/compare.c (report_difference, process_noop): Add
  3121. __attribute__ ((unused)) for unused attributes.
  3122. * src/sparse.c (oldgnu_sparse_member_p, star_sparse_member_p):
  3123. Likewise.
  3124. * src/xheader.c (dummy_coder, dummy_decoder, atime_coder,
  3125. gid_coder, gname_coder, linkpath_coder, ctime_coder, mtime_coder,
  3126. path_coder, size_coder, uid_coder, uname_coder,
  3127. sparse_numblocks_coder): Likewise.
  3128. * src/create.c (dump_regular_finish, dump_dir0, dump_dir,
  3129. dump_file0): Now static.
  3130. * src/utf8.c (charset_lookup): Likewise.
  3131. * src/xheader.c (xheader_protected_pattern_p,
  3132. xheader_protected_keyword_p, xheader_set_single_keyword,
  3133. xheader_keyword_deleted_p, xheader_keyword_override_p,
  3134. xheader_list_append, xheader_list_destroy, xheader_set_keyword_equal):
  3135. Likewise.
  3136. * tests/genfile.c (usage): Likewise.
  3137. * tests/mksparse.c (die, mkhole, mksparse, usage, xlat_suffix):
  3138. Likewise.
  3139. * src/create.c (hash_link): Rewrite to avoid cast.
  3140. * src/extract.c (file_newer_p): Use parameter, not global var.
  3141. * src/misc.c (write_error_details): Likewise.
  3142. * src/extract.c (prepare_to_extract): Remove directory arg; not
  3143. used. All callers changed.
  3144. * src/misc.c (close_fatal): Remove; not used.
  3145. * src/system.c (sys_utimes): Likewise.
  3146. * src/rmt.c (get_string): Avoid buffer overrun (off by 1 error).
  3147. * src/rmt.c (main): Update copyright date to 2004.
  3148. * src/tar.c (decode_options): Likewise.
  3149. * src/rtapelib.c (get_status_string): Don't lose errno when
  3150. skipping the error messages.
  3151. (get_status): Report an error if atol returns a negative number.
  3152. * src/utf8.c (struct langtab, langtab, charset_lookup,
  3153. get_input_charset) [!defined HAVE_LIBCONV]: Omit unused
  3154. definitions.
  3155. (iconv_open, iconv, iconv_close) [!defined HAVE_LIBCONV]:
  3156. Use macros, not definitions, to avoid type clashes with system
  3157. headers.
  3158. (charset_lookup): Local var is now auto, not static.
  3159. (utf8_convert): Use ICONV_CONST instead of const, to avoid
  3160. type clashes.
  3161. * src/utf8.c (langtab): Initialize all elements of struct, to
  3162. avoid gcc warning.
  3163. * src/xheader.c (xhdr_tab): Likewise.
  3164. * src/xheader.c: Include fnmatch.h, since we use fnmatch.
  3165. * tests/mksparse.c (mkhole): Fix typo: bool was assigned to off_t.
  3166. 2004-04-04 Sergey Poznyakoff <[email protected]>
  3167. * NEWS: Updated
  3168. * configure.ac: Raised version number to 1.13.94
  3169. * src/system.h: Protect inclusion of <sys/time.h>
  3170. by ifdef.
  3171. Declare time() if HAVE_DECL_TIME is 0
  3172. * tests/.cvsignore: Added mksparse
  3173. * tests/sparse01.sh: New file
  3174. * tests/multiv02.sh: New file
  3175. * tests/Makefile.am: Add sparse01.sh and multiv02.sh
  3176. * tests/longv7.sh: Added missing call to 'after'
  3177. * src/common.h: Added missing prototypes
  3178. * src/compare.c (diff_archive): Use is_sparse member
  3179. instead of GNUTYPE_SPARSE.
  3180. * src/create.c: Removed unused variables
  3181. * src/extract.c (extract_archive): Use sparse_member_p instead
  3182. of GNUTYPE_SPARSE.
  3183. Removed unused variables
  3184. * src/list.c (decode_header): Use sparse_fixup_header to correct
  3185. the st_size value.
  3186. (print_header): Do not rely on GNUTYPE_SPARSE type.
  3187. Use st->stat.st_size to print real file size.
  3188. (skip_member): Assign stat_info.file_name to save_name. This fixes
  3189. bug reported by Mads Martin Joergensen <[email protected]>
  3190. Use sparse_skip_file() to skip sparse members.
  3191. * src/rtapelib.c: include "common.h"
  3192. * src/sparse.c (struct tar_sparse_optab.sparse_member_p)
  3193. (struct tar_sparse_optab.fixup_header): New member
  3194. (tar_sparse_member_p): New function.
  3195. (tar_sparse_init): Return true if decode_header is not provided
  3196. (tar_sparse_fixup_header)
  3197. (sparse_member_p,sparse_fixup_header)
  3198. (sparse_skip_file)
  3199. (oldgnu_sparse_member_p,oldgnu_fixup_header,star_sparse_member_p)
  3200. (star_fixup_header, pax_sparse_member_p): New function
  3201. (pax_decode_header): Remove
  3202. * src/system.h: Include <sys/time.h> and <utime.h> when available
  3203. * src/tar.c (usage): Prototype moved to common.h
  3204. * src/tar.h (struct tar_stat_info.is_sparse): New member
  3205. * src/utf8.c (utf8_convert): Changed prototype
  3206. (get_input_charset): Removed unused variable
  3207. * src/xheader.c: include <fnmatch.h>
  3208. (size_decoder): Assign to both st->archive_file_size and
  3209. st->stat.st_size.
  3210. (st->stat.st_size): Assign to st->stat.st_size
  3211. (sparse_numbytes_decoder): Removed unused variable
  3212. * src/.cvsignore: Added .gdbinit
  3213. * THANKS: Added Mads Martin Joergensen
  3214. 2004-03-26 Sergey Poznyakoff <[email protected]>
  3215. * src/create.c (write_long_name): Do not allow more than
  3216. NAME_FIELD_SIZE-1 characters in a file name for V7 format
  3217. archives.
  3218. * tests/longv7.sh: New file.
  3219. * tests/Makefile.am: Add longv7.sh
  3220. 2004-03-22 Sergey Poznyakoff <[email protected]>
  3221. * src/buffer.c (open_archive): Clear read_full_records_option
  3222. if reading from a pipe.
  3223. (short_read): Display warning about the deduced record size
  3224. if version > 1
  3225. * tests/star/pax-big-10g.sh: Updated to match the above changes.
  3226. * tests/star/ustar-big-2g.sh: Likewise.
  3227. * tests/star/ustar-big-8g.sh: Likewise.
  3228. * configure.ac: Added gl_FUNC_STRTOULL
  3229. * src/create.c (start_header): Check for GNU_FORMAT
  3230. if incremental_option is set.
  3231. * src/xheader.c (to_decimal): New function.
  3232. (xheader_format_name): Use to_decimal() instead of snprintf.
  3233. * tests/listed01.sh: Use genfile instead of dd
  3234. * tests/multiv01.sh: Likewise.
  3235. 2004-03-12 Sergey Poznyakoff <[email protected]>
  3236. * src/list.c (read_and): Stop processing the archive after
  3237. encountering a single zero record. Many old archives contain
  3238. arbitrary garbage after it.
  3239. The warning is issued anyway.
  3240. 2004-03-02 Sergey Poznyakoff <[email protected]>
  3241. * src/rtapelib.c (rmt_lseek__,rmt_ioctl__): Bugfix. The
  3242. conversion buffer was not null terminated. Fix provided
  3243. by Leland Lucius <[email protected]>
  3244. * THANKS: Added Leland Lucius
  3245. * src/utf8.c (utf8_convert): Indentation fix.
  3246. 2004-02-29 Sergey Poznyakoff <[email protected]>
  3247. * src/buffer.c (flush_read): Bugfix: the
  3248. condition at line 714 included
  3249. || (status > 0 && !read_full_records_option)
  3250. which is grossly wrong, since even if new_volume() below succeeds,
  3251. the subsequent call to rmtread will overwrite the chunk of data
  3252. already read in the buffer and thus spoil everything.
  3253. * src/system.c (sys_child_open_for_uncompress): Minor stylistic
  3254. fix.
  3255. * tests/star/multi-fail.sh: New test.
  3256. * tests/Makefile.am: Added multi-fail.sh
  3257. * tests/star/README: Updated
  3258. 2004-02-29 Sergey Poznyakoff <[email protected]>
  3259. * NEWS: Updated
  3260. * configure.ac: Removed spurious AC_CHECK_LIB(iconv)
  3261. * src/common.h (utc_option): new global
  3262. (enum old_files.KEEP_NEWER_FILES): New element
  3263. * src/extract.c: Handle --keep-newer-files option
  3264. * src/list.c (tartime): Print UTC if --utc was given.
  3265. * src/tar.c: New options: --utc and keep-newer-files
  3266. * tests/Makefile.am: Added new tests
  3267. * tests/after: Rewritten
  3268. * tests/before: Rewritten
  3269. * tests/preset.in: Rewritten
  3270. * tests/delete03.sh: Accommodate for the new testsuite logic
  3271. * tests/gzip.sh: Likewise
  3272. * tests/incremen.sh: Likewise
  3273. * tests/listed01.sh: Likewise
  3274. * tests/multiv01.sh: Likewise
  3275. * tests/old.sh: Likewise
  3276. * tests/options.sh: Likewise
  3277. * tests/version.sh: Likewise
  3278. * tests/volume.sh: Likewise
  3279. * tests/star: New directory
  3280. * tests/star/README: New file
  3281. * tests/star/gtarfail.sh: New file
  3282. * tests/star/gtarfail2.sh: New file
  3283. * tests/star/pax-big-10g.sh: New file
  3284. * tests/star/qucktest.sh: New file
  3285. * tests/star/ustar-big-2g.sh: New file
  3286. * tests/star/ustar-big-8g.sh: New file
  3287. 2004-02-26 Paul Eggert <[email protected]>
  3288. * doc/tar.texi (dircategory Individual utilities): Append period,
  3289. as suggested by Karl Berry.
  3290. 2004-02-24 Sergey Poznyakoff <[email protected]>
  3291. * src/list.c (decode_header): Call xheader_decode before
  3292. the assignment to current_stat_info.archive_file_size.
  3293. 2004-02-23 Paul Eggert <[email protected]>
  3294. * configure.ac: Invoke AM_ICONV, to define ICONV_CONST if needed.
  3295. 2004-02-23 Sergey Poznyakoff <[email protected]>
  3296. 1.13.93 released.
  3297. * NEWS: Updated
  3298. * tests/before: Move testing of the prerequisite archive formats
  3299. to the separate function 'prereq'. Do not expect any arguments
  3300. * tests/delete03.sh: Use prereq() instead of passing arguments
  3301. to 'before'.
  3302. * tests/incremen.sh: Likewise.
  3303. * tests/listed01.sh: Likewise.
  3304. * tests/multiv01.sh: Likewise.
  3305. 2004-02-22 Sergey Poznyakoff <[email protected]>
  3306. Added UTF-8 support. Finished global extended header
  3307. support.
  3308. * NEWS: Minor fix
  3309. * configure.ac: Detect libiconv
  3310. * src/utf8.c: New file. Conversions to and from utf-8.
  3311. * src/Makefile.am: Added utf8.c
  3312. * src/create.c (write_header_name) In pax format, use
  3313. "path" keyword if the file name is not ASCII
  3314. (start_header): Likewise for uname and gname.
  3315. * src/list.c: Decode encountered global headers.
  3316. * src/xheader.c: Use keywords from the global
  3317. headers.
  3318. Correctly handle UTF-8 conversions.
  3319. (xheader_list_destroy): New function.
  3320. (xheader_set_single_keyword,xheader_set_keyword_equal): Added
  3321. missing gettext markers
  3322. (decode_record): Rewritten using caller-provided handler and
  3323. data closure.
  3324. * tests/listed01.sh: Give credit to Andreas Schuldei.
  3325. 2004-02-21 Sergey Poznyakoff <[email protected]>
  3326. * src/create.c (dump_file0): The conditional at line
  3327. 1296 prevented incremental backups on individual files
  3328. from working, as reported by Andreas Schuldei
  3329. <[email protected]>.
  3330. This is due to the condition
  3331. (0 < top_level || !incremental_option)
  3332. Removing it makes incremental backups work for individual
  3333. files as well as for directories. On the other hand, it does
  3334. not affect other functionality, as shown by the reasoning below:
  3335. To begin with, the two parts of this condition are mutually
  3336. superfluous, because
  3337. 1) when top_level < 0, incremental_option == 1
  3338. so the condition yields false
  3339. 2) when top_level >= 0, incremental_option == 0
  3340. so the condition yields true.
  3341. In other words, it is completely equivalent to
  3342. (!incremental_option)
  3343. Now, let's consider the effect of its removal. There are two cases:
  3344. 1) when incremental_option==1
  3345. This means incremental backup in progress. In this case dump_file
  3346. is invoked only for directories or for files marked with 'Y' by
  3347. get_directory_contents. The latter are those that did not meet the
  3348. condition in incremen.c:242, which is exactly the same condition
  3349. as this at create.c:1296. So, for these files the check
  3350. (!incremental_option) is useless, since the rest of the
  3351. conditional will yield false anyway. On the other hand, if
  3352. dump_file is invoked on a directory, the conditional will yield
  3353. false due to !S_ISDIR assertion, so these will be processed as usual.
  3354. Thus, for this case the extra condition (!incremental_option) is
  3355. irrelevant, and its removal won't alter the behavior of tar,
  3356. *except* that it will enable incremental backups on individual
  3357. files, which is the wanted effect.
  3358. 2) when incremental_option==0
  3359. In this case the condition yields true and its removal does not
  3360. affect the functionality.
  3361. * THANKS: Updated
  3362. * configure.ac: Raised patchlevel to 93
  3363. * src/incremen.c: Minor stylistic fixes.
  3364. * tests/listed01.sh: New test. Check listed incremental
  3365. backups on individual files.
  3366. * tests/Makefile.am: Added listed01.sh
  3367. 2004-02-20 Sergey Poznyakoff <[email protected]>
  3368. * src/common.h (simple_finish_header,start_private_header): New
  3369. declarations
  3370. (xheader_ghdr_name): Changed declaration
  3371. * src/create.c (start_private_header): Removed static qualifier.
  3372. (write_extended): Removed superfluous last argument. Use
  3373. xheader_write()
  3374. (simple_finish_header): New function.
  3375. (finish_header): Use simple_finish_header() to break recursive
  3376. dependency between this function and write_extended().
  3377. * src/tar.c (assert_format): Do not bail out if several
  3378. --format arguments are given. This is a common case when
  3379. TAR_OPTIONS are used.
  3380. (decode_options): New option --show-defaults displays the
  3381. compiled-in defaults.
  3382. Use POSIX format if no --format option was given and
  3383. --pax-option was specified.
  3384. Do not allow to use --pax-option unless the archive format is
  3385. set to POSIX (or reading subcommand is requested).
  3386. * src/update.c (update_archive): Write global extended header if
  3387. constructed.
  3388. * src/xheader.c (xheader_format_name): Bugfix.
  3389. (xheader_xhdr_name): Changed the default extended header name
  3390. to '%d/PaxHeaders.%p/%f', as POSIX requires.
  3391. (xheader_ghdr_name): Removed unused argument.
  3392. (xheader_write,xheader_write_global): New function.
  3393. (xheader_decode): Modified to honor overrides whatever
  3394. the current archive format is.
  3395. * src/delete.c (delete_archive_members): Call xheader_decode
  3396. unconditionally.
  3397. * src/list.c (decode_header): Likewise.
  3398. * src/incremen.c (sort_obstack): Fixed typo in the comment
  3399. * doc/tar.texi: Document new default for extended
  3400. header names.
  3401. * tests/before: Accept an optional list of allowed archive
  3402. formats. Exit with the status 77 if the current archive
  3403. format does not match any of them.
  3404. * tests/delete03.sh: Require gnu, oldgnu or posix format
  3405. * tests/incremen.sh: Require gnu or oldgnu format
  3406. * tests/multiv01.sh: Likewise
  3407. 2004-02-20 Sergey Poznyakoff <[email protected]>
  3408. * doc/tar.texi (Option Summary): Documented --pax-option
  3409. * src/tar.c: Likewise.
  3410. * NEWS: Likewise.
  3411. * src/create.c (to_chars): Added a comment.
  3412. * src/tar.h: Comment to GNU_FORMAT
  3413. 2004-02-18 Sergey Poznyakoff <[email protected]>
  3414. * README: Updated
  3415. * configure.ac: Added stpcpy
  3416. * bootstrap: Likewise
  3417. * lib/Makefile.am: Likewise
  3418. * src/common.h (xheader_xhdr_name,xheader_ghdr_name): New
  3419. functions
  3420. * src/create.c (write_extended): Call xheader_xhdr_name
  3421. instead of using hardcoded "././@PaxHeader" name.
  3422. * src/tar.c: New option --pax-option (equivalent to -o option
  3423. of pax).
  3424. * src/xheader.c: Implement pax -o option. Fixed misleading
  3425. heading comment (introduced 2003-09-02).
  3426. * src/incremen.c: Minor fixes
  3427. * m4/.cvsignore: Updated
  3428. 2004-02-17 Sergey Poznyakoff <[email protected]>
  3429. * src/incremen.c: Removed accumulator stuff in favor of obstack.
  3430. (get_directory_contents): Split into two functions
  3431. * src/update.c: Minor changes
  3432. * doc/tar.texi: Fixed typo
  3433. 2004-02-15 Paul Eggert <[email protected]>
  3434. Fix Debian bug 230872, originally reported by Jeff King in
  3435. <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=230872>.
  3436. * doc/tar.texi (posix compliance): Remove. The whole section
  3437. was a misunderstanding of what POSIXLY_CORRECT is supposed to
  3438. mean. The GNU Coding Standards says that POSIXLY_CORRECT
  3439. is for disabling extensions that are incompatible with POSIX:
  3440. it is not for disabling compatible extensions. All references
  3441. to this section removed.
  3442. (posix): This format is created only if the posix format is
  3443. specified; it is no longer created if gnu format is specified
  3444. and POSIXLY_CORRECT is set.
  3445. * src/tar.c (decode_options): Ignore POSIXLY_CORRECT.
  3446. POSIX does not specify the behavior of tar, so we should
  3447. not worry about POSIXLY_CORRECT here.
  3448. 2004-01-21 Sergey Poznyakoff <[email protected]>
  3449. * Makefile.am: Removed m4
  3450. * configure.ac: Require automake-1.8/autoconf-2.59. Removed
  3451. m4/Makefile.
  3452. * README-alpha: Updated
  3453. * bootstrap: Updated TP URL, improved help output. Default
  3454. to :ext:anoncvs and set CVS_RSH, unless already set.
  3455. * m4/Makefile.am: Removed
  3456. 2004-01-21 Sergey Poznyakoff <[email protected]>
  3457. * bootstrap: Bugfix by Marco Gerards <[email protected]>:
  3458. Use $option instead of $1 so all options will be parsed.
  3459. 2004-01-04 Sergey Poznyakoff <[email protected]>
  3460. Started rewriting buffer.c ...
  3461. * bootstrap: New option --no-po
  3462. * src/buffer.c (new_volume,check_label_pattern): Changed return type.
  3463. (time_to_start_writing): Changed data type
  3464. (file_to_switch_to): Removed. Variable never assigned to.
  3465. (open_archive) Moved option compatibility checks to tar.c
  3466. Other minor changes.
  3467. * src/common.h (maybe_backup_file): Changed return type
  3468. * src/misc.c: Likewise.
  3469. * src/create.c: Updated invocations of safer_name_suffix
  3470. * src/extract.c: Likewise
  3471. * src/delete.c: Updated assignment to write_archive_to_stdout
  3472. * src/tar.c (decode_options): More option compatibility checks
  3473. (moved from buffer.c)
  3474. * src/update.c (time_to_start_writing): Changed data type.
  3475. * tests/recurse.sh: New test case.
  3476. * tests/mksparse.c: New file.
  3477. * tests/Makefile.am: Added recurse.sh and mksparse.c
  3478. 2004-01-02 Sergey Poznyakoff <[email protected]>
  3479. * src/sparse.c (sparse_diff_file): Bugfix. Thanks
  3480. Martin Simmons for the patch.
  3481. * src/create.c (dump_dir0): Bugfix. Thanks Piotr Czerwinski
  3482. <[email protected]> for the patch.
  3483. 2003-12-26 Paul Eggert <[email protected]>
  3484. Synchronize with Gettext 0.13.1, Automake 1.8, Autoconf 2.59,
  3485. and translation website.
  3486. * bootstrap: Don't bother skipping codeset.m4, glibc21.m4,
  3487. intdiv0.m4, inttypes_h.m4, inttypes.m4, inttypes-pri.m4,
  3488. isc-posix.m4, and lcmessage.m4 from gnulib. This list of files is
  3489. a bit obsolete anyway, now that gettext 0.13.1 is out. Also, the
  3490. files are replaced by autoreconf. Also, there seems to be a bug
  3491. in gettext/autoconf/automake if we try to omit these files after
  3492. autoreconf has replaced them, even though the gettext manual says
  3493. they're optional. So give up and just include them for now, even
  3494. though they make 'configure' longer and slower.
  3495. Change translation URL from
  3496. <http://www.iro.umontreal.ca/contrib/po/maint/tar/> to
  3497. <http://www2.iro.umontreal.ca/~gnutra/po/maint/tar/> to
  3498. accommodate translator website revamp.
  3499. Fail if autoreconf fails.
  3500. * m4/.cvsignore: Add intmax.m4, longdouble.m4, printf-posix.m4,
  3501. signed.m4, size_max.m4, wchar_t.m4, wint_t.m4, xsize.m4, to
  3502. ignore files now supplied by gettext 0.13.1.
  3503. 2003-12-25 Sergey Poznyakoff <[email protected]>
  3504. Synchronized with the backup repository on Mirddin
  3505. 2003-12-19 Sergey Poznyakoff <[email protected]>
  3506. * configure.ac: Check for varios members of struct stat
  3507. that may represent file modification times with a subsecond
  3508. precision.
  3509. Check for utimes (for future use)
  3510. * src/buffer.c (short_read): Issue a warning on short reads.
  3511. * src/common.h (sys_stat_nanoseconds): New function
  3512. * src/create.c (dump_file0): Use sys_stat_nanoseconds().
  3513. * src/list.c (read_and): Treat only two successive zero
  3514. filled blocks as an EOF indicator. Issue a warning if
  3515. a single one is encountered.
  3516. * src/system.c (sys_stat_nanoseconds): New function
  3517. * src/tar.h (tar_stat_info.atime_nsec,mtime_nsec,ctime_nsec): New
  3518. members.
  3519. * src/xheader.c (code_time,decode_time): Support for subsecond
  3520. precision.
  3521. (atime_coder,atime_decoder,ctime_coder,ctime_decoder)
  3522. (mtime_coder,mtime_decoder): Update invocations of code_time and
  3523. decode_time.
  3524. (gid_decoder,size_decoder,uid_decoder,sparse_size_decoder)
  3525. (sparse_numblocks_decoder,sparse_offset_decoder)
  3526. (sparse_numbytes_decoder): Updated
  3527. 2003-12-18 Sergey Poznyakoff <[email protected]>
  3528. * src/names.c (safer_name_suffix): Reverted change made
  3529. 2003-11-14. Reason: Discussion with Paul Eggert and
  3530. Jean-Louis Martineau. See also ChangeLog entry from
  3531. 1999-08-14.
  3532. * tests/delete03.sh: Likewise.
  3533. * tests/extrac04.sh: Likewise.
  3534. * tests/multiv01.sh: Likewise.
  3535. 2003-12-12 Sergey Poznyakoff <[email protected]>
  3536. * src/incremen.c (write_directory_file): Use sys_truncate
  3537. * src/list.c (print_header): Use archive_file_size member
  3538. when printing real file size.
  3539. * src/sparse.c (sparse_scan_file): Correctly handle files with
  3540. a hole at the end.
  3541. (sparse_dump_region,sparse_extract_region): Allow for zero size
  3542. trailing blocks
  3543. 2003-12-12 Sergey Poznyakoff <[email protected]>
  3544. * configure.ac: Raised version number to 1.13.92
  3545. * src/list.c (decode_header): Discern between pax and ustar
  3546. formats
  3547. Initialize current_stat_info.archive_file_size.
  3548. NOTE: Modifications from this date on are temporarily
  3549. stored on local CVS on mirddin. This repository will
  3550. be synchronized with Savannah as soon as the latter
  3551. becomes operational again.
  3552. 2003-12-01 Sergey Poznyakoff <[email protected]>
  3553. * TODO: Updated
  3554. * src/sparse.c: Initial implementation of GNU/pax sparse
  3555. file format.
  3556. * src/common.h (xheader_store): Changed prototype.
  3557. * src/create.c: Update calls to xheader_store
  3558. * src/extract.c (extract_archive): Check reported size vs.
  3559. archive file size to determine if we have to do with a
  3560. sparse file.
  3561. * src/tar.c (usage): Cleaned up the sample argument to --newer
  3562. option.
  3563. (decode_options): Allow --sparse for POSIX_FORMAT archives.
  3564. * src/xheader.c (struct xhdr_tab.coder; all coder function): Added
  3565. extra argument
  3566. Implemented GNU.sparse.* keywords.
  3567. 2003-11-30 Sergey Poznyakoff <[email protected]>
  3568. * configure.ac: Check for setlocale. Thanks Bruno Haible for
  3569. reporting.
  3570. 2003-11-25 Sergey Poznyakoff <[email protected]>
  3571. * src/create.c (write_gnu_long_link): Use oldgnu
  3572. magic with @LongLink blocks.
  3573. 2003-11-17 Sergey Poznyakoff <[email protected]>
  3574. * src/tar.h: Support for star sparse format.
  3575. * src/sparse.c: Likewise.
  3576. 2003-11-17 Sergey Poznyakoff <[email protected]>
  3577. * src/sparse.c (sparse_diff_file): New function
  3578. * src/common.h (sys_compare_uid,sys_compare_gid): New functions
  3579. (sys_compare_uid_gid): Removed.
  3580. (sys_compare_links,report_difference): Changed prototype
  3581. (sparse_diff_file): New function
  3582. * src/system.c (sys_compare_uid,sys_compare_gid): New functions
  3583. (sys_compare_uid_gid): Removed.
  3584. (sys_compare_links): Changed declaration
  3585. * src/compare.c (diff_archive): Use sparse_diff_file.
  3586. 2003-11-16 Sergey Poznyakoff <[email protected]>
  3587. Rewritten sparse file handling.
  3588. * src/sparse.c: New file. Provides a universal framework
  3589. for various methods for sparse files handling.
  3590. * src/Makefile.am: Added sparse.c
  3591. * src/common.h (struct sp_array,sparsearray,sp_array_size)
  3592. (init_sparsearray,fill_in_sparse_array): Removed
  3593. (enum dump_status): New data type
  3594. (pad_archive,close_diag,open_diag,read_diag_details)
  3595. (readlink_diag,savedir_diag,seek_diag_details,stat_diag): New
  3596. functions.
  3597. (sparse_file_p,sparse_dump_file,sparse_extract_file): New
  3598. functions.
  3599. (print_header): Changed prototype declaration.
  3600. * src/tar.h (struct sp_array): Declaration from common.h
  3601. (struct tar_stat_info): New members archive_file_size,
  3602. sparse_map_avail,sparse_map.
  3603. * src/create.c: Major rewrite.
  3604. * src/extract.c: Use new sparse file interface.
  3605. * src/compare.c (diff_sparse_files): Temporary placeholder.
  3606. * src/buffer.c: Minor changes
  3607. * src/tar.c: Likewise.
  3608. * src/list.c: Likewise.
  3609. * src/misc.c (close_diag,open_diag,read_diag_details)
  3610. (readlink_diag,savedir_diag,seek_diag_details,stat_diag): New
  3611. diagnostics functions.
  3612. * src/incremen.c: Use new diagnostics functions.
  3613. * src/names.c: Likewise.
  3614. 2003-11-14 Sergey Poznyakoff <[email protected]>
  3615. * configure.ac: Fixed check for setsockopt
  3616. * src/create.c: Do not zero-terminate name field if
  3617. the name is exactly 100 characters long.
  3618. (write_ustar_long_name): Fixed checking for unsplittable
  3619. names.
  3620. 2003-11-14 Sergey Poznyakoff <[email protected]>
  3621. * src/create.c (start_header): Removed debugging hook
  3622. (dump_file): Fixed handling of linkname field.
  3623. * src/names.c (safer_name_suffix): If the input
  3624. file name ends with a slash, output one should do so
  3625. as well.
  3626. * doc/tar.texi: Documented --format=ustar
  3627. 2003-11-14 Sergey Poznyakoff <[email protected]>
  3628. * src/tar.h (archive_format): USTAR_FORMAT: New type.
  3629. * src/create.c: Added POSIX.1-1988 support.
  3630. * src/names.c (safer_name_suffix): Skip leading ./
  3631. * src/tar.c: New option --format=ustar forces
  3632. POSIX.1-1988 archive format.
  3633. * tests/delete03.sh: Updated.
  3634. * tests/extrac04.sh: Updated.
  3635. * tests/multiv01.sh: Updated.
  3636. 2003-11-13 Sergey Poznyakoff <[email protected]>
  3637. * src/list.c (read_and): Initialize current_stat_info
  3638. and extended_header at the start of the loop.
  3639. * src/names.c (all_names_found): Check if the argument
  3640. contains valid filename. Fixes coredump on `not_a_tar_file'
  3641. * src/xheader.c (atime_decoder,gid_decoder,ctime_decoder)
  3642. (mtime_decoder,size_decoder,uid_decoder): Use xstrtoumax.
  3643. Fixes `pax-big-10g' bug.
  3644. 2003-11-12 Paul Eggert <[email protected]>
  3645. Fix some C compatibility bugs reported by Joerg Schilling.
  3646. * src/common.h (stripped_prefix_len): Fix misspelling
  3647. "stripped_path_len" in declaration.
  3648. * src/rmt.c (main): Use "return FOO;" rather than
  3649. "exit (FOO);"; we no longer have to worry about
  3650. pre-ANSI hosts that mishandled returned values from "main".
  3651. * src/tar.c (main): Likewise. This avoids warnings on some
  3652. compilers.
  3653. * src/system.c: Include signal.h, for 'kill'.
  3654. * src/system.h (DEV_BSIZE): Remove.
  3655. (DEFAULT_ST_BLKSIZE): New macro.
  3656. (ST_BLKSIZE): Use it, instead of DEV_BSIZE.
  3657. * src/tar.c (enum): Remove comma just before }.
  3658. 2003-11-12 Sergey Poznyakoff <[email protected]>
  3659. * src/list.c (decode_header): Initialize st_atime and
  3660. st_ctime.
  3661. 2003-11-11 Sergey Poznyakoff <[email protected]>
  3662. * configure.ac (tar_save_LIBS): Bugfix. Thanks Adrian
  3663. Bunk <[email protected]> for reporting.
  3664. * doc/tar.texi: Fixed spelling. Thanks Martin Buchholz
  3665. <[email protected]> for spotting.
  3666. 2003-11-04 Paul Eggert <[email protected]>
  3667. * src/xheader.c (xhdr_tab): Make it extern, not static, as C89 and
  3668. C99 require this.
  3669. 2003-10-26 Paul Eggert <[email protected]>
  3670. * src/system.c (sys_spawn_shell): Cast trailing null to (char *).
  3671. Bug reported by Christian Weisgerber.
  3672. 2003-10-19 Sergey Poznyakoff <[email protected]>
  3673. * AUTHORS: Updated
  3674. * NEWS: Updated
  3675. * src/tar.c (decode_options): Removed superfluous archive format
  3676. check
  3677. * doc/tar.texi: Documented new features.
  3678. 2003-10-08 Sergey Poznyakoff <[email protected]>
  3679. * NEWS: Updated
  3680. * THANKS: Added Wojciech Polak
  3681. * configure.ac: Added checks for missing functions. Raised
  3682. version number to indicate alpha release.
  3683. * lib/Makefile.am: Added missing headers
  3684. * lib/waitpid.c: Added missing includes.
  3685. * src/extract.c: Likewise.
  3686. * src/names.c: Removed spurious includes.
  3687. * src/xheader.c: Likewise.
  3688. * src/system.h [MSDOS]: Fixed spelling of EACCES. Added
  3689. macro overriding broken mkdir prototypes.
  3690. 2003-10-04 Sergey Poznyakoff <[email protected]>
  3691. * configure.ac: Check for dev_t and ino_t.
  3692. * m4/Makefile.am: Added missing files.
  3693. * src/system.c: New file.
  3694. * src/Makefile.am: Added system.c
  3695. * src/common.h: Prototypes for functions from system.c
  3696. * src/system.h (SET_BINARY_MODE, ERRNO_IS_EACCESS): New defines
  3697. * src/buffer.c: Moved system dependencies to system.c
  3698. * src/compare.c: Likewise.
  3699. * src/create.c: Likewise.
  3700. * src/delete.c: Likewise.
  3701. * src/extract.c: Likewise.
  3702. * src/rtapelib.c: Likewise.
  3703. 2003-10-04 Sergey Poznyakoff <[email protected]>
  3704. Implemented --occurrence option.
  3705. * NEWS: Updated.
  3706. * src/tar.c: New option --occurrence.
  3707. * src/common.h (occurrence_option): New global
  3708. (struct name): Changed `found' member to `uintmax_t
  3709. found_count'.
  3710. (names_done): Removed
  3711. (all_names_found): Changed prototype.
  3712. (ISFOUND,WASFOUND): New macros
  3713. * src/delete.c (delete_archive_members): Honor --occurrence
  3714. option.
  3715. * src/list.c (read_and): Likewise.
  3716. * src/names.c: Count number of occurrences of each name in the
  3717. archive.
  3718. (name_match): Honor --occurrence option.
  3719. (names_done): Removed
  3720. (all_names_found,names_notfound): Rewritten.
  3721. 2003-10-02 Sergey Poznyakoff <[email protected]>
  3722. * src/tar.c: Removed extra precaution regarding
  3723. subcommand_option == CAT_SUBCOMMAND
  3724. * lib/Makefile.am: Updated
  3725. 2003-10-02 Sergey Poznyakoff <[email protected]>
  3726. * src/common.h (names_done): New function.
  3727. * src/names.c: Likewise.
  3728. * src/list.c (read_and): Use all_names_found() as `while'
  3729. condition.
  3730. * src/tar.c: New option --first-copy
  3731. * NEWS: Updated
  3732. 2003-09-24 Paul Eggert <[email protected]>
  3733. * src/rmt.c (main): Don't translate Copyright string; international
  3734. law says the word "Copyright" should be in English.
  3735. * src/tar.c (decode_options): Likewise.
  3736. 2003-09-22 Paul Eggert <[email protected]>
  3737. * doc/tar.texi (extracting untrusted archives): New section.
  3738. * src/common.h (stripped_path_len): Renamed from cut_path_elements.
  3739. Return size_t, not pointer, so that we don't have to worry about
  3740. violating the C standard by converting char const * to char *.
  3741. All callers changed.
  3742. * src/names.c (stripped_path_len): Likewise. Strip file system
  3743. prefix, too. Count adjacent slashes as if they were one slash;
  3744. that is the POSIX standard.
  3745. 2003-09-17 Paul Eggert <[email protected]>
  3746. * README-alpha: Document maintainer tool assumptions a bit. GNU
  3747. 'sed' is no longer required. For GNU m4 1.4, suggest the patch in
  3748. Debian bug 211447. Fix minor misspellings/whitespace nits.
  3749. * configure.ac (AC_AIX, AC_MINIX): Remove; subsumed by
  3750. gl_USE_SYSTEM_EXTENSIONS.
  3751. * lib/.cvsignore: Add exit.h, time_r.c, time_r.h.
  3752. * m4/.cvsignore: Add restrict.m4, time_r.m4.
  3753. 2003-09-17 Paul Eggert <[email protected]>
  3754. * bootstrap: Don't use "for option; do";
  3755. Solaris 8 /bin/sh doesn't like that.
  3756. 2003-09-17 Sergey Poznyakoff <[email protected]>
  3757. * README-alpha: Updated
  3758. * bootstrap: Updated
  3759. 2003-09-17 Sergey Poznyakoff <[email protected]>
  3760. * README-alpha: Updated
  3761. * bootstrap: Updated
  3762. * po/POTFILES.in: Added src/xheader.c
  3763. * src/common.h (cut_path_elements): Added proto.
  3764. 2003-09-05 Sergey Poznyakoff <[email protected]>
  3765. * src/buffer.c: Use ngettext where appropriate.
  3766. * src/compare.c: Likewise.
  3767. * src/create.c: Likewise.
  3768. * src/misc.c: Likewise.
  3769. * src/tar.c: Likewise.
  3770. * src/update.c: Likewise.
  3771. 2003-09-04 Sergey Poznyakoff <[email protected]>
  3772. * .cvsignore: Added *.shar.gz
  3773. * NEWS: Updated
  3774. * TODO: Updated
  3775. * src/common.h (strip_path_elements): New variable.
  3776. * src/extract.c (extract_archive): Implemented --strip-path
  3777. * src/names.c (cut_path_elements): New function.
  3778. * src/tar.c: New option --strip-path=NUM.
  3779. (decode_options) Assign boolean values to bool variables.
  3780. 2003-09-04 Sergey Poznyakoff <[email protected]>
  3781. * src/delete.c: Fixed deletion from the POSIX archives.
  3782. * src/list.c (read_header): Minor change.
  3783. * src/tar.c (main): Do not check for volume_label_option
  3784. if subcommand_option is not CREATE_SUBCOMMAND.
  3785. * src/xheader.c (xheader_decode): Store the header as
  3786. well (for eventual delete).
  3787. * tests/incremen.sh: Explicitly request GNU format. This will
  3788. disappear when GNU extended header keywords are working.
  3789. * tests/multiv01.sh: Likewise
  3790. * tests/volume.sh: Likewise
  3791. 2003-09-04 Sergey Poznyakoff <[email protected]>
  3792. * src/create.c: Support for "linkpath" extended keyword.
  3793. * src/xheader.c (decode_record): Reversed the return
  3794. condition.
  3795. 2003-09-03 Sergey Poznyakoff <[email protected]>
  3796. * configure.ac: Allow to redefine the default output format.
  3797. * src/tar.c: Use DEFAULT_ARCHIVE_FORMAT macro
  3798. (archive_format_string): New function.
  3799. (usage): Updated help output.
  3800. * README: Updated.
  3801. * NEWS: Updated.
  3802. * TODO: Updated.
  3803. 2003-09-02 Paul Eggert <[email protected]>
  3804. * src/common.h (destroy_stat, xheader_decode, xheader_store,
  3805. xheader_read, xheader_finish, xheader_destroy): Add decls;
  3806. C99 requires this.
  3807. * src/create.c (write_extended): Remove unused local 'bufsize'.
  3808. * src/delete.c (delete_archive_members): Handle case of
  3809. HEADER_SUCCESS_EXTENDED followed by HEADER_FAILURE.
  3810. * src/list.c (read_and): Abort if HEADER_SUCCESS_EXTENDED
  3811. occurs, as it's not possible.
  3812. * src/update.c (update_archive): Likewise.
  3813. Use "const" when possible in new code.
  3814. * src/tar.c (struct fmttab.name): Now char const *. All uses changed.
  3815. (fmttab): Now const. All uses changed.
  3816. * src/xheader.c (struct xhdr_tab.keyword): Now pointer to const.
  3817. (struct xhdr_tab.coder, struct xhdr_tab.decoder, locate_handler,
  3818. decode_record, xheader_store, xheader_print, code_string, code_time,
  3819. code_num, dummy_coder, dummy_decoder, atime_coder, atime_decoder,
  3820. gid_coder, gid_decoder, gname_coder, gname_decoder, linkpath_coder,
  3821. linkpath_decoder, ctime_coder, ctime_decoder, mtime_coder,
  3822. mtime_decoder, path_coder, path_decoder, size_coder, size_decoder,
  3823. uid_coder, uid_decoder, uname_coder, uname_decoder):
  3824. Use pointers to const when possible.
  3825. (xhdr_tab): Now const.
  3826. * src/tar.c (fmttab): Avoid GCC warning by not eliding initializers.
  3827. (set_archive_format): Report an error if no format name matches,
  3828. instead of returning an undefined value.
  3829. * src/xheader.c (struct xhdr_tab.decoder, dummy_decoder,
  3830. atime_decoder, gid_decoder, gname_decoder, linkpath_decoder,
  3831. ctime_decoder, mtime_decoder, path_decoder, size_decoder,
  3832. uid_decoder, uname_decoder): Remove unused keyword arg.
  3833. All uses changed.
  3834. * src/tar.c (set_archive_format): Now static.
  3835. * src/xheader.c (xhdr_tab, format_uintmax): Now static.
  3836. * src/xheader.c (dummy_coder, dummy_decoder, atime_coder,
  3837. atime_decoder, gid_coder, gid_decoder, gname_coder, gname_decoder,
  3838. linkpath_coder, linkpath_decoder, mtime_coder, mtime_decoder,
  3839. ctime_coder, ctime_decoder, path_coder, path_decoder, size_coder,
  3840. size_decoder, uid_coder, uid_decoder, uname_coder, uname_decoder):
  3841. Remove forward decls; no longer needed.
  3842. (xhdr_tab): Move to end, so that the forward decls aren't needed.
  3843. Add a forward declaration.
  3844. Use 'bool' in new code, when appropriate.
  3845. * src/xheader.c (decode_record): Return bool, not int.
  3846. * src/common.h (read_header): Since it accepts bool, change
  3847. all callers to use false and true rather than 0 and 1.
  3848. * src/xheader.c (decode_record): Fix misspelling in diagnostic
  3849. "extended headed" -> "extended header".
  3850. GNU coding style fixes.
  3851. * src/xheader.c (decode_record, xheader_decode):
  3852. Do not use decls like "char *p, *q;".
  3853. Minor style fixes.
  3854. (xheader_store): Avoid parentheses around object operand of sizeof.
  3855. 2003-09-03 Sergey Poznyakoff <[email protected]>
  3856. * src/create.c (start_header): Store long file names
  3857. in "path" keyword of an extended header if in POSIX
  3858. mode.
  3859. (finish_header): print header before calling write_extended().
  3860. * src/list.c (list_archive): Always decode the header. This
  3861. is necessary so the extended header is processed and the correct
  3862. filename is printed no matter what the state of verbose_option.
  3863. * src/xheader.c (xhdr_tab): Reserved GNU keywords (commented out
  3864. for the time being).
  3865. 2003-09-01 Paul Eggert <[email protected]>
  3866. Update from gnulib, and correct fnmatch to fnmatch-gnu.
  3867. * bootstrap (gnulib_modules): Change fnmatch to fnmatch-gnu.
  3868. Sort.
  3869. * configure.ac (gl_USE_SYSTEM_EXTENSIONS): Use this instead
  3870. of AC_GNU_SOURCE.
  3871. * lib/.cvsignore: Add alloca.h, stdbool.h. Sort. Append newline.
  3872. * lib/Makefile.am (lib_OBJECTS): New macro, for convenience when
  3873. copying rules from gnulib module descriptions.
  3874. (BUILT_SOURCES, EXTRA_DIST, all-local, alloca.h):
  3875. Update from gnulib modules alloca, fnmatch, getline, stdbool.
  3876. * m4/.cvsignore: Add utimes-null.m4. Sort.
  3877. 2003-09-01 Sergey Poznyakoff
  3878. Added initial support for creating POSIX headers.
  3879. * src/common.h (MAXOCTAL11,MAXOCTAL7): New defines
  3880. (string_to_chars): New functions
  3881. (struct xheader): Changed structure
  3882. (gid_to_gname,gname_to_gid,uid_to_uname,uname_to_uid): Changed
  3883. prototypes.
  3884. * src/create.c (string_to_chars): New function.
  3885. (write_extended): New function
  3886. (start_header): Create extended POSIX headers if necessary.
  3887. (finish_header): Likewise.
  3888. * src/list.c (print_header): Take user/group from
  3889. current_stat_info.
  3890. * src/names.c (gid_to_gname,gname_to_gid)
  3891. (uid_to_uname,uname_to_uid): Changed prototypes.
  3892. * src/tar.c: New option --format.
  3893. * src/tar.h (OLDGNU_COMPATIBILITY): Removed
  3894. (struct extra_header): Removed unused structure.
  3895. (union block.extra_header): Removed unused member.
  3896. * src/xheader.c: Implemented coder functions.
  3897. * bootstrap: Added obstack.
  3898. * lib/.cvsignore: Likewise.
  3899. * configure.ac: Added 'gl_OBSTACK'
  3900. * m4/Makefile.am: Added new files.
  3901. * m4/.cvsignore: Likewise.
  3902. * TODO: Minor formatting change
  3903. 2003-08-31 Sergey Poznyakoff
  3904. Added initial support for POSIX extended and STAR headers
  3905. (only for listing/extracting).
  3906. * src/xheader.c: New file.
  3907. * src/Makefile.am: Added xheader.c
  3908. * src/tar.h (struct star_header): New datatype
  3909. (XHDTYPE,XGLTYPE): New defines
  3910. (enum archive_format:STAR_FORMAT): New member
  3911. (struct tar_stat_info): New datatype.
  3912. (union block.star_header): New member.
  3913. * src/common.h (orig_file_name,current_file_name)
  3914. (current_trailing_slash,current_link_name): Removed variables.
  3915. (current_stat_info): New variable
  3916. (current_stat): Removed
  3917. (extended_header): New variable
  3918. (decode_header): Changed prototype.
  3919. * src/list.c (decode_header): Added initial support for POSIX extended
  3920. and STAR headers.
  3921. (skip_member): Check oldgnu_header only if current_format is set
  3922. to OLDGNU_FORMAT.
  3923. * src/buffer.c: Use current_stat_info
  3924. * src/compare.c: Likewise.
  3925. * src/create.c: Likewise.
  3926. * src/delete.c: Likewise.
  3927. * src/incremen.c: Likewise.
  3928. * src/mangle.c: Likewise.
  3929. * src/update.c: Likewise.
  3930. * src/extract.c: Likewise.
  3931. (make_directories): Improved check for the existence of the directory
  3932. * src/tar.c (destroy_stat): New function.
  3933. 2003-08-29 Paul Eggert <[email protected]>
  3934. * NEWS, bootstrap: Drop en_GB locale; it was more trouble than it
  3935. was worth (e.g., different users in en_GB disagree about -ize
  3936. versus -ise).
  3937. * po/en_GB.po: Remove.
  3938. 2003-07-28 Sergey Poznyakoff <[email protected]>
  3939. * TODO: Updated
  3940. * NEWS: Updated
  3941. * src/tar.c: Removed support for the obsolete command line
  3942. options.
  3943. * doc/tar.texi: Removed references to the obsolete command
  3944. line options.
  3945. 2003-07-27 Sergey Poznyakoff <[email protected]>
  3946. * TODO: Updated
  3947. * NEWS: Updated
  3948. * doc/tar.texi: Updated
  3949. * src/common.h (check_links_option): New variable
  3950. (orig_file_name): New variable
  3951. (check_links): New proto.
  3952. * src/create.c (struct link.nlink): New member
  3953. (link_table): Static for the module.
  3954. (dump_file): Update `link' member when adding new links
  3955. to the link_table.
  3956. (check_links): New function.
  3957. * src/list.c (print_header): Use orig_file_name.
  3958. * src/tar.c: New option --check-links. Changed semantics of
  3959. -o to comply to UNIX98 when extracting and to its previous
  3960. semantics otherwise.
  3961. (main): Call check_links if --check-links. was given.
  3962. 2003-07-25 Sergey Poznyakoff <[email protected]>
  3963. * src/list.c (print_header): Revised
  3964. * NEWS: Started the entry for 1.13.26
  3965. * doc/Makefile.am (tar.dvi): Fixed TEXINPUTS value.
  3966. 2003-07-24 Sergey Poznyakoff <[email protected]>
  3967. * .cvsignore: Added to the repository.
  3968. * doc/.cvsignore: Likewise.
  3969. * lib/.cvsignore: Likewise.
  3970. * m4/.cvsignore: Likewise.
  3971. * po/.cvsignore: Likewise.
  3972. * scripts/.cvsignore: Likewise.
  3973. * src/.cvsignore: Likewise.
  3974. * tests/.cvsignore: Likewise.
  3975. * lib/Makefile.am: Added exitfail.[hc]
  3976. * src/misc.c (chdir_do): Fixed call to restore_cwd
  3977. * src/buffer.c (flush_read): Fixed behavior on short
  3978. reads right after opening the new archive (multiv01.sh test).
  3979. (new_volume): Special handling for "-".
  3980. * src/list.c (print_header): Print trailing slash if
  3981. current_trailing_slash was set (extrac03.sh,extrac04.sh tests).
  3982. * tests/multiv01.sh: Minor changes.
  3983. * m4/Makefile.am: Added missing files.
  3984. 2003-07-05 Paul Eggert <[email protected]>
  3985. Finish the checkin begin yesterday.
  3986. * NEWS: Document the user-visible changes installed in the last
  3987. two days.
  3988. * TODO: New file (actually, resurrected; but with new contents).
  3989. * src/list.c (read_and): Give full type for procedure arg.
  3990. (read_header): Strip trailing slashes, setting current_trailing_slash.
  3991. (tartime): Avoid int overflow when printing year (!).
  3992. (print_header): New arg specifying block ordinal. All uses changed.
  3993. Print link as 'h' type. Give labels for long links and names.
  3994. * src/misc.c (contains_dot_dot): Moved to names.c
  3995. (must_be_dot_or_slash): New function.
  3996. (safer_rmdir): Use it.
  3997. (remove_any_file): Now takes enum as option, not boolean.
  3998. Check for (Linux) EISDIR as well as (POSIX) EPERM when attempting
  3999. to unlink a directory.
  4000. (deref_stat): Accept bool, not int.
  4001. * src/names.c (namelist_match): Allow partial matches only if
  4002. recursive.
  4003. (hash_string_hasher): Renamed from hash_avoided_name.
  4004. (hash_string_compare): Renamed from compare_avoided_anames.
  4005. (hash_string_insert, hash_string_lookup): New functions.
  4006. (add_avoided_name, is_avoided_name): Use them.
  4007. (safer_name_suffix): New function.
  4008. (contains_dot_dot): Moved here from misc.c. Now returns bool, not int.
  4009. * src/rmt.c: Don't include print-copyr.h.
  4010. (prepare_input_buffer): New arg FD.
  4011. Do not read more than INT_MAX bytes at once,
  4012. since it breaks on some brain damaged Tru64 hosts.
  4013. Divide size by two
  4014. when retrying instead of subtracting 1024; for speed.
  4015. (main): Use gettext to translate (C), not print_copyright.
  4016. * src/system.h: Include <alloca.h> and <stdbool.h> unconditionally,
  4017. now that gnulib handles this.
  4018. Include <stddef.h> and <limits.h> unconditionally, now that we assume
  4019. C89 or better.
  4020. Assume that offsetof is defined in stddef.h.
  4021. Do not include <sys/param.h>.
  4022. (realloc, lseek): Do not declare.
  4023. (HAVE_DECL_VALLOC): Renamed from HAVE_VALLOC.
  4024. (CHAR_BIT, CHAR_MAX, UCHAR_MAX, LONG_MAX): Remove
  4025. declarations, since we now assume C89 or better.
  4026. (PARAMS): Remove, as we now assume C89. All uses changed.
  4027. (bindtextdomain, textdomain): Include <gettext.h> to define.
  4028. Include <unlocked-io.h>.
  4029. (valloc): Define if not defined, and if valloc is not declared.
  4030. (xstrdup): Remove decl.
  4031. * src/tar.c: Do not include <print-copyr.h>.
  4032. Include <getdate.h>.
  4033. (get_date): Remove decl.
  4034. (ATIME_PRESERVE_OPTION, CHECKPOINT_OPTION, FORCE_LOCAL_OPTION,
  4035. IGNORE_FAILED_READ_OPTION, INDEX_FILE_OPTION, NO_OVERWRITE_DIR_OPTION,
  4036. NUMERIC_OWNER_OPTION, RECURSIVE_UNLINK_OPTION, REMOVE_FILES_OPTION,
  4037. SHOW_OMITTED_DIRS_OPTION, TOTALS_OPTION): New constants.
  4038. (long_options, decode_options): Use them.
  4039. (OVERWRITE_DIR_OPTION): Remove.
  4040. (long_options): New options --index-file, --no-overwrite-dir.
  4041. Remove --overwrite-dir option.
  4042. (usage): Use PACKAGE_BUGREPORT.
  4043. (decode_options): Terminate new argv properly.
  4044. Use PACKAGE_NAME, PACKAGE_VERSION.
  4045. If verbose, report how we grokked any textual date option.
  4046. (main): Add support for index-file.
  4047. * tests/Makefile.am: Convert to UTF-8.
  4048. (AUTOMAKE_OPTIONS): Remove.
  4049. (TESTS): Add delete04.sh, multiv01.sh, options.sh.
  4050. (INCLUDES): Remove ../intl.
  4051. (LDADD): Don't link libtar.a twice.
  4052. * tests/genfile.c: Convert to UTF-8.
  4053. Don't include <print-copyr.h>.
  4054. (DEFAULT_PATTERN): Renamed from DEFAULT.
  4055. (ZEROS_PATTERN): Renamed from ZEROS.
  4056. (main): Use gettext to translate (C), not print_copyright.
  4057. 2003-07-04 Paul Eggert <[email protected]>
  4058. Revamp to meet current standards of autoconf, automake,
  4059. gettext, and gnulib, and incorporate new translations.
  4060. * config/config.guess, config/config.sub, config/depcomp,
  4061. config/install-sh, config/mdate-sh, config/missing,
  4062. config/mkinstalldirs, config/texinfo.texi:
  4063. Moved here from parent directory, or from doc.
  4064. * config.hin: Renamed from config.h.in.
  4065. * config/config.rpath: New file.
  4066. * intl: Remove this subdirectory.
  4067. * lib/fnmatch_.h: Renamed from lib/fnmatch.hin.
  4068. * lib/getstr.c, lib/getstr.h, lib/msleep.c, lib/print-copyr.c,
  4069. lib/print-copyr.h, lib/readutmp.c, lib/rename.c, lib/stpcpy.c,
  4070. lib/strstr.c, lib/strtoimax.c, lib/strtoll.c, lib/strtoull.c,
  4071. lib/strtoumax.c, lib/unicodeio.c, lib/unicodeio.h,
  4072. lib/xstrtoimax.c, m4/c-bs-a.m4, m4/ccstdc.m4, m4/check-decl.m4,
  4073. m4/decl.m4, m4/jm-mktime.m4, m4/prereq.m4, m4/xstrtoimax.m4,
  4074. stamp-h.in: Remove.
  4075. * lib/alloca_.h, lib/fnmatch_loop.c, lib/gettext.h, lib/pathmax.h,
  4076. lib/safe-write.c, lib/safe-write.h, lib/stdbool_.h, lib/strcase.h,
  4077. lib/stripslash.c, lib/unlocked-io.h, lib/xgetcwd.h, m4/alloca.m4,
  4078. m4/backupfile.m4, m4/bison.m4, m4/chown.m4, m4/dirname.m4,
  4079. m4/dos.m4, m4/exclude.m4, m4/fileblocks.m4, m4/ftruncate.m4,
  4080. m4/getdate.m4, m4/getopt.m4, m4/hash.m4, m4/human.m4,
  4081. m4/intdiv0.m4, m4/intmax_t.m4, m4/inttypes-pri.m4,
  4082. m4/inttypes_h.m4, m4/isc-posix.m4, m4/lchown.m4, m4/lib-ld.m4,
  4083. m4/lib-link.m4, m4/lib-prefix.m4, m4/memset.m4, m4/mktime.m4,
  4084. m4/modechange.m4, m4/nls.m4, m4/onceonly.m4, m4/pathmax.m4,
  4085. m4/po.m4, m4/quote.m4, m4/quotearg.m4, m4/rmdir.m4,
  4086. m4/safe-read.m4, m4/safe-write.m4, m4/save-cwd.m4, m4/savedir.m4,
  4087. m4/ssize_t.m4, m4/stdbool.m4, m4/stdint_h.m4, m4/strcase.m4,
  4088. m4/strtoimax.m4, m4/strtol.m4, m4/strtoll.m4, m4/strtoul.m4,
  4089. m4/strtoull.m4, m4/strtoumax.m4, m4/tm_gmtoff.m4, m4/uintmax_t.m4,
  4090. m4/unlocked-io.m4, m4/xalloc.m4, m4/xgetcwd.m4, m4/xstrtol.m4,
  4091. po/LINGUAS, po/Makevars, po/Rules-quot, po/boldquot.sed,
  4092. po/[email protected], po/[email protected], po/en_GB.po,
  4093. po/insert-header.sin, po/remove-potcdate.sin, po/stamp-po: New files.
  4094. * ABOUT-NLS, INSTALL, lib/addext.c, lib/alloca.c, lib/argmatch.c,
  4095. lib/argmatch.h, lib/backupfile.c, lib/backupfile.h, lib/dirname.c,
  4096. lib/dirname.h, lib/error.c, lib/exclude.c, lib/exclude.h,
  4097. lib/fnmatch.h, lib/full-write.c, lib/full-write.h, lib/getdate.h,
  4098. lib/getdate.y, lib/getline.c, lib/getline.h, lib/getopt.c,
  4099. lib/getopt.h, lib/getopt1.c, lib/hash.c, lib/hash.h, lib/human.c,
  4100. lib/human.h, lib/lchown.c, lib/malloc.c, lib/mktime.c,
  4101. lib/modechange.c, lib/modechange.h, lib/quote.c, lib/quote.h,
  4102. lib/quotearg.c, lib/quotearg.h, lib/realloc.c, lib/safe-read.c,
  4103. lib/safe-read.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
  4104. lib/savedir.h, lib/strcasecmp.c, lib/utime.c, lib/xalloc.h,
  4105. lib/xgetcwd.c, lib/xmalloc.c, lib/xstrdup.c, lib/xstrtol.c,
  4106. lib/xstrtol.h, lib/xstrtoumax.c, m4/codeset.m4, m4/d-ino.m4,
  4107. m4/error.m4, m4/fnmatch.m4, m4/getcwd.m4, m4/getline.m4, m4/gettext.m4,
  4108. m4/glibc21.m4, m4/iconv.m4, m4/inttypes.m4, m4/lcmessage.m4,
  4109. m4/longlong.m4, m4/malloc.m4, m4/mbrtowc.m4, m4/mbstate_t.m4,
  4110. m4/progtest.m4, m4/realloc.m4, m4/strerror_r.m4, m4/ulonglong.m4,
  4111. m4/utimbuf.m4, m4/utime.m4, m4/utimes.m4, m4/xstrtoumax.m4,
  4112. po/Makefile.in.in:
  4113. Upgrade to latest version from external source. The file "bootstrap"
  4114. now grabs these automatically, so we needn't keep track of them
  4115. in this change long any longer.
  4116. * Makefile.am (AUTOMAKE_OPTIONS): Remove. Now done by configure.ac.
  4117. (SUBDIRS): Remove intl.
  4118. * PORTS: Update for star, Macintosh.
  4119. * README, README-alpha: Suggest Autoconf 2.57, Automake 1.7.5,
  4120. Bison 1.875, gettext 0.12.1.
  4121. * THANKS: Add Bernhard Rosenkraenzer, Solar Designer.
  4122. * configure.ac (AC_INIT, AM_INIT_AUTOMAKE): Convert to modern form.
  4123. (AC_CONFIG_AUX_DIR): New.
  4124. (AC_CONFIG_HEADERS): Rename config.h.in to config.hin, to be more
  4125. like coreutils.
  4126. (AC_PREREQ): Bump from 2.52 to 2.57.
  4127. (AC_GNU_SOURCE): New.
  4128. (AC_PROG_GCC_TRADITIONAL, AM_C_PROTOTYPES, AC_C_CONST): Remove;
  4129. we no longer support K&R C.
  4130. (YACC): Remove.
  4131. (AC_CHECK_HEADERS): Remove limits.h, poll.h, stdbool.h, stropts.h,
  4132. sys/ioccom.h, sys/param.h, sys/time.h, sys/timeb.h, wchar.h, wctype.h.
  4133. (AC_MBSTATE_T): Remove.
  4134. (HAVE_UTIME_H, HAVE_DECL_FREE, HAVE_DECL_GETGRGID, HAVE_DECL_GETPWUID,
  4135. HAVE_DECL_GETENV, HAVE_DECL_MALLOC, HAVE_DECL_STRTOUL,
  4136. HAVE_DECL_STRTOULL, HAVE_MKNOD): Remove our special code.
  4137. (AM_STDBOOL_H): Add.
  4138. (AC_HEADER_TIME, AC_STRUCT_TIMEZONE,
  4139. jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Remove.
  4140. (AC_CHECK_TYPE): Remove ssize_t.
  4141. (gt_TYPE_SSIZE_T): Add.
  4142. (jm_AC_PREREQ_XSTRTOUMAX, jm_PREREQ_ADDEXT, jm_PREREQ_ERROR,
  4143. jm_PREREQ_HUMAN, jm_PREREQ_QUOTEARG, jm_PREREQ_XGETCWD,
  4144. AC_FUNC_ALLOCA, AC_FUNC_CLOSEDIR_VOID, AC_FUNC_STRERROR_R,
  4145. AC_FUNC_FNMATCH, AC_FUNC_VPRINTF, AM_FUNC_GETLINE, jm_FUNC_MALLOC,
  4146. jm_FUNC_MKTIME, jm_FUNC_REALLOC):
  4147. Remove. Switch to gnulib macros like gl_BACKUPFILE instead.
  4148. (tar_LDADD): Rename to LIB_CLOCK_GETTIME. All uses changed.
  4149. (rmt_LDADD): Rename to LIB_SETSOCKOPT. All uses changed.
  4150. (AC_CHECK_FUNCS): Remove fchdir, ftime, getcwd, isascii, nap,
  4151. napms, poll, select, strstr, usleep.
  4152. (AC_REPLACE_FUNCS): Remove ftruncate, lchown, memset, rename,
  4153. rmdir, strcasecmp, strncasecmp, strtol, strtoul.
  4154. (AM_GNU_GETTEXT): Use external and need-ngettext options.
  4155. (AM_GNU_GETTEXT_VERSION): New.
  4156. (AC_OUTPUT): Remove intl/Makefile.
  4157. * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove.
  4158. ($(srcdir)/tar.info, tar.dvi): Remove obsolete warnings.
  4159. * doc/fdl.texi: Update to current GNU version.
  4160. * doc/gettext.texi: Update to current coreutils version,
  4161. plus a copyright notice.
  4162. * doc/tar.texi: Switch to new method for doing copyright notices.
  4163. Use @acronym instead of @sc where appropriate.
  4164. Remove empty examples. Give a few more examples.
  4165. * lib/Makefile.am (AUTOMAKE_OPTIONS): Remove.
  4166. (EXTRA_DIST, libtar_a_SOURCES): Switch to gnulib, so that they
  4167. are built up in pieces with +=.
  4168. (noinst_HEADERS, INCLUDES): Remove.
  4169. (BUILT_SOURCES, MAINTAINERCLEANFILES, MOSTLYCLEANFILES): New.
  4170. (libtar_a_LIBADD): Use $ rather than @.
  4171. (all-local, alloca.h, fnmatch.h, stdbool.h): New rules, from gnulib.
  4172. * m4/Makefile.am (EXTRA_DIST): Add alloca.m4, backupfile.m4,
  4173. bison.m4, chown.m4, dirname.m4, dos.m4, exclude.m4, fileblocks.m4,
  4174. ftruncate.m4, getdate.m4, getopt.m4, hash.m4, human.m4,
  4175. intdiv0.m4, intmax_t.m4, inttypes_h.m4, inttypes-pri.m4,
  4176. isc-posix.m4, lcown.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
  4177. memset.m4, mktime.m4, modechange.m4, nls.m4, onceonly.m4,
  4178. pathmax.m4, po.m4, quotearg.m4, quote.m4, rmdir.m4, safe-read.m4,
  4179. safe-write.m4, save-cwd.m4, savedir.m4, ssize_t.m4, stdbool.m4,
  4180. stdint_h.m4, strcase.m4, strtoimax.m4, strtoll.m4, strtol.m4,
  4181. strtoull.m4, strtoul.m4, strtoumax.m4, tm_gmtoff.m4, uintmax_t.m4,
  4182. unlocked-io.m4, xalloc.m4, xgetcwd.m4, xstrtol.m4.
  4183. Remove c-bs-a.m4, ccstdc.m4, check-decl.m4, decl.m4, jm-mktime.m4,
  4184. prereq.m4, xstrtoimax.m4.
  4185. * po/POTFILES.in: Remove tests/genfile.c; it doesn't need to
  4186. be translated, since it's not a user-visible tool.
  4187. * scripts/Makefile.am (AUTOMAKE_OPTIONS): Remove.
  4188. * src/Makefile.am (AUTOMAKE_OPTIONS): Remove.
  4189. (INCLUDES): Remove ../intl. Put top-srcdir before ., for
  4190. consistency with coreutils.
  4191. (LDADD): Link LIBINTL after libtar.a, since
  4192. it's now external and should stand by itself.
  4193. * src/buffer.c (print_total_written): Adjust to new human.h
  4194. interface.
  4195. (child_open_for_compress): Do not increase size to BLOCKSIZE.
  4196. (open_archive): Open index file name.
  4197. Strip trailing slashes from file names.
  4198. (flush_write): Set size to 0 if not saving names.
  4199. (flush_write, flush_read): Use safer_name_suffix rather than
  4200. inline code.
  4201. * src/common.h: Include <quote.h>.
  4202. (absolute_names_option, atime_preserve_option, backup_option,
  4203. block_number_option, checkpoint_option, dereference_option,
  4204. force_local_option, ignore_failed_read_option, ignore_zeros_option,
  4205. incremental_option, interactive_option, multi_volume_option,
  4206. numeric_owner_option, one_file_system_option, recursive_unlink_option,
  4207. read_full_records_option, remove_files_option, same_order_option,
  4208. show_omitted_dirs_option, sparse_option, starting_file_option,
  4209. to_stdout_option, totals_option, touch_option, verify_option,
  4210. dev_null_output, now_verifying, we_are_root): Now bool, not int.
  4211. (current_trailing_slash, index_file_name, recent_long_name_blocks,
  4212. recent_long_link_blocks): New vars.
  4213. (NO_OVERWRITE_DIR_OLD_FILES): New constant.
  4214. (OVERWRITE_OLD_DIRS): Remove.
  4215. (enum remove_option): New enum.
  4216. (remove_any_file): Use it as option arg, not int.
  4217. (is_avoided_name, contains_dot_dot): Return bool, not int.
  4218. (safer_name_suffix): New decl.
  4219. * src/compare.c (now_verifying): Now bool, not int.
  4220. (fill_in_sparse_array): Move to extract.c. Now returns bool;
  4221. all callers changed to test for failure.
  4222. (diff_sparse_files): Take size from current_stat, not from param.
  4223. (diff_archive): Do not count trailing slashes in archives.
  4224. (verify_volume): Test for header failure after loop, not before.
  4225. * src/create.c (relativize): Remove; replaced by safer_name_suffix.
  4226. All callers changed.
  4227. (start_header): Clear devmajor and devminor fields, too.
  4228. (finish_header): New arg block_ordinal.
  4229. (init_sparsearray): Now extern. Set sp_array_size to
  4230. SPARSES_IN_OLDGNU_HEADER if it is zero.
  4231. (dump_file): Keep link table as a hash.
  4232. Do not count "file changed as we read it" as a failure.
  4233. * src/delete.c (recent_long_name_blocks, recent_long_link_blocks):
  4234. Move extern decl to common.h.
  4235. * src/extract.c (we_are_root): Now bool, not int.
  4236. (check_time): Warn about implausibly old time stamps.
  4237. (set_stat): Use utimbuf, not stat_info.
  4238. (prepare_to_extract): New arg DIRECTORY.
  4239. (fill_in_sparse_array): Moved here from compare.c.
  4240. (extract_sparse_file): Now returns off_t, giving size left.
  4241. Truncate file at end.
  4242. (extract_archive): Use safer_name_suffix rather than rolling our own.
  4243. Use fill_in_sparse_array rather than rolling our own.
  4244. Strip trailing slashes more effectively.
  4245. Check for unsafe names.
  4246. * src/incremen.c (struct directory): nfs and found are now of type
  4247. bool, not int.
  4248. (gnu_restore): Now takes directory name as argument, not offset
  4249. of directory name in a global. All uses changed.
  4250. (CURRENT_FILE_NAME): Remove.
  4251. New tests.
  4252. * tests/delete04.sh, tests/multiv01.sh, tests/options.sh: New
  4253. files.
  4254. 2002-09-30 Paul Eggert <[email protected]>
  4255. * src/rmt.c (prepare_input_buffer): Renamed form
  4256. prepare_record_buffer. All uses changed. Do not assume that
  4257. size_t is the same width as int.
  4258. 2002-03-29 Paul Eggert <[email protected]>
  4259. * src/incremen.c (get_directory_contents):
  4260. If ignore_failed_read_option, only warn about
  4261. get_directory_contents failures. Fix suggested by
  4262. Mark Costlow.
  4263. 2002-01-31 Mark W. Eichin <[email protected]>
  4264. * src/buffer.c (child_open_for_compress): Don't try to read
  4265. past the end of the buffer.
  4266. 2001-10-11 Jim Meyering <[email protected]>
  4267. * argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
  4268. and quote_n (1, ... to avoid clobbering a buffer.
  4269. 2001-09-26 Paul Eggert <[email protected]>
  4270. * NEWS, configure.ac (AM_INIT_AUTOMAKE): Version 1.13.25.
  4271. * src/buffer.c (flush_read): Don't diagnose partial blocks before
  4272. end of file; just ignore them silently.
  4273. * src/list.c (read_header): Don't keep around extended name
  4274. and link info indefinitely; keep it only for the next file.
  4275. This fixes a bug introduced in 1.13.24, and removes the need
  4276. for some static variables. Set recent_long_name and
  4277. recent_long_link to zero if there were no long links; this
  4278. avoids a violation of ANSI C rules for pointers in delete.c.
  4279. * THANKS: Add Christian Laubscher.
  4280. 2001-09-26 Jim Meyering <[email protected]>
  4281. * doc/tar.texi (Remote Tape Server): is know -> is known
  4282. 2001-09-25 Paul Eggert <[email protected]>
  4283. * lib/unicodeio.c (EILSEQ): Include <iconv.h> first, since
  4284. <iconv.h> may define EILSEQ (e.g. libiconv). Define a
  4285. replacement EILSEQ to be ENOENT, not EINVAL, since callers may
  4286. want to distinguish EINVAL and EILSEQ.
  4287. 2001-09-24 Christophe Kalt <[email protected]>
  4288. * src/extract.c (maybe_recoverable):
  4289. Treat OVERWRITE_OLD_DIRS like DEFAULT_OLD_FILES.
  4290. 2001-09-22 Paul Eggert <[email protected]>
  4291. * NEWS, configure.ac (AM_INIT_AUTOMAKE): Version 1.13.24.
  4292. * ABOUT-NLS, intl/*: Update to gettext-0.10.40, replacing LGPL
  4293. with GPL.
  4294. * INSTALL, mkinstalldirs: Update to autoconf 2.52 version.
  4295. * PORTS: Add copyright notice, 'star' reference.
  4296. * README-alpha: Add copyright notice, autoconf 2.52 patch.
  4297. * THANKS: Add Christophe Kalt.
  4298. * config.sub: Upgrade to 2001-09-14 version.
  4299. * configure.ac (ALL_LINGUAS): Add ko.
  4300. * po/ko.po: Resurrected file.
  4301. * doc/convtexi.pl: Add coding advice for Emacs.
  4302. * doc/getdate.texi: Add copyright notice.
  4303. * doc/mdate-sh: Upgrade to automake 1.5 version.
  4304. * doc/tar.texi (extracting files): Mention --to-stdout.
  4305. (Option Summary, Dealing with Old Files): New option --overwrite-dir.
  4306. (Overwrite Old Files): Likewise.
  4307. * lib/Makefile.am (noinst_HEADERS):
  4308. Remove copysym.h. Add print-copyr.h, unicodeio.h.
  4309. (libtar_a_SOURCES): Remove copysym.c, Add print-copyr.c, unicodeio.c.
  4310. * lib/copysym.c, lib/copysym.h: Remove.
  4311. * lib/print-copyr.c, lib/print-copyr.h, lib/unicodeio.c,
  4312. lib/unicodeio.h: New files.
  4313. * lib/error.c, lib/getopt.c, lib/getopt.h, lib/getopt1.c,
  4314. lib/mktime.c, lib/strtoll.c: Switch from LGPL to GPL.
  4315. * lib/quotearg.c (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
  4316. (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
  4317. * m4/Makefile.am (EXTRA_DIST): Remove isc-posix.m4.
  4318. * m4/isc-posix.m4: Remove.
  4319. * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit.
  4320. * po/POTFILES.in: Add copyright notice.
  4321. * src/Makefile.am (LDADD): Like libtar.a before @INTLLIBS@ as
  4322. well as after.
  4323. * tests/Makefile.am (LDADD): Likewise.
  4324. * src/buffer.c (write_archive_buffer, close_archive):
  4325. If an archive is a socket, treat it like a FIFO.
  4326. (records_read, records_written): New vars.
  4327. (write_archive_to_stdout): Now bool, not int.
  4328. (open_archive, flush_write, flush_read): Keep records_read and
  4329. records_written up to date.
  4330. * src/common.h (enum old_files): New value OVERWRITE_OLD_DIRS.
  4331. (write_archive_to_stdout): Now bool, not int.
  4332. (enum read_header): New value HEADER_SUCCESS_EXTENDED.
  4333. (read_header): Now takes bool arg. Existing callers modified
  4334. to pass 0, unless otherwise specified.
  4335. * src/delete.c (records_read): Remove; now a global.
  4336. (acting_as_filter): Now bool, not int.
  4337. (recent_long_name, recent_long_link, recent_long_name_blocks,
  4338. recent_long_link_blocks, records_read, records_written): New decls.
  4339. (records_skipped): New var.
  4340. (move_archive): Don't divide by zero if arg is 0.
  4341. Use the above vars to compute how far to move.
  4342. (write_recent_blocks): New function.
  4343. (delete_archive_member): Pass 1 to read_header, so that it doesn't
  4344. read more than 1 block. Handle resulting HEADER_SUCCESS_EXTENDED code.
  4345. Keep track of how many records have been skipped.
  4346. Let the buffer code count records.
  4347. When copying a header, copy any extended headers that came before it.
  4348. * src/extract.c (extract_archive): When marking a directory to be
  4349. updated after symlinks, stat all directories after it in the
  4350. delayed-set-stat list too, since they will be checked after
  4351. symlinks. Add support for --overwrite-dir.
  4352. * src/list.c (recent_long_name, recent_long_link,
  4353. recent_long_name_blocks, recent_long_link_blocks): New vars.
  4354. (read_and): Pass 0 to read_header.
  4355. (read_header): New arg RAW_EXTENDED_HEADERS. Store away extended
  4356. headers into new vars. Null-terminate incoming symbolic links.
  4357. * src/rmt.c: Include print-copyr.h, not copysym.h.
  4358. (main): Use print_copyright, not copyright_symbol.
  4359. * src/tar.c (decode_options): Likewise.
  4360. (OVERWRITE_DIR_OPTION): New constant.
  4361. (long_options, usage, decode_options): Add --overwrite-dir.
  4362. * src/tar.h: Put copyright notice into documentation.
  4363. * tests/Makefile.am (TESTS): Add delete03.sh.
  4364. * tests/delete03.sh: New file.
  4365. * tests/genfile.c: Include print-copyr.h, not copysym.h.
  4366. (main): Use print_copyright, not copyright_symbol.
  4367. Include <argmatch.h>.
  4368. (pattern_strings): Remove.
  4369. (pattern_args, pattern_types): New constants.
  4370. (main): Use XARGMATCH, not argmatch.
  4371. 2001-09-20 Jim Meyering <[email protected]>
  4372. * lib/xstrtol.c (strtoimax): Guard declaration with
  4373. `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
  4374. The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
  4375. have their own, conflicting declaration of strtoimax in sys/inttypes.h.
  4376. (strtoumax): Likewise, for completeness (it wasn't necessary).
  4377. * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
  4378. Check for declaration of strtoimax.
  4379. * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
  4380. Check for declaration of strtoumax.
  4381. 2001-09-16 Paul Eggert <[email protected]>
  4382. * fnmatch.m4 (jm_FUNC_FNMATCH): Fix typo in previous patch: yes -> no.
  4383. 2001-09-14 Paul Eggert <[email protected]>
  4384. * NEWS, configure.ac (AC_INIT_AUTOMAKE): Version 1.13.23.
  4385. * README-alpha: Describe automake patch.
  4386. * configure.ac (LIBOBJS):
  4387. Remove automake 1.4 workaround, as we're using 1.5 now.
  4388. (USE_INCLUDED_LIBINTL): New AC_DEFINE.
  4389. * lib/copysym.c: Include stddef.h, for size_t.
  4390. Include langinfo.h if needed.
  4391. Use locale_charset only if USE_INCLUDED_LIBINTL;
  4392. if not, use nl_langinfo (CODESET) if available.
  4393. 2001-09-13 Paul Eggert <[email protected]>
  4394. * config.guess, config.sub: Sync with canonical versions.
  4395. * configure.ac (jm_PREREQ_XGETCWD): Add.
  4396. * lib/Makefile.am (noinst_HEADERS): Add copysym.h.
  4397. (libtar_a_SOURCES): Add copysym.c.
  4398. * copysym.c, copysym.h: New files.
  4399. * lib/error.c: Sync with fileutils version.
  4400. * m4/Makefile.am (EXTRA_DIST): Add getcwd.m4; remove uintmax_t.m4.
  4401. * m4/getcwd.m4: New file.
  4402. * m4/uintmax_t.m4: Remove.
  4403. * m4/gettext.m4 (AM_WITH_NLS):
  4404. Fix bug with calculating version of Bison 1.29.
  4405. Reported by Karl Berry.
  4406. * src/Makefile.am (datadir): Remove.
  4407. * src/rmt.c: Include copysym.h.
  4408. (main): Use copyright_symbol to translate copyright notice,
  4409. instead of gettext.
  4410. * src/tar.c: Likewise.
  4411. * tests/genfile.c: Likewise.
  4412. * src/system.h (MB_LEN_MAX): New symbol.
  4413. 2001-09-11 Paul Eggert <[email protected]>
  4414. * src/extract.c (struct delayed_set_stat): New member
  4415. 'after_symlinks'.
  4416. (delay_set_stat): Initialize it to 0.
  4417. (set_mode): New arg current_stat_info. Use it (if nonnull) to avoid
  4418. taking an extra stat ourselves. All callers changed.
  4419. (set_stat): Likewise.
  4420. (apply_nonancestor_delayed_set_stat): New arg 'after_symlinks'.
  4421. If false, stop when encountering a struct whose 'after_symlinks'
  4422. member is true. Otherwise, go through all structures but check
  4423. them more carefully. All callers changed.
  4424. (extract_archive): When extracting a deferred symlink, if its parent
  4425. directory's status needs fixing, then mark the directory as needing
  4426. to be fixed after symlinks.
  4427. (extract_finish): Fix status of ordinary directories, then apply
  4428. delayed symlinks, then fix the status of directories that are
  4429. ancestors of delayed symlinks.
  4430. * src/rtapelib.c (rexec):
  4431. Remove declaration; it ran afoul of prototypes on Crays.
  4432. Reported by Wendy Palm of Cray.
  4433. 2001-09-06 Paul Eggert <[email protected]>
  4434. * lib/strtoimax.c (HAVE_LONG_LONG):
  4435. Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
  4436. (strtoimax): Use sizeof (long), not
  4437. sizeof strtol (ptr, endptr, base),
  4438. to work around bug in IBM C compiler.
  4439. 2001-09-04 Paul Eggert <[email protected]>
  4440. * lib/xgetcwd.c: Include "xalloc.h".
  4441. (xgetcwd): Do not return NULL when memory is exhausted; instead,
  4442. report an error and exit.
  4443. * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
  4444. (jm_PREREQ): Use it.
  4445. 2001-09-03 Paul Eggert <[email protected]>
  4446. * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
  4447. (jm_PREREQ_XGETCWD): New macro.
  4448. * lib/exclude.c (fnmatch_no_wildcards):
  4449. Fix typo that caused us to do case-folding
  4450. search even when that was not desired. This occurred only in the
  4451. no-wildcard case.
  4452. * lib/xgetcwd.c: Include pathmax.h if not HAVE_GETCWD.
  4453. Do not include xalloc.h.
  4454. (INITIAL_BUFFER_SIZE): New symbol.
  4455. Do not use xmalloc / xrealloc, since the caller is responsible for
  4456. handling errors. Preserve errno around `free' during failure.
  4457. Do not overrun buffer when using getwd.
  4458. * lib/xgetcwd.c (xgetcwd):
  4459. Use HAVE_GETCWD_NULL, not defined __GLIBC__ && __GLIBC__ >= 2,
  4460. to decide whether to use getcwd (NULL, 0).
  4461. 2001-09-02 Paul Eggert <[email protected]>
  4462. * lib/xgetcwd.c: Fix typo in local var; from Jim Meyering.
  4463. 2001-09-01 Jim Meyering <[email protected]>
  4464. * exclude.c: Use `""', not `<>' to #include non-system header files.
  4465. (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
  4466. and strncasecmp as r-values. Unixware didn't have declarations.
  4467. 2001-08-31 Jim Meyering <[email protected]>
  4468. * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
  4469. Use an initial, malloc'd, buffer of length 128 rather than
  4470. a statically allocated one of length 1024.
  4471. 2001-08-30 Paul Eggert <[email protected]>
  4472. * lib/utime.c: Include full-write.h.
  4473. * lib/xstrtol.c (strtoimax): New decl.
  4474. 2001-08-29 Paul Eggert <[email protected]>
  4475. * NEWS, configure.ac (AC_INIT_AUTOMAKE): Version 1.13.22.
  4476. * src/create.c (dump_file): Relativize link names before dumping.
  4477. This fixes a bug reported by Jose Pedro Oliveira.
  4478. * src/create.c (dump_file): Use offsetof when computing sizes for
  4479. struct hack; this avoids wasted space in some cases.
  4480. * src/incremen.c (note_directory, find_directory): Likewise.
  4481. * src/names.c (name_gather, addname): Likewise.
  4482. * src/extract.c (extract_archive): Use strcpy, not memcpy,
  4483. for consistency with other code that does similar things.
  4484. * src/names.c (name_gather): Likewise.
  4485. * src/names.c (read_name_from_file, name_next, name_gather,
  4486. add_hierarchy_to_namelist): Avoid quadratic behavior when
  4487. reallocating buffers. Check for buffer size overflow.
  4488. (addname): Avoid unnecessary clearing of memory.
  4489. 2001-08-29 "Jan D." <[email protected]>
  4490. * src/extract.c (delay_set_stat): Fix off-by-one error in file
  4491. name size allocation that caused core dumps.
  4492. 2001-08-28 Paul Eggert <[email protected]>
  4493. * NEWS, configure.ac (AC_INIT_AUTOMAKE): Version 1.13.21.
  4494. * configure.ac (GNU_SOURCE): Define to 1, not /**/.
  4495. (major_t, minor_t, ssize_t): Use new-style AC_CHECK_TYPE.
  4496. (daddr_t): Remove; no longer used.
  4497. (jm_PREREQ_HUMAN): Add.
  4498. * acconfig.h: Remove; no longer needed.
  4499. * config.guess, config.sub:
  4500. New files, from automake 1.5. Gettext 0.10.39 needs them.
  4501. * depcomp, missing, mkinstalldirs: Upgrade to automake 1.5.
  4502. * Makefile.am (AUTOMAKE_OPTIONS): Add dist-bzip2.
  4503. (SUBDIRS): Put intl before lib, as gettext requires.
  4504. * ABOUT-NLS: Upgrade to gettext 0.10.39.
  4505. * intl: Upgrade entire directory to gettext 0.10.39.
  4506. * m4/codeset.m4, m4/glibc21.m4, m4/iconv.m4:
  4507. New files, from gettext 0.10.39.
  4508. * m4/gettext.m4, m4/isc-posix.m4, m4/lcmessage.m4, m4/progtest.m4,
  4509. Upgrade to gettext 0.10.39,
  4510. * po/Makefile.in.in: Likewise, except fix a typo in its copying
  4511. permissions.
  4512. * po/cat-id-tbl.c, po/stamp-cat-id:
  4513. Remove; no longer used by gettext 0.10.39.
  4514. * po/ChangeLog: New file.
  4515. * doc/Makefile.am (EXTRA_DIST): Add freemanuals.texi.
  4516. $(srcdir)/tar.texi: Likewise.
  4517. * doc/freemanuals.texi: New file.
  4518. * doc/tar.texi (Free Software Needs Free Documentation): New appendix.
  4519. `fileds' -> `fields'
  4520. * doc/texinfo.tex: Upgrade to version 2001-07-25.07.
  4521. * lib/Makefile.am (EXTRA_DIST): Add strtoll.c, strtoimax.c.
  4522. (noinst_HEADERS): Add quote.h.
  4523. (libtar_a_SOURCES): Add quote.c, xstrtoimax.c.
  4524. * lib/exclude.c: Fix typo in '#include <stdint.h>' directive.
  4525. * lib/full-write.c, lib/savedir.c: Comment fix.
  4526. * lib/pathmax.h: Remove.
  4527. * lib/quote.c, lib/quote.h: New files.
  4528. * lib/xgetcwd.c: Don't include pathmax.h.
  4529. Include stdlib.h and unistd.h if available.
  4530. Include xalloc.h.
  4531. (xmalloc, xstrdup, free): Remove decls.
  4532. (xgetcwd): Don't assume sizes fit in unsigned.
  4533. Check for overflow when computing sizes.
  4534. Simplify reallocation code.
  4535. * lib/xmalloc.c: Quote failure tests.
  4536. * lib/strtoumax.c, lib/xstrtoimax.c: New files.
  4537. * lib/strtoimax.c: Renamed from strtouxmax.c. Make it more
  4538. similar to strtol.c.
  4539. (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.
  4540. (verify): New macro.
  4541. (strtoumax, uintmax_t, strtoull, strtol): Remove.
  4542. (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
  4543. (strtoimax): Renamed from strtoumax. All uses of unsigned values
  4544. changed to signed values. Check sizes at compile-time, not
  4545. run-time. Prefer strtol to strtoll if both work.
  4546. (main): Remove.
  4547. * lib/xstrtol.h (xstrtoimax): New decl.
  4548. * m4/Makefile.am (EXTRA_DIST):
  4549. Add codeset.m4, glibc21.m4, iconv.m4, inttypes.m4,
  4550. longlong.m4, xstrtoimax.m4.
  4551. * m4/inttypes.m4 (jm_AC_HEADER_INTTYPES_H):
  4552. Remove; now done by autoconf.
  4553. (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T): Replace with
  4554. Use AC_CHECK_TYPE instead of merely looking for the header.
  4555. * m4/uintmax_t.m4: Use shorter comment.
  4556. * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
  4557. Quote first arg of AC_DEFUN.
  4558. Require jm_AC_TYPE_INTMAX_T and jm_AC_TYPE_LONG_LONG since they
  4559. is needed to parse the include file.
  4560. Simplify logic behind the args to AC_REPLACE.
  4561. * src/Makefile.am (OMIT_DEPENDENCIES): Remove.
  4562. * src/ansi2knr.1, src/ansi2knr.c: Remove; wasn't being used.
  4563. * src/rmt.c (main):
  4564. Use "Copyright %d" to simplify the translator's job in the future.
  4565. Advise translator about circle-C.
  4566. * src/tar.c: (decode_options): Likewise.
  4567. * tests/genfile.c (main): Likewise.
  4568. 2001-08-28 Jim Meyering <[email protected]>
  4569. * lib/argmatch.c: Include "quote.h".
  4570. (argmatch_invalid): Quote the context.
  4571. * lib/dirname.c (dir_name): Fix typo on PC platforms.
  4572. * lib/backupfile.c, lib/basename.c, lib/dirname.c, lib/strtoul.c:
  4573. Use single-quote for local .h files.
  4574. * lib/error.h (__attribute__): Don't depend on __STRICT_ANSI__.
  4575. * lib/getopt.c, lib/getopt.h, lib/getopt1.c: Upgrade to recent
  4576. glibc versions.
  4577. * lib/getdate.y (get_date): Initialize tm_isdst to -1 before
  4578. invoking mktime the last time.
  4579. * lib/pathmax.h: Use #if rather than #ifdef for HAVE_UNISTD_H.
  4580. * lib/rename.c: Major rewrite by Volker Borchert to use system
  4581. rename function, but to work around problems with trailing
  4582. slashes.
  4583. * lib/strtoll.c: New file, from glibc.
  4584. * lib/strtoul.c: Update from glibc.
  4585. * lib/strtouxmax.c: Renamed from lib/strtoumax.c.
  4586. Add support for signed numbers, too.
  4587. (strtoul, strtoull): Do not declare if STRTOUXMAX_UNSIGNED
  4588. is not defined.
  4589. (strtol, strtoll): Declare as needed, if STRTOUXMAX_UNSIGNED is
  4590. not defined.
  4591. (strtoumax, uintmax_t, strtoull, strtoul): New macros.
  4592. (main): Use generic names in debugging output.
  4593. * lib/strtoimax.c: Plus add the following changes of my own:
  4594. (main): Use accurate names in debugging output.
  4595. * lib/xgetcwd.c (xgetcwd): Use getcwd if glibc 2 or later.
  4596. Don't use PATH_MAX.
  4597. * m4/c-bs-a.m4, m4/check-decl.m4, m4/d-ino.m4, m4/error.m4,
  4598. m4/getline.m4, m4/jm-mktime.m4, m4/malloc.m4, m4/mbrtowc.m4,
  4599. m4/mbstate_t.m4, m4/realloc.m4, m4/uintmax_t.m4, m4/utimbuf.m4,
  4600. m4/utime.m4, m4/utimes.m4:
  4601. Quote the first argument in each use of AC_DEFUN.
  4602. * m4/getline.m4: Don't use string.h.
  4603. * m4/inttypes.m4, m4/longlong.m4, m4/xstrtoimax.m4: New files.
  4604. * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): @%:@ -> #.
  4605. 2001-08-27 Paul Eggert <[email protected]>
  4606. * NEWS, configure.ac (AC_INIT_AUTOMAKE): Version 1.13.20.
  4607. The biggest change is the new --exclude semantics and options.
  4608. The basic idea was suggested by Gerhard Poul; thanks!
  4609. * NEWS: Describe new --exclude semantics and options, and bug fixes.
  4610. * README: ignfail.sh fails on some NFS hosts.
  4611. * NEWS, README, lib/xstrtol.h: Add copyright notice.
  4612. * Makefile.am (ACLOCAL_AMFLAGS): Add -I m4.
  4613. (M4DIR, ACINCLUDE_INPUTS, $(srcdir)/acinclude.m4):
  4614. Remove; the automake bug has been fixed.
  4615. * acinclude.m4: Remove.
  4616. * configure.ac: Renamed from configure.in.
  4617. (AC_PREREQ): Bump from 2.13 to 2.52.
  4618. (ALL_LINGUAS): Add id, tr. Remove ko, as po/ko.po (dated
  4619. 1997-05-30) has an encoding error.
  4620. (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf.
  4621. (AC_FUNC_FNMATCH): Use AC_CONFIG_LINKS, not AC_LINK_FILES.
  4622. * doc/fdl.texi: Update to current GNU version.
  4623. * doc/tar.texi: Put leading '*' in direntry.
  4624. Accommodate new gfdl sectioning.
  4625. New option --recursion (the default) that is the inverse of
  4626. --no-recursion.
  4627. New options --anchored, --ignore-case, --wildcards,
  4628. --wildcards-match-slash, and their negations (e.g., --no-anchored).
  4629. Along with --recursion and --no-recursion, these control how exclude
  4630. patterns are interpreted. The default interpretation of exclude
  4631. patterns is now --no-anchored --no-ignore-case --recursion
  4632. --wildcards --wildcards-match-slash.
  4633. * lib/Makefile.am (OMIT_DEPENDENCIES): Remove.
  4634. * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
  4635. (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
  4636. (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
  4637. Include if available.
  4638. (<xalloc.h>): Include
  4639. (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
  4640. (verify): New macro. Use it to verify that EXCLUDE macros do not
  4641. collide with FNM macros.
  4642. (struct patopts): New struct.
  4643. (struct exclude): Use it, as exclude patterns now come with options.
  4644. (new_exclude): Support above changes.
  4645. (new_exclude, add_exclude_file):
  4646. Initial size must now be a power of two to simplify overflow checking.
  4647. (free_exclude, fnmatch_no_wildcards): New function.
  4648. (excluded_filename): No longer requires options arg, as the options
  4649. are determined by add_exclude. Now returns bool, not int.
  4650. (excluded_filename, add_exclude):
  4651. Add support for the fancy new exclusion options.
  4652. (add_exclude, add_exclude_file): Now takes int options arg.
  4653. Check for arithmetic overflow when computing sizes.
  4654. (add_exclude_file): xrealloc might modify errno, so don't
  4655. realloc until after errno might be used.
  4656. * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
  4657. New macros.
  4658. (free_exclude): New decl.
  4659. (add_exclude, add_exclude_file): Now takes int options arg.
  4660. (excluded_filename): No longer requires options arg, as the options
  4661. are determined by add_exclude. Now returns bool, not int.
  4662. * lib/prepargs.c: Include <string.h>; required for C99 since
  4663. we use strlen.
  4664. * lib/quotearg.c:
  4665. BSD/OS 4.1 wchar.h requires FILE and struct tm to be declared.
  4666. * lib/xstrtol.h (_DECLARE_XSTRTOL): Improve quality of
  4667. diagnostic for LONGINT_INVALID_SUFFIX_CHAR.
  4668. * m4/Makefile.am (EXTRA_DIST): Add check-decl.m4, mbrtowc.m4.
  4669. Remove inttypes_h.m4, largefile.m4, mktime.m4.
  4670. * m4/inttypes_h.m4, m4/largefile.m4, m4/mktime.m4: Remove;
  4671. subsumed by Autoconf 2.50.
  4672. * m4/error.m4: Upgrade to serial 2.
  4673. * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Upgrade to serial 4, but
  4674. remove test for GNU C library. It's not correct, as some
  4675. older glibcs are buggy.
  4676. * m4/getline.m4, m4/malloc.m4: Upgrade to serial 4.
  4677. * m4/prereq.m4: Upgrade to serial 20, but then:
  4678. (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
  4679. (jm_PREREQ_EXCLUDE): New macro.
  4680. (jm_PREREQ_HUMAN): Remove jm_AC_HEADER_INTTYPES_H, as it is subsumed
  4681. by autoconf 2.5x.
  4682. * m4/realloc.m4: Upgrade to serial 4.
  4683. * m4/strerror_r.m4: Revert to serial 1002.
  4684. * m4/uintmax_t.m4: Upgrade to autoconf 2.5x.
  4685. * m4/utimes.m4: Upgrade to latest version (still "serial 3").
  4686. * m4/xstrtoumax.m4: Upgrade to serial 3, but then:
  4687. (jm_AC_PREREQ_XSTRTOUMAX): Remove jm_AC_HEADER_INTTYPES_H, as
  4688. it is now subsumed by autoconf. Add inttypes.h.
  4689. * po/cs.po, po/da.po, po/de.po, po/es.po, po/et.po, po/fr.po,
  4690. po/it.po, po/pl.po, po/sl.po, po/sv.po: Sync with translation project.
  4691. * src/buffer.c (new_volume): Stop if the script exits with an error.
  4692. * src/common.h (excluded_with_slash, excluded_without_slash):
  4693. Remove, replacing by:
  4694. (excluded): New decl.
  4695. (link_error): New decl.
  4696. (excluded_name): Now returns bool.
  4697. * src/extract.c:
  4698. (struct delayed_symlinks, extract_archive, apply_delayed_symlinks):
  4699. Support hard links to symbolic links.
  4700. (struct delayed_symlink): Remove 'names' member, replacing it with
  4701. 'sources' and 'target' member. All uses changed.
  4702. (struct string_list): New type.
  4703. (delayed_set_stat, extract_archive): Use offsetof when computing sizes
  4704. for struct hack; this avoids wasted space in some cases.
  4705. (extract_archive): Fix test for absolute pathnames and/or "..".
  4706. Use link_error to report errors for links.
  4707. Remove redundant trailing '/' at "really_dir", for all uses, not
  4708. just before invoking mkdir.
  4709. If overwriting old files, do not worry so much about existing
  4710. directories.
  4711. Fix mode computation in the case where the directory exists.
  4712. (apply_delayed_symlinks): If we can't make a hard link to a symbolic
  4713. link, make a copy of the symbolic link.
  4714. * src/incremen.c (get_directory_contents):
  4715. If ignore_failed_read_option, only warn about
  4716. stat failures.
  4717. * src/list.c (from_header): Do not issue a diagnostic if TYPE is zero.
  4718. However, check for error even for '-' or '+' case.
  4719. (print_header): Try parsing uids and gids as unsigned integers first,
  4720. and as a uid_t or gid_t only if that fails. This adds support for
  4721. listing positive uids and gids that are greater than UID_MAX and
  4722. GID_MAX.
  4723. * src/misc.c (link_error): New function.
  4724. * src/names.c (collect_and_sort_names):
  4725. If ignore_failed_read_option, only warn about
  4726. stat errors.
  4727. (excluded_name): Now returns bool. Simplify, as the fancy
  4728. features are now all in excluded_filename.
  4729. * src/rtapelib.c (base_name): Remove decl, as system.h now
  4730. declares it.
  4731. * src/system.h: Include stddef.h if available.
  4732. (offsetof): Declare if stddef.h doesn't.
  4733. Include <dirname.h>.
  4734. (FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now defined by dirname.h.
  4735. * src/tar.c (ANCHORED_OPTION, IGNORE_CASE_OPTION,
  4736. NO_ANCHORED_OPTION, NO_IGNORE_CASE_OPTION, NO_WILDCARDS_OPTION,
  4737. NO_WILDCARDS_MATCH_SLASH_OPTION, WILDCARDS_OPTION,
  4738. WILDCARDS_MATCH_SLASH_OPTION):
  4739. New enum values.
  4740. (long_options, usage, decode_options): Add support for --anchored,
  4741. --ignore-case, --no-anchored, --no-ignore-case, --no-wildcards,
  4742. --no-wildcards-match-slash, --recursion, --wildcards,
  4743. --wildcards-match-slash.
  4744. (decode_options): Implement the new way of interpreting exclude
  4745. patterns.
  4746. (usage): --newer-mtime takes a DATE operand. DATE may be a file name.
  4747. (OPTION_STRING, decode_options): Add -I, -y. Currently these options
  4748. just print error messages suggesting alternatives.
  4749. (add_filtered_exclude): Remove.
  4750. * tests/Makefile.am (TESTS): Alphabetize, except put version.sh first.
  4751. * tests/extrac04.sh (out): Remove
  4752. directory/subdirectory/file1, as the new semantics for
  4753. --exclude exclude it.
  4754. * tests/genfile.c (main): Don't use non-ASCII char in msgid.
  4755. 2001-08-12 Paul Eggert <[email protected]>
  4756. * lib/addext.c (<errno.h>): Include.
  4757. (errno): Declare if not defined.
  4758. (addext): Work correctly on the Hurd, where pathconf returns -1 and
  4759. leaves errno alone, because there is no limit. Also, work even if
  4760. size_t is narrower than long.
  4761. 2001-07-08 Paul Eggert <[email protected]>
  4762. * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
  4763. 2001-05-10 Paul Eggert <[email protected]>
  4764. * lib/addext.c (ISSLASH, base_name): Remove decls; now in dirname.h.
  4765. Include <backupfile.h> and <dirname.h> after size_t is defined.
  4766. (addext): Use base_len to trim redundant trailing slashes instead of
  4767. doing it ourselves.
  4768. * lib/backupfile.c (ISSLASH, base_name):
  4769. Remove decls; now in dirname.h.
  4770. Include <argmatch.h>, <backupfile.h>, <dirname.h> after size_t
  4771. is defined.
  4772. (find_backup_file_name): Rename locals to avoid new functions.
  4773. Use base_len instead of rolling it ourselves.
  4774. Work even if dirlen is 0.
  4775. Use a dir of '.' if given the empty string.
  4776. * lib/basename.c:
  4777. Do not include <stdio.h>, <assert.h>; no longer needed.
  4778. (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Remove; now in dirname.h.
  4779. Include <string.h>, <dirname.h>.
  4780. (base_name): Allow file names ending in slashes, other than names
  4781. that are all slashes. In this case, return the basename followed
  4782. by the slashes.
  4783. * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
  4784. (FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now in dirname.h.
  4785. (dir_len): Renamed from dirlen.
  4786. All callers changed.
  4787. * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
  4788. New macros.
  4789. (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
  4790. 2001-02-16 Paul Eggert <[email protected]>
  4791. * lib/quotearg.c (mbrtowc, mbrtowc, mbsinit):
  4792. Do not declare or define if HAVE_MBRTOWC,
  4793. since the test for HAVE_MBRTOWC now requires proper declarations.
  4794. * lib/alloca.c (malloc): Undef before defining.
  4795. 2001-02-13 Paul Eggert <[email protected]>
  4796. * src/compare.c (read_and_process): Use off_t for size.
  4797. From Maciej W. Rozycki.
  4798. 2001-01-26 Paul Eggert <[email protected]>
  4799. * lib/quotearg.c: Include stddef.h. From Jim Meyering.
  4800. 2001-01-12 Paul Eggert <[email protected]>
  4801. * NEWS, configure.in (AC_INIT_AUTOMAKE): Version 1.13.19.
  4802. * lib/savedir.h (savedir): Remove size arg.
  4803. * doc/tar.texi: Add @setchapternewpage odd.
  4804. Remove -I as an alias for -T, for now.
  4805. Add @dircategory.
  4806. Update copyright. Remove "Published by".
  4807. Dates beginning with / or . are taken to be file names.
  4808. * src/tar.c (<time.h>): Do not include;
  4809. (time): Do not declare.
  4810. (usage): Remove -I as an alias for -T.
  4811. (OPTION_STRING): Remove -I.
  4812. (decode_options): Dates that look like an absolute path name,
  4813. or that start with '.', are presumed to be file names whose
  4814. dates are taken.
  4815. Remove 'I' as an alias for 'T'.
  4816. Update copyright.
  4817. * src/extract.c (<time.h>): Do not include; system.h now does this.
  4818. (make_directories): Skip filesystem prefixes.
  4819. Don't assume '/' is the only separator.
  4820. (extract_sparse_file): Use new full_write semantics.
  4821. On write error, return instead of invoking skip_file.
  4822. Do not free sparsearray; caller does this now.
  4823. (apply_nonancestor_delayed_set_stat): Do not assume '/' is the only
  4824. separator.
  4825. (extract_archive): Don't assume file name lengths fit in int.
  4826. Report what got stripped from member name; it might be more than '/'.
  4827. Use new full_write semantics.
  4828. Do not pass redundant trailing "/" to mkdir, as POSIX does not allow
  4829. mkdir to ignore it.
  4830. Do not report mkdir error if old_files_option == KEEP_OLD_FILES.
  4831. * src/buffer.c (<time.h>): Do not include; system.h now does this.
  4832. (time): Remove decl; likewise.
  4833. (child_open_for_uncompress): Use new full_write semantics.
  4834. (flush_write): Use ISSLASH instead of testing for '/'.
  4835. (flush_read): Likewise.
  4836. * src/rmt.h (_remdev): Look for / anywhere in Path.
  4837. * src/misc.c (contains_dot_dot): Skip filesystem prefix.
  4838. Don't assume '/' is the only separator.
  4839. (safer_rmdir): Don't assume '/' is the only separator.
  4840. * src/compare.c (diff_archive): Don't assume '/' is the only separator.
  4841. * lib/dirname.h (dirlen): New decl.
  4842. * src/incremen.c (get_directory_contents):
  4843. Remove path_size arg; all callers changed.
  4844. Don't assume '/' is the only directory separator.
  4845. (gnu_restore): Work even if file name length doesn't fit in int.
  4846. * lib/addext.c (ISSLASH): New macro.
  4847. (addext): Trim any redundant trailing slashes.
  4848. * src/names.c (name_next):
  4849. Don't assume '/' is the only directory separator.
  4850. (namelist_match): Likewise.
  4851. (add_hierarchy_to_namelist): Remove dirsize arg.
  4852. Do not assume '/' is the only directory separator.
  4853. (new_name): Likewise.
  4854. * lib/Makefile.am (noinst_HEADERS): Add dirname.h, full-write.h.
  4855. (libtar_a_SOURCES): Add dirname.c.
  4856. * src/create.c (relativize):
  4857. New function, with much of old start_header's guts.
  4858. Handle filesystem prefixes.
  4859. (start_header): Use this new function.
  4860. (init_sparsearray): Don't bother to zero out the new array;
  4861. it's not needed.
  4862. (deal_with_sparse): Fix array allocation bug.
  4863. (create_archive): Don't assume '/' is the only separator.
  4864. (dump_file): Likewise.
  4865. Don't worry about leading / in symlink targets.
  4866. * lib/savedir.c (savedir):
  4867. Remove size arg; it wasn't portable. All callers changed.
  4868. * lib/utime.c (utime_null): Adjust to new full_write convention.
  4869. * configure.in (YACC): Avoid portability problem with Ultrix sh.
  4870. * lib/backupfile.c: Include <dirname.h>.
  4871. (ISSLASH): New macro.
  4872. (find_backup_file_name): Use dirlen to calculate directory lengths.
  4873. (max_backup_version): Strip redundant trailing slashes.
  4874. * src/common.h: Include <full-write.h>.
  4875. (get_directory_contents): No longer has size arg.
  4876. (gnu_restore): Arg is size_t, not int.
  4877. * src/system.h: Include <time.h>.
  4878. (time): Declare if not defined.
  4879. * lib/full-write.c: Include full-write.h, not safe-read.h.
  4880. full_write returns size_t, with short writes meaning failure.
  4881. All callers changed.
  4882. * src/rtapelib.c: Include full-write.h.
  4883. * src/rmt.c: Include full-write.h.
  4884. (main): Update copyright.
  4885. * doc/getdate.texi: Mention that only English is supported.
  4886. Show how to use "date" so that the output is acceptable to getdate.
  4887. Mention Z as an abbreviation for UTC.
  4888. * lib/full-write.h: New file.
  4889. * src/list.c: system.h now does time.h stuff.
  4890. * lib/dirname.c:
  4891. Use HAVE_STDLIB_H, not STDC_HEADERS, to decide whether to include
  4892. stdlib.h.
  4893. Do not include string.h, strings.h, or assert.h; no longer needed.
  4894. (strrchr, memrchr, malloc): Remove decls; no longer needed.
  4895. Include <xalloc.h>.
  4896. (base_name): New decl.
  4897. (BACKSLASH_IS_PATH_SEPARATOR): Remove.
  4898. (dir_name_r): Remove.
  4899. (dirlen): New function.
  4900. (dir_name): Use dirlen instead of dir_name_r.
  4901. (<string.h>, <strings.h>): Include only if test program.
  4902. (main): Use "return 0", not "exit (0)".
  4903. 2000-12-08 Paul Eggert <[email protected]>
  4904. * lib/dirname.h: New file.
  4905. 2000-11-02 Vesselin Atanasov <[email protected]>
  4906. * lib/fnmatch.c: Do not comment out all the code if we are using
  4907. the GNU C library, because in some cases we are replacing buggy
  4908. code in the GNU C library itself.
  4909. 2000-10-30 Paul Eggert <[email protected]>
  4910. * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
  4911. 2000-10-29 Paul Eggert <[email protected]>
  4912. * NEWS, configure.in (AC_INIT_AUTOMAKE): Version 1.13.18.
  4913. * src/tar.c: Include <fnmatch.h>, for FNM_LEADING_DIR.
  4914. 2000-10-28 Paul Eggert <[email protected]>
  4915. * doc/tar.texi: --no-recursion now applies to extraction, too.
  4916. * src/create.c (dump_file): no_recurse_option -> ! recursion_option
  4917. * src/names.c (namelist_match, excluded_name):
  4918. Do not match subfiles of a directory
  4919. if --no-recursion is specified.
  4920. * src/tar.c (NO_RECURSE_OPTION): Remove.
  4921. (long_options): Have getopt set the --no-recursion flag.
  4922. (decode_options): Initialize recursion_option to FNM_LEADING_DIR.
  4923. Remove case for NO_RECURSE_OPTION.
  4924. * src/common.h (recursion_option):
  4925. Renamed from no_recurse_option, with sense
  4926. negated, and with FNM_LEADING_DIR being the nonzero value.
  4927. * names.c (namelist_match): New function.
  4928. (name_match, name_scan): Use it to eliminate duplicate code.
  4929. (names_notfound): Remove special case for Amiga.
  4930. 2000-10-27 Paul Eggert <[email protected]>
  4931. * src/misc.c (read_error_details, read_warn_details,
  4932. read_fatal_details): Don't assume size_t is unsigned long.
  4933. * src/buffer.c (flush_read): If read_full_records_option, try to
  4934. fill the input buffer, as --delete -f - needs this.
  4935. 2000-10-24 Paul Eggert <[email protected]>
  4936. * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Port to autoconf 2.13.
  4937. * src/buffer.c (check_label_pattern):
  4938. Make sure header name is a string before
  4939. passing it to fnmatch.
  4940. (init_volume_number): Check for global_volno overflow.
  4941. (new_volume): Check for global_volno overflow.
  4942. * src/tar.c (decode_options):
  4943. Check that volume label is not too long to overflow
  4944. name in tar header block.
  4945. * Makefile.am (EXTRA_DIST): Remove rebox.el.
  4946. * configure.in (HAVE_DECL_STRERROR_R): Remove our handwritten code.
  4947. (AC_FUNC_STRERROR_R): Use this instead.
  4948. 2000-10-23 Paul Eggert <[email protected]>
  4949. * src/extract.c: Include <time.h>, since we invoke "time".
  4950. * lib/prepargs.c (prepend_default_options):
  4951. Don't use NULL, for portability.
  4952. * m4/fnmatch.m4: Add "working" to message.
  4953. * src/names.c: (_GNU_SOURCE): Remove; autoconf now does this.
  4954. Include <hash.h>.
  4955. (getpwuid, getgrgid): Declare only if system headers don't.
  4956. (gid_to_gname): Don't invoke setgrent.
  4957. (namelist): Now static, not global.
  4958. (nametail): New var. All uses of namelast changed to use
  4959. nametail, with one extra level of indirection.
  4960. (name_gather): Use memcpy instead of strncpy + assignment of NUL.
  4961. (name_match): Set nametail too, when setting namelist to null.
  4962. (add_hierarchy_to_namelist): Change type of dir arg from char * to
  4963. struct name *, so that we don't have to look up the name again
  4964. here. Get change_dir from dir rather than as a separate arg. Add
  4965. dirsize arg, and pass it along to get_directory_contents. Remove
  4966. unnecessary check of directory type.
  4967. (new_name): Do not append a slash if PATH already ends in one.
  4968. (avoided_names, struct avoided_name): Remove.
  4969. (avoided_name_table): New var, replacing avoided_names.
  4970. (hash_avoided_name, compare_avoided_names): New function.
  4971. (add_avoided_name, is_avoided_name): Use hash table rather than
  4972. linked list.
  4973. * src/buffer.c (_GNU_SOURCE): Remove; autoconf now does this.
  4974. (child_open_for_compress, child_open_for_uncompress,
  4975. close_archive): Propagate any failure of the compression process
  4976. back to "tar".
  4977. (open_archive, flush_write, flush_read, close_archive): Do not
  4978. allocate an array of size PATH_MAX, as PATH_MAX might be (size_t)
  4979. -1. Instead, allocate an array with the size that's needed.
  4980. (open_archive): Don't bother checking S_ISCHR of /dev/null.
  4981. (backspace_output): Don't try to backspace past start of archive.
  4982. (close_archive): Remove special case for DELETE_SUBCOMMAND.
  4983. * acconfig.h (_GNU_SOURCE, DEFAULT_ARCHIVE, DEFAULT_BLOCKING,
  4984. DENSITY_LETTER, DEVICE_PREFIX, EMUL_OPEN3, HAVE_GETGRGID,
  4985. HAVE_GETPWUID, HAVE_MKNOD, HAVE_RTAPELIB, HAVE_ST_FSTYPE_STRING,
  4986. HAVE_UNION_WAIT, HAVE_UTIME_H, HAVE_VALLOC, MTIO_CHECK_FIELD, PACKAGE,
  4987. PROTOTYPES, REMOTE_SHELL, STD_INC_PATH, VERSION, WITH_CATALOGS,
  4988. WITH_DMALLOC, WITH_REGEX):
  4989. Remove; now generated automatically.
  4990. * configure.in (_GNU_SOURCE): Define to empty, not 1, for
  4991. compatibility for glibc fragments.
  4992. (_GNU_SOURCE, HAVE_UTIME_H, MTIO_CHECK_FIELD,
  4993. HAVE_ST_FSTYPE_STRING, HAVE_MKNOD, REMOTE_SHELL, DENSITY_LETTER,
  4994. DEVICE_PREFIX, DEFAULT_ARCHIVE, DEFAULT_BLOCKING): Add comment so
  4995. that we needn't put an entry into acconfig.h.
  4996. (ALL_LINGUAS): Add da.
  4997. (AC_C_BACKSLASH_A): Remove; jm_PREREQ_QUOTEARG now does this.
  4998. (AC_CHECK_HEADERS): Add stdbool.h (for hash.h users), wctype.h
  4999. (for strtol.c).
  5000. (AC_MBSTATE_T): Add.
  5001. (RMT): Append $(EXEEXT).
  5002. (HAVE_GETGRGID, HAVE_GETPWUID, pe_AC_TYPE_SIGNED_CHAR): Remove.
  5003. (HAVE_DECL_FREE, HAVE_DECL_GETGRGID, HAVE_DECL_GETPWUID,
  5004. HAVE_DECL_GETENV, HAVE_DECL_MALLOC, HAVE_DECL_STRTOUL,
  5005. HAVE_DECL_STRTOULL, HAVE_DECL_STRERROR_R): New macros.
  5006. (jm_PREREQ_ADDEXT, jm_PREREQ_ERROR, jm_PREREQ_QUOTEARG): Add.
  5007. (AC_REPLACE_FUNCS): Remove execlp; no longer needed.
  5008. (AC_CHECK_FUNCS): Add clock_gettime; AC_SEARCH_LIBS wasn't enough.
  5009. Remove mbrtowc; jm_PREREQ_QUOTEARG now does this.
  5010. (EMUL_OPEN3): Remove; no longer needed.
  5011. (DENSITY_LETTER, DEVICE_PREFIX): Simplify m4 quoting.
  5012. * m4/fnmatch.m4 (AC_FUNC_FNMATCH): Detect d*/*1 vs d/s/1 bug.
  5013. * src/common.h: Do not include basename.h.
  5014. * src/rtapelib.c (base_name): Do not include basename.h;
  5015. declare base_name instead.
  5016. * lib/basename.h, lib/execlp.c, lib/getpagesize.h, lib/mkdir.c:
  5017. Remove these files.
  5018. * lib/getstr.c, lib/getstr.h, lib/hash.h, lib/hash.h, lib/prepargs.c,
  5019. lib/prepargs.h, lib/savedir.c, lib/savedir.h: New files.
  5020. * lib/Makefile.am (EXTRA_DIST, noinst_HEADERS, libtar_a_SOURCES):
  5021. Adjust to the above changes.
  5022. * lib/Makefile.am (AUTOMAKE_OPTIONS): Remove ../src/ansi2knr.
  5023. * src/open3.c: Remove.
  5024. * src/Makefile.am (AUTOMAKE_OPTIONS): Remove ansi2knr.
  5025. (tar_SOURCES): Remove open3.c.
  5026. (INCLUDES): Remove -I.., as automake does that.
  5027. (OMIT_DEPENDENCIES): ../lib/fnmatch.h -> fnmatch.h. Add localedir.h.
  5028. The following changes are to put LOCALEDIR into localedir.h instead
  5029. of passing it on the command line.
  5030. (DEFS): Remove.
  5031. (DISTCLEANFILES): New macro.
  5032. (localedir.h): New rule.
  5033. (rmt.o tar.o): Now depend on localedir.h.
  5034. * tests/delete02.sh, tests/extrac04.sh: New files.
  5035. * tests/Makefile.am (AUTOMAKE_OPTIONS): Remove ansi2knr.
  5036. (TESTS): Add extrac04.sh, and restore delete02.sh.
  5037. (DEFS): Remove; LOCALEDIR is now done via localedir.h.
  5038. (INCLUDES): Remove -I.. as automake does this now.
  5039. * src/rtapelib.c (rexec): Don't declare unless using it.
  5040. (do_command): Simplify signal-handling code slightly.
  5041. * src/delete.c (blocks_needed): Remove. All uses changed to use
  5042. blocking_factor - new_blocks.
  5043. (acting_as_filter): New var.
  5044. (write_record, delete_archive_members): Use acting_as_filter
  5045. rather than archive == STDIN_FILENO to detect whether we're acting
  5046. as a filter, as open can return STDIN_FILENO in some cases.
  5047. (delete_archive_members): Ignore zero blocks if
  5048. ignore_zeros_option is nonzero. Fix bug that messed up last
  5049. output block: write_eot can't be used here, as it gets confused
  5050. when the input is at end of file.
  5051. * src/compare.c (diff_archive): Do not impose an arbitrary limit on
  5052. symbolic link contents length. Pass directory size to
  5053. get_directory_contents.
  5054. * m4/decl.m4, m4/error.m4, m4/mbstate_t.m4, m4/prereq.m4,
  5055. m4/strerror_r.m4: New files.
  5056. * m4/signedchar.m4: Remove this file.
  5057. * Makefile.am (ACINCLUDE_INPUTS): Adjust to above changes.
  5058. * m4/Makefile.am (EXTRA_DIST): Likewise.
  5059. * Makefile.am (DISTCLEANFILES): Add intl/libintl.h.
  5060. * po/da.po: New translation file.
  5061. * src/mangle.c (extract_mangle):
  5062. Fix diagnostic with wrong number of %s'es.
  5063. * lib/fnmatch.c (fnmatch):
  5064. Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
  5065. e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
  5066. * lib/full-write.c (full_write): Some buggy drivers return 0 when you
  5067. fall off a device's end. Detect this.
  5068. * src/system.h (IN_CTYPE_DOMAIN): Renamed from CTYPE_DOMAIN. All
  5069. uses changed.
  5070. (open): Remove macro; we no longer support EMUL_OPEN3. Do not
  5071. include <pathmax.h> and directory include files like <dirent.h>;
  5072. no longer used. Include <savedir.h> instead.
  5073. (closedir, signed_char): remove macro; no longer used.
  5074. (bool, false, true): Include <stdbool.h> if you have the include
  5075. file, otherwise define.
  5076. * src/misc.c:
  5077. (is_dot_or_dotdot, closedir_error, closedir_warn, opendir_error,
  5078. opendir_warn, readdir_error): Remove; no longer needed.
  5079. (safer_rmdir): Strip leading ./ (or .// or ./// or ././ or etc.)
  5080. before deciding whether we're trying to remove ".".
  5081. (remove_any_file): Try unlink first if we are not root. Use
  5082. savedir when recursively removing directories, to avoid exhausting
  5083. file descriptors.
  5084. (savedir_error, savedir_warn, symlink_error): New functions.
  5085. * src/list.c: (read_and): Do not invoke
  5086. apply_nonancestor_delayed_set_stat; DO_SOMETHING is now
  5087. responsible for that. Do not invoke apply_delayed_set_stat; our
  5088. caller is now responsible for that.
  5089. (read_header): Use signed char instead of signed_char. Prevent
  5090. later references to current_header from mistakenly treating it as
  5091. an old GNU header.
  5092. (from_header): Quote invalid base-64 strings in diagnostics.
  5093. (time_from_header): Do not warn about future timestamps in
  5094. archive; check_time now does that.
  5095. (print_header): Quote unknown file types.
  5096. (skip_member): New function, replacing skip_extended_headers and
  5097. now skipping the whole member instead of just the extended
  5098. headers. All callers changed. This makes the code handle
  5099. extended headers uniformly, and fixes some bugs.
  5100. * src/update.c (update_archive): Use skip_member.
  5101. * src/extract.c (we_are_root): Now global.
  5102. (struct delayed_symlink): New type.
  5103. (delayed_symlink_head): New var.
  5104. (extr_init, fatal_exit): Invoke extract_finish on fatal errors,
  5105. not apply_delayed_set_stat.
  5106. (set_mode, set_stat): Pointer args are now const pointers.
  5107. (check_time): New function.
  5108. (set_stat): Warn if setting a file's timestamp to be the future.
  5109. (make_directories): Do not save and restore errno.
  5110. (maybe_recoverable): Set errno to ENOENT if we cannot make missing
  5111. intermediate directories.
  5112. (extract_archive): Invoke apply_nonancestor_delayed_set_stat here,
  5113. not in caller. Extract potentially dangerous symbolic links more
  5114. carefully, deferring their creation until the end, and using a
  5115. regular file placeholder in the meantime. Do not remove trailing
  5116. / and /. from file names. Do not bother checking for ".." when
  5117. checking whether a directory loops back on itself, as loopbacks
  5118. can occur with symlinks too. Also, in that case, do not bother
  5119. saving and restoring errno; just set it to EEXIST.
  5120. (apply_nonancestor_delayed_set_stat): A prefix is a potential
  5121. ancestor if it ends in slash too (as well as ending in a char just
  5122. before slash).
  5123. (apply_delayed_set_stat): Remove.
  5124. (apply_delayed_symlinks, extract_finish): New functions.
  5125. * doc/fdl.texi: New file.
  5126. * doc/Makefile.am (EXTRA_DIST): Add fdl.texi.
  5127. ($(srcdir)/tar.info): Add fdl.texi. Invoke makeinfo with --no-split.
  5128. * doc/tar.texi: Add Free Documentation License. New section
  5129. "Overwrite Old Files", and revamp that section to make it easier to
  5130. follow. "tar" -> "GNU tar" where appropriate. Migrate getdate
  5131. documentation into getdate.texi. Fix several minor typos. Describe
  5132. TAR_OPTIONS. Describe incompatibility between incremental backups and
  5133. --atime-preserve. Describe incompatibility between --verify and other
  5134. options. Mention that tar normally removes symbolic links rather than
  5135. following them, when extracting a file of the same name.
  5136. * THANKS: Add gpoul. Change skip's address.
  5137. * po/POTFILES.in: Add lib/human.c.
  5138. * src/common.h (namelist, namelast): Remove decls.
  5139. (we_are_root, extract_finish, skip_member, savedir_error,
  5140. savedir_warn, symlink_error, gnu_list_name): New decls.
  5141. (apply_delayed_set_stat, apply_nonancestor_delayed_set_stat,
  5142. skip_extended_headers, is_dot_or_dotdot, closedir_error,
  5143. closedir_warn, opendir_error, opendir_warn, readdir_error,
  5144. readdir_warn): Remove decls.
  5145. (get_directory_contents): New off_t arg.
  5146. (addname): Now returns struct name *.
  5147. * src/tar.h, tests/genfile.c: Fix comments.
  5148. * src/create.c: Include hash.h.
  5149. (gnu_list_name): Remove decl.
  5150. (struct link): Remove "next" member.
  5151. (linklist): Remove.
  5152. (start_header): Say "leading `FOO'" rather than "`FOO' prefix" for
  5153. consistency with other diagnostics.
  5154. (deal_with_sparse): Check for I/O error when closing the file.
  5155. (create_archive): Do not allocate an array of size PATH_MAX, as
  5156. PATH_MAX might be (size_t) -1. Instead, allocate an array with
  5157. the size that's needed.
  5158. (hash_link, compare_links): New functions.
  5159. (dump_file): Do not exhaust open file descriptors when descending
  5160. deeply into a directory, by using savedir rather than
  5161. opendir/readdir. Do not zero-fill the name buffer unnecessarily.
  5162. Hash the set of links already created, instead of using a linked
  5163. list. Fix some bugs in outputting sparse files which caused the
  5164. sparse tables to be incorrect. When a file unexpectedly shrinks,
  5165. output zeros rather than garbage. Do not allocate an array of
  5166. size PATH_MAX, as PATH_MAX might be (size_t) -1. Instead,
  5167. allocate an array with the size that's needed.
  5168. * src/incremen.c: Include hash.h.
  5169. (struct directory): Remove "next", "dir_text". Change "name" to
  5170. be char[1] with struct hack, not const char *. Add "found".
  5171. (directory_list): Remove. Replaced by directory_table.
  5172. (directory_table): New var.
  5173. (nfs_string): Renamed from nfs.
  5174. (hash_directory, compare_directories): New functions.
  5175. (note_directory): Now returns struct directory *. First arg is
  5176. now const pointer. struct stat arg is now dev_t, ino_t, nfs.
  5177. Remove text arg. New "found" arg, basically corresponding to the
  5178. old text arg not being null. All callers changed.
  5179. (note_directory, find_directory): Use hash table rather than
  5180. linked list.
  5181. (get_directory_contents): New arg "device". Use savedir to do the
  5182. hard work. Save the nfs-ness of stat_data, since it might change
  5183. under us. Use note_directory instead of find_directory to save
  5184. some work. When adding an "A" record, do it with
  5185. add_to_accumulator instead of cheating with strcat.
  5186. (read_directory_file): Use "+" flag before device to indicate
  5187. whether it was NFS. Fix typo in checking for strtoul error.
  5188. (write_directory_file_entry): New function.
  5189. (write_directory_file): Use it, and use the hash routines to
  5190. traverse the directory table.
  5191. (gnu_restore): Use savedir rather than opendir/readdir.
  5192. * src/tar.c: Include localedir.h, prepargs.h.
  5193. (long_options): Now static.
  5194. (long_options, usage, decode_options): -j is now short for
  5195. --bzip2, and -I is now an alias for -T.
  5196. (decode_options, main): argv is not const pointer now.
  5197. (decode_options): Invoke prepend_default_options to support
  5198. TAR_OPTIONS. In diagnostic, mention the string that was the
  5199. invalid blocking factor, tape length, group, owner, or record
  5200. size. --delete is no longer incompatible with -f -, undoing
  5201. 2000-01-07 change.
  5202. (main): Invoke extract_finish at end of extraction.
  5203. * src/rmt.c: Include localedir.h.
  5204. (main): Update copyright date to 2000.
  5205. * doc/getdate.texi: New file, taken from fileutils 4.0.27, with the
  5206. following changes: Use @sc where appropriate. Document the ranges of
  5207. supported times more precisely. Add Eggert to getdate authors.
  5208. Document old Latin 12m/12pm tradition. Remove list of alphabetic time
  5209. zone names, as it wasn't correct and people shouldn't be relying on it
  5210. anyway. Relative items also account for non-DST adjustments. Fix
  5211. some misspellings.
  5212. * lib/prepargs.c, lib/prepargs.h, tests/extrac04.sh: New file.
  5213. * tests/ignfail.sh: opendir -> savedir in diagnostics.
  5214. * tests/preset.in: Set LANGUAGE to the empty string, for some
  5215. brain damaged host.
  5216. 2000-10-20 Paul Eggert <[email protected]>
  5217. * m4/fnmatch.m4: Mention the GNU C library.
  5218. 2000-10-19 Paul Eggert <[email protected]>
  5219. * m4/fnmatch.m4: Add a couple more test cases to catch bugs in
  5220. glibc 2.1.95.
  5221. 2000-10-17 Paul Eggert <[email protected]>
  5222. * lib/human.c (<limits.h>): Do not include; human.h does it if needed.
  5223. (CHAR_BIT): Remove.
  5224. * lib/human.h (<limits.h>): Include if HAVE_LIMITS_H.
  5225. (CHAR_BIT): Define if not defined.
  5226. 2000-09-09 Paul Eggert <[email protected]>
  5227. * lib/quotearg.c: From fileutils: rename ISASCII to IN_CTYPE_DOMAIN.
  5228. 2000-08-07 Paul Eggert <[email protected]>
  5229. * lib/xmalloc.c: Memory exhausted -> memory exhausted
  5230. * lib/xalloc.h (xalloc_msg_memory_exhausted):
  5231. change to array from char *.
  5232. 2000-08-06 Paul Eggert <[email protected]>
  5233. * m4/mbstate_t.m4: Define mbstate_t to be int, not char, for
  5234. compatibility with glibc 2.1.3 strftime.c.
  5235. 2000-07-31 Paul Eggert <[email protected]>
  5236. * lib/quotearg.c (quotearg_n_options):
  5237. Don't make the initial slot vector a constant,
  5238. since it might get modified.
  5239. * lib/quotearg.c: Add support for more than one preallocated slot.
  5240. 2000-07-30 Paul Eggert <[email protected]>
  5241. * lib/quotearg.c (quotearg_n_options):
  5242. Preallocate a slot 0 buffer, so that the caller
  5243. can always quote one small component of a "memory exhausted" message
  5244. in slot 0.
  5245. 2000-07-23 Paul Eggert <[email protected]>
  5246. * lib/quotearg.c:
  5247. Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX), so that
  5248. mbstate_t is always defined.
  5249. Do not inspect MB_LEN_MAX, since it's incorrectly defined to be 1 in
  5250. some GCC installations, and this configuration error is likely to be
  5251. common.
  5252. 2000-07-22 Paul Eggert <[email protected]>
  5253. * lib/quotearg.c:
  5254. When the system forces us to redefine mbstate_t, shadow its mbsinit
  5255. function. From Bruno Haible.
  5256. 2000-07-14 Paul Eggert <[email protected]>
  5257. * lib/xmalloc.c: Simplify exhausted message.
  5258. * lib/quotearg.h: Update copyright date; from Jim Meyering.
  5259. 2000-07-13 Paul Eggert <[email protected]>
  5260. * lib/quotearg.h (enum quoting style):
  5261. New constant clocale_quoting_style.
  5262. * lib/quotearg.c:
  5263. (quoting_style_args, quoting_style_vals, quotearg_buffer_restyled):
  5264. Add support for clocale_quoting_style, undoing previous change to
  5265. locale_quoting_style.
  5266. 2000-07-10 Paul Eggert <[email protected]>
  5267. * lib/quotearg.c:
  5268. <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX,
  5269. since otherwise we don't need it.
  5270. (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
  5271. since we don't do multibytes in that case.
  5272. (quotearg_buffer_restyled): If a unibyte locale, don't bother to
  5273. invoke multibyte primitives.
  5274. * m4/mbstate_t.m4 (AC_MBSTATE_T):
  5275. Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
  5276. Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
  5277. and mbstate_t, to a single-part test that simply defines mbstate_t.
  5278. * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
  5279. Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
  5280. to decide whether to define the BeOS workaround macro;
  5281. this adjusts to the change to AC_MBSTATE_T.
  5282. * m4/strerror_r.m4: New file.
  5283. 2000-07-05 Paul Eggert <[email protected]>
  5284. * lib/quotearg.c: Use double-quote to quote.
  5285. * lib/quotearg.c (N_): New macro.
  5286. (gettext_default): New function.
  5287. (quotearg_buffer_restyled): Use gettext_default ("{LEFT QUOTATION MARK}",
  5288. "\"") for left quote, and gettext_default ("{RIGHT QUOTATION MARK}", "\"")
  5289. for right quote.
  5290. * lib/quotearg.c (struct quoting_options):
  5291. Simplify quote_these_too dimension.
  5292. From Bruno Haible <[email protected]>.
  5293. * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT):
  5294. Test for mbstate_t only if the test
  5295. for an object-type mbstate_t fails.
  5296. * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
  5297. 2000-07-03 Paul Eggert <[email protected]>
  5298. * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
  5299. Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
  5300. * lib/quotearg.c (mbrtowc):
  5301. Assign to *pwc, and return 1 only if result is nonzero.
  5302. (iswprint): Define to ISPRINT if we are substituting our own mbrtowc.
  5303. 2000-07-02 Paul Eggert <[email protected]>
  5304. * lib/quotearg.c (mbstate_t):
  5305. Do not define; it should be defined with AC_CHECK_TYPE.
  5306. 2000-06-26 Paul Eggert <[email protected]>
  5307. * m4/mbstate_t.m4: Include stdio.h before wchar.h, to work around
  5308. a bug in glibc 2.1.3.
  5309. * lib/xmalloc.c: Fix inaccurate comment for xrealloc.
  5310. 2000-06-19 Paul Eggert <[email protected]>
  5311. * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
  5312. inclusion of wctype.h to work around solaris2.6 namespace pollution.
  5313. (ISPRINT): Likewise.
  5314. Reported by Tom Tromey.
  5315. 2000-06-15 Paul Eggert <[email protected]>
  5316. * lib/human.c (adjust_value): New function.
  5317. (human_readable_inexact): Apply rounding style even when printing
  5318. approximate values.
  5319. * lib/human.c: Avoid shadowing warnings.
  5320. From Jim Meyering.
  5321. 2000-06-14 Paul Eggert <[email protected]>
  5322. * lib/human.c (human_readable_inexact): Allow an input block size
  5323. that is not a multiple of the output block size, and vice versa.
  5324. * lib/getdate.y (get_date): Apply relative times after time zone
  5325. indicator, not before.
  5326. 2000-05-31 Paul Eggert <[email protected]>
  5327. * m4/largefile.m4: Rewrite so that we don't need to run getconf,
  5328. and thus don't need AC_CANONICAL_HOST.
  5329. (AC_SYS_LARGEFILE_FLAGS, AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
  5330. (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
  5331. (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
  5332. CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY. All uses
  5333. changed. Instead of inspecting the output of getconf, try to
  5334. compile the test program without and with the macro definition.
  5335. (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check for
  5336. getconf. Instead, check for the needed flags by compiling test
  5337. programs.
  5338. * configure.in (AC_CANONICAL_HOST): Remove; the largefile stuff no
  5339. longer needs it.
  5340. * config.guess, config.sub: Remove these files, for similar reasons.
  5341. 2000-05-03 Paul Eggert <[email protected]>
  5342. * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to be
  5343. 500, instead of _GNU_SOURCE to be 1, to work around glibc 2.1.3
  5344. bug. This avoids a clash when files like regex.c that define
  5345. _GNU_SOURCE.
  5346. 2000-05-02 Paul Eggert <[email protected]>
  5347. * m4/largefile.m4 (AC_SYS_LARGEFILE):
  5348. Define _GNU_SOURCE if this is needed to make
  5349. ftello visible (e.g. glibc 2.1.3). Use compile-time test, rather than
  5350. inspecting host and OS, to decide whether to define _LARGEFILE_SOURCE.
  5351. * lib/quotearg.c (mbrtowc, mbstat_t):
  5352. Add definitions if !HAVE_MBSTATE_T_OBJECT.
  5353. (<wctype.h>): Include if HAVE_WCTYPE_H.
  5354. (iswprint): Define to 1 if we lack it
  5355. 2000-04-18 Paul Eggert <[email protected]>
  5356. * m4/mbstate_t.m4: New file.
  5357. 2000-04-17 Bruno Haible <[email protected]>
  5358. * tests/ignfail.sh: Test for uid 0 along with user "root".
  5359. 2000-04-05 Paul Eggert <[email protected]>
  5360. * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS):
  5361. Don't use -n32 on IRIX if the installer said
  5362. otherwise.
  5363. 2000-02-28 Paul Eggert <[email protected]>
  5364. * lib/quotearg.c (ALERT_CHAR): New macro.
  5365. (quotearg_buffer_restyled): Use it.
  5366. 2000-02-23 Rainer Orth <[email protected]>
  5367. * src/list.c (tartime): Fix off-by-one error when copying year if
  5368. OLD_CTIME.
  5369. 2000-02-18 Paul Eggert <[email protected]>
  5370. * lib/getdate.y: Handle two-digit years with leading zeros correctly.
  5371. (textint): New typedef.
  5372. (parser_control): Changed from struct parser_control to typedef
  5373. (for consistency). Member year changed from int to textint. All
  5374. uses changed.
  5375. (YYSTYPE): Removed; replaced by %union with int and textint
  5376. members.
  5377. (tID): Removed; not used.
  5378. (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE,
  5379. tMERIDIAN, tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER,
  5380. tUNUMBER, tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
  5381. (tSNUMBER, tUNUMBER): Now of type <textintval>.
  5382. (date, number, to_year): Use width of number in digits, not its
  5383. value, to determine whether it's a 2-digit year, or a 2-digit
  5384. time.
  5385. (yylex): Store number of digits of numeric tokens. Return '?' for
  5386. unknown identifiers, rather than (unused) tID.
  5387. 2000-01-16 Paul Eggert <[email protected]>
  5388. * lib/quotearg.c (quotearg_buffer_restyled):
  5389. Do not quote alert, backslash, formfeed,
  5390. and vertical tab unnecessarily in shell quoting style.
  5391. 2000-01-15 Paul Eggert <[email protected]>
  5392. * m4/c-bs-a.m4:
  5393. Change quoting to be compatible with future autoconf versions.
  5394. 2000-01-11 Paul Eggert <[email protected]>
  5395. * lib/exclude.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Remove unused macros.
  5396. 2000-01-07 Paul Eggert <[email protected]>
  5397. * NEWS, configure.in (AC_INIT_AUTOMAKE): Version 1.13.17.
  5398. Fix bug with fnmatch.h dependency, as follows:
  5399. * src/Makefile.am (OMIT_DEPENDENCIES): New macro.
  5400. * lib/Makefile.am (OMIT_DEPENDENCIES): New macro.
  5401. * src/common.h (apply_nonancestor_delayed_set_stat):
  5402. Renamed from apply_delayed_set_stat.
  5403. (apply_delayed_set_stat, decode_mode, chmod_error_details,
  5404. chown_error_details, close_warn, closedir_warn, mkdir_error,
  5405. read_error_details, read_fatal_details, read_warn_details,
  5406. seek_error_details, seek_warn_details, utime_error,
  5407. write_error_details, write_fatal_details): New decls.
  5408. Make diagnostic messages more regular.
  5409. * src/create.c (dump_file): Quote file names with colons if possible.
  5410. * src/compare.c (diff_archive): Likewise.
  5411. * src/extract.c (repair_delayed_set_stat, extract_archive): Likewise.
  5412. * src/incremen.c (get_directory_contents, gnu_restore): Likewise.
  5413. * src/mangle.c (extract_mangle): Likewise.
  5414. * src/misc.c (call_arg_error, call_arg_fatal, call_arg_warn):
  5415. Likewise.
  5416. * src/buffer.c (archive_write_error, flush_archive, close_archive,
  5417. new_volume, xclose):
  5418. Use error message functions to report errors consistently.
  5419. * src/compare.c (diff_sparse_files, diff_archive): Likewise.
  5420. * src/create.c (finish_sparse_file, dump_file): Likewise.
  5421. * src/extract.c (set_mode, set_stat, extract_sparse_file,
  5422. extract_archive): Likewise.
  5423. * src/list.c (list_archive): Likewise.
  5424. * src/update.c (append_file): Likewise.
  5425. * src/compare.c (diff_init, diff_sparse_files):
  5426. Use xalloc_die to report memory exhaustion.
  5427. * src/incremen.c (gnu_restore): Likewise.
  5428. * src/list.c (read_header): Likewise.
  5429. * src/mangle.c (extract_mangle): Likewise.
  5430. * src/misc.c (maybe_backup_file): Likewise.
  5431. * src/tar.c (decode_options): Likewise.
  5432. * src/compare.c (read_and_process, fill_in_sparse_array,
  5433. diff_sparse_files):
  5434. Use consistent terminology for unexpected-EOF message.
  5435. * src/extract.c (extract_sparse_file, extract_archive): Likewise.
  5436. * src/list.c (list_archive, read_header, skip_file,
  5437. skip_extended_headers): Likewise.
  5438. * src/buffer.c (archive_write_error): Add noreturn attribute to decl.
  5439. (xdup2): Regularize messages with rest of tar.
  5440. * src/buffer.c (flush_read): Don't read past EOF.
  5441. * src/extract.c (extr_init):
  5442. If we run out of memory, invoke apply_delayed_set_stat.
  5443. (prepare_to_extract): Don't complain if we can't remove ".".
  5444. (apply_delayed_set_stat): New function.
  5445. (apply_nonancestor_delayed_set_stat):
  5446. Renamed from apply_delayed_set_stat. All uses changed.
  5447. Don't remove head if it doesn't apply.
  5448. * src/create.c (find_new_file_size):
  5449. Return size instead of storing through pointer.
  5450. All callers changed.
  5451. (deal_with_sparse): Don't keep reading after read errors.
  5452. (finish_sparse_file): Just abort if there is an internal error.
  5453. (dump_file): Fix typo: stat_warn and stat_error were interchanged.
  5454. Don't restore access times on directories during incremental dumps
  5455. until after dealing with the directory.
  5456. If ignoring failed reads, count closedir, read, and unknown
  5457. file errors as warnings, not errors.
  5458. Fix buffer overrun problem when dumping sparse files.
  5459. * src/list.c (read_and):
  5460. Invoke apply_nonancestor_delayed_set_stat on file names
  5461. after handling them.
  5462. (decode_mode): Remove; moved to misc.c.
  5463. * src/misc.c (safer_rmdir): New function.
  5464. (remove_any_file): Use it to avoid problems with rmdir(".").
  5465. (maybe_backup_file): Regularize diagnostics.
  5466. (undo_backup_file): Likewise.
  5467. (decode_mode): Moved here from list.c.
  5468. (chmod_error_details, chown_error_details, close_fatal,
  5469. close_warn, closedir_warn, mkdir_error, read_error_details,
  5470. read_warn_details, read_fatal_details, seek_error_details,
  5471. seek_warn_details, utime_error, write_error_details,
  5472. write_fatal_details): New functions.
  5473. * src/delete.c (save_record): Remove static variable (now local).
  5474. (move_archive): Don't position before start of archive.
  5475. (write_record): Abort if count is zero at inopportune time.
  5476. Plug memory leak.
  5477. * src/tar.c (decode_options): --delete and -f - are now
  5478. incompatible, since we didn't have time to fix their bugs.
  5479. * tests/Makefile.am (TESTS): Remove delete02.sh.
  5480. * tests/ignfail.sh: Adjust to new quoting scheme again.
  5481. 2000-01-06 Paul Eggert <[email protected]>
  5482. * lib/getdate.y: Sync tm_diff with the GNU C Library.
  5483. (TM_YEAR_BASE): Renamed from TM_YEAR_ORIGIN. All uses changed.
  5484. (tm_diff): Renamed from difftm. All uses changed.
  5485. Replace body with that taken from GNU C Library 2.1.3pre1.
  5486. (get_date): Prefer tm_gmtoff to tm_diff if available.
  5487. 1999-12-29 "Melissa O'Neill" <[email protected]>
  5488. * tests/incremen.sh: Invoke stat on newly created file so that its
  5489. ctime is updated on Nextstep.
  5490. 1999-12-21 Machael Stone <[email protected]>
  5491. * lib/getdate.y (get_date):
  5492. Fix typo when checking for time_t overflow in time zone calculations.
  5493. 1999-12-13 Paul Eggert <[email protected]>
  5494. * NEWS, configure.in (AC_INIT_AUTOMAKE): Version 1.13.16.
  5495. * README-alpha: New file.
  5496. * README: New sections for gzip and bzip2, Solaris.
  5497. Remove mention of BACKLOG.
  5498. * configure.in (AC_C_BACKSLASH_A): Add.
  5499. (AC_CHECK_HEADERS): Add wchar.h.
  5500. (AC_CHECK_FUNCS): Add mbrtowc.
  5501. (AC_FUNC_CLOSEDIR_VOID): Add.
  5502. * tests/Makefile.am (TESTS): Add delete02.sh.
  5503. (POSTPONED_TESTS): Remove.
  5504. (EXTRA_DIST): Remove $(POSTPONED_TESTS).
  5505. * tests/preset.in:
  5506. Set LC_ALL rather than LANGUAGE, LANG, and LC_MESSAGES.
  5507. * tests/ignfail.sh (err): Adjust to new quoting scheme.
  5508. * tests/delete02.sh: Fix typo: need to list archive2, not archive.
  5509. * tests/extrac03.sh: Use -P option, so that .. doesn't get diagnosed.
  5510. * src/tar.c ("quotearg.h"): New include.
  5511. (usage): Now has __attribute__ ((noreturn)).
  5512. (confirm): Report errno if we can't open tty.
  5513. (confirm, decode_options):
  5514. Quote arbitrary strings in diagnostics.
  5515. (OVERWRITE_OPTION): New constant.
  5516. (long_options, usage, decode_options): New --overwrite option.
  5517. (decode_options): --keep-old-files, --overwrite, and --unlink-first
  5518. are now mutually exclusive.
  5519. Don't assume that gettext preserves errno.
  5520. (main): Set default quoting style to escape_quoting_style.
  5521. * src/update.c (<quotearg.h>): New include.
  5522. (append_file):
  5523. Don't assume that gettext preserves errno.
  5524. Quote arbitrary strings in diagnostics.
  5525. Check for close error.
  5526. * src/names.c (<quotearg.h>): New include.
  5527. (name_init, name_next, name_close, names_notfound,
  5528. collect_and_sort_names): Don't assume that gettext preserves
  5529. errno. Quote arbitrary strings in diagnostics.
  5530. (excluded_name): Fix typo that caused empty patterns to be
  5531. mishandled.
  5532. * src/misc.c (<quotearg.h>): New include.
  5533. (quote_copy_string): Quote only newline and backslash; the output is no
  5534. longer meant for humans, and is locale-independent.
  5535. (contains_dot_dot): New function.
  5536. (remove_any_file): Don't use lstat; just rmdir the file and then use
  5537. unlink if the rmdir fails because the file isn't a directory.
  5538. Check for readdir and closedir errors.
  5539. (maybe_backup_file): Report "stat" for stat errors.
  5540. (maybe_backup_file, chdir_do):
  5541. Quote arbitrary strings in diagnostics.
  5542. (maybe_backup_file, undo_last_backup):
  5543. Don't assume that gettext preserves errno.
  5544. (call_arg_error, call_arg_fatal, call_arg_warn,
  5545. chdir_fatal, close_error, closedir_error, exec_fatal, mkfifo_error,
  5546. mknod_error, open_error, open_fatal, open_warn, opendir_error,
  5547. opendir_warn, read_error, read_fatal, readdir_error, readdir_warn,
  5548. readlink_error, readlink_warn, seek_error, seek_warn, stat_error,
  5549. stat_warn, truncate_error, truncate_warn, unlink_error, waitpid_error,
  5550. write_error, write_fatal, xfork, xpipe, quote_n, quote): New functions.
  5551. * src/system.h (__attribute__): New macro.
  5552. (O_NDELAY, O_NONBLOCK, O_APPEND): Remove.
  5553. (S_ISDOOR): New macro.
  5554. (closedir): New macro, if CLOSEDIR_VOID.
  5555. * src/rmt.c, src/rtapelib.c (decode_oflag):
  5556. O_APPEND might not be defined.
  5557. * src/list.c: (read_and, list_archive):
  5558. Quote arbitrary strings in diagnostics.
  5559. (from_header): Use locale_quoting_style to quote diagnostics.
  5560. (print_header, print_for_mkdir): Quote with quotearg, not quote_copy_string.
  5561. * src/rmt.h (REM_BIAS): Increase from 128 to (1 << 30).
  5562. * src/Makefile.am: Use ## for copyright comments.
  5563. * src/extract.c (<quotearg.h>): New include.
  5564. (enum permstatus): New enum.
  5565. (struct delayed_set_stat): file_name is now at end of buffer, to avoid
  5566. two mallocs. New members file_name_len, invert_permissions, permstatus.
  5567. (extr_init): Remove hack that silently adjusted newdir_umask.
  5568. (set_mode, set_stat): New args invert_permissions, permstatus, typeflag.
  5569. Use these args to decide whether and how to set modes.
  5570. (set_mode, set_stat, prepare_to_extract, extract_sparse_file, extract_archive):
  5571. Don't assume that gettext preserves errno.
  5572. (set_stat): Remove arg symlink_flag; subsumed by typeflag.
  5573. (delay_set_stat, repair_delayed_set_stat): New functions.
  5574. (make_directories): Avoid mkdir where last part of path is "..".
  5575. Create a struct delayed_set_stat for each directory made.
  5576. (prepare_to_extract): Renamed from unlink_destination, and
  5577. return 0 immediately if to_stdout_option; all callers changed.
  5578. (maybe_recoverable): New parameter interdir_made.
  5579. Add support for --overwrite.
  5580. (extract_sparse_file, extract_archive):
  5581. Quote arbitrary strings in diagnostics.
  5582. (extract_archive): By default, warn about ".." in member names, and skip them.
  5583. Don't open files with O_NONBLOCK or O_APPEND.
  5584. Open with O_TRUNC only if --overwrite; otherwise, use O_EXCL to avoid
  5585. overwriting them. Pass only rwxrwxrwx permissions to `open' and `mkdir',
  5586. minus the current umask. Keep track of intermediate directories made,
  5587. to avoid looping when making x/../x when x doesn't exist; the
  5588. earlier code solved this in a different way that didn't fit well
  5589. into the new scheme. Don't extract permissions onto existing
  5590. directories unless --overwrite is given. Do not add -wx------
  5591. permissions to new directories permanently; just do it temporarily.
  5592. Remove no-longer-needed hack with MSDOS and directory time stamps.
  5593. (apply_delayed_set_stat): New argument specifies which directories to
  5594. fix statuses of. Do not wait until the end of extraction to fix
  5595. statuses; instead, fix a directory's status once we exit that directory.
  5596. This requires less memory and does the right thing in some cases
  5597. where the old method didn't.
  5598. (fatal_exit): New function.
  5599. * src/incremen.c (<quotearg.h>): New include.
  5600. (get_directory_contents, gnu_restore):
  5601. Check for readdir and closedir errors.
  5602. (get_directory_contents, read_directory_file, gnu_restore):
  5603. Quote arbitrary strings in diagnostics.
  5604. (get_directory_contents, read_directory_file, write_directory_file):
  5605. Don't assume that gettext preserves errno.
  5606. * src/create.c (<quotearg.h>): New include.
  5607. (start_header): Use `member names' to refer to archive member names, not
  5608. `archive names'. Warn about `..' in member names.
  5609. (finish_sparse_file, dump_file):
  5610. Quote arbitrary strings in diagnostics.
  5611. (finish_sparse_file, dump_file):
  5612. Don't assume that gettext preserves errno.
  5613. (dump_file): Don't use `access' to determine whether a directory is readable;
  5614. this isn't reliable if tar is setuid. Use `opendir' instead.
  5615. Check for readdir and closedir failures.
  5616. Don't dump sockets as if they were fifos; just warn and skip.
  5617. * src/delete.c (move_archive):
  5618. Don't report fatal error merely because sizes don't fit
  5619. into struct mtop values; fall back on lseek instead.
  5620. Say `Cannot' uniformly, instead of `Could not' sometimes and `Cannot' others.
  5621. Say `reposition' instead of `re-position'.
  5622. (delete_archive_members):
  5623. Set archive to STDOUT_FILENO before outputting trailing buffer.
  5624. * src/compare.c (<quotearg.h>): New include.
  5625. (diff_init): Use `Cannot' uniformly, instead of `Could not' sometimes
  5626. and `Cannot' others.
  5627. (report_difference, diff_archive):
  5628. Quote arbitrary strings in diagnostics.
  5629. (process_rawdata, diff_sparse_files, get_stat_data, diff_archive, seek_warn):
  5630. Don't assume that gettext preserves errno.
  5631. (diff_archive): Don't open regular files with O_NONBLOCK.
  5632. Preserve access times of files if --atime.
  5633. * src/common.h (FATAL_ERROR): Use new fatal_exit function to exit.
  5634. (FATAL_ERROR, USAGE): Don't return 0.
  5635. (enum old files): New enum.
  5636. (old_files_option): New variable, replacing keep_old_files_option and
  5637. unlink_first_option.
  5638. (apply_delayed_set_stat): Now takes char const * param.
  5639. (fatal_exit, contains_dot_dot, chdir_fatal, close_error,
  5640. closedir_error, exec_fatal, mkfifo_error, mknod_error, open_error,
  5641. open_fatal, open_warn, opendir_error, opendir_warn, read_error,
  5642. read_fatal, readdir_error, readdir_warn, readlink_error,
  5643. readlink_warn, seek_error, seek_warn, stat_error, stat_warn,
  5644. truncate_error, truncate_warn, unlink_error, waitpid_error,
  5645. write_error, write_fatal, xfork, xpipe, quote, quote_n): New decls.
  5646. * src/buffer.c:
  5647. (xclose, xdup2, child_open_for_compress, child_open_for_uncompress,
  5648. archive_write_error, archive_read_error, flush_archive, close_archive,
  5649. init_volume_number, new_volume):
  5650. Don't assume that gettext preserves errno.
  5651. (xdup2): Don't report errno if dup returns an unexpected nonnegative value.
  5652. (open_archive): Reject multivolume verify attempts a bit earlier.
  5653. Rename local variable `access', in case it's defined by system header.
  5654. (open_archive, backspace_output): Use `Cannot' uniformly, instead of
  5655. `Could not' sometimes and `Cannot' others.
  5656. (open_archive, flush_read, flush_archive, close_archive, new_volume):
  5657. Quote arbitrary strings in diagnostics.
  5658. (read_error): Set archive to STDOUT_FILENO temporarily when writing
  5659. archive buffer.
  5660. (init_volume_number): Check for input and output errors in volno_file.
  5661. (new_volume): Use new fatal_exit function to exit, and new xfork
  5662. function to fork.
  5663. * m4/Makefile.am (EXTRA_DIST): Add c-bs-a.m4.
  5664. * Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/c-bs-a.m4.
  5665. * doc/tar.texi: Add --overwrite.
  5666. --absolute-names rejects ".." in names.
  5667. * lib/quotearg.c: Add support for multibyte characters.
  5668. (ISGRAPH): Remove.
  5669. (ISPRINT): New macro.
  5670. (<wchar.h>): Include if HAVE_MBRTOWC && HAVE_WCHAR_H.
  5671. (isprint, mbrtowc, mbsinit, mbstate_t): New macros,
  5672. defined if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
  5673. (quotearg_buffer_restyled): New function, with most of the old
  5674. quotearg_buffer's contents.
  5675. Major rewrite to support multibyte characters.
  5676. (quotearg_buffer): Now just calls quotearg_buffer_restyled.
  5677. * m4/c-bs-a.m4: New file.
  5678. * lib/Makefile.am: Use ## for copyright notice.
  5679. * scripts/Makefile.am: Use ## on copyright notice.
  5680. * doc/Makefile.am:
  5681. ($(srcdir)/tar.info, tar.dvi): We now use texinfo 4.0.
  5682. 1999-12-05 Paul Eggert <[email protected]>
  5683. * doc/ChangeLog, lib/ChangeLog, scripts/ChangeLog,
  5684. src/ChangeLog, tests/ChangeLog: Remove these files.
  5685. * ChangeLog.1: New file, incorporating the above files, plus old
  5686. ChangeLog entries.
  5687. * Makefile.am (EXTRA_DIST): Add ChangeLog.1.
  5688. 1999-12-05 Dale Worley <[email protected]>
  5689. * src/compare.c (<utime.h>, struct utimbuf): Add.
  5690. (diff_archive): Restore access times if --atime.
  5691. * doc/tar.texi: Explain that --atime also preserves modification time.
  5692. 1999-12-04 Gerhard Poul <[email protected]>
  5693. * ABOUT-NLS: Update to latest version from ftp.gnu.org.
  5694. * BACKLOG, TODO: Remove.
  5695. * Makefile.am (all-local, BABYL, dist-zoo, id, ID): Remove.
  5696. * README: Bring up to date.
  5697. 1999-12-03 Paul Eggert <[email protected]>
  5698. * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.15.
  5699. * src/compare.c (diff_archive):
  5700. Do not set errno to EPIPE; we no longer use perror.
  5701. * src/create.c (dump_file):
  5702. If a parent directory said that a file should be there but it is
  5703. absent, diagnose it as being removed in the meantime.
  5704. Do not pass meaningless errno to ERROR when reporting that the
  5705. file changed as we read it.
  5706. Report that a file changed if its ctime changes; this is more
  5707. sensitive than mtime+size, and more accurate.
  5708. * src/incremen.c (enum children): New type.
  5709. (struct directory): Change old char allnew member to new enum children
  5710. children member.
  5711. All uses changed.
  5712. (get_directory_contents): When doing an incremental dump that does
  5713. not cross filesystem boundaries, dump the mount points, even though
  5714. they are in a different filesystem. This is for convenience when
  5715. restoring, and for consistency with non-incremental dumps.
  5716. This requires a 3-way flag for keeping track of which children we want,
  5717. so we use enum children rather than boolean.
  5718. * src/open3.c (modes): Remove.
  5719. (open3): Remove unportable assumptions about flag encodings.
  5720. Use `stat' instead of `access' for testing file existence,
  5721. to avoid problems with setuid programs.
  5722. * src/names.c (name_next): If file names are given both in the
  5723. command line (e.g. via -C) and in a file (via -T), do not
  5724. ignore the command-line names.
  5725. * m4/uintmax_t.m4: Backport to autoconf 2.13.
  5726. * doc/tar.texi: Clarify getdate authorship.
  5727. 1999-11-23 Paul Eggert <[email protected]>
  5728. * lib/Makefile.am (DISTCLEANFILES): New macro.
  5729. * configure.in (tar_fnmatch_hin):
  5730. Remove; it runs afoul of a bug in autoconf 2.13.
  5731. Instead, always link fnmatch.h to some file, even if it's a throwaway.
  5732. 1999-11-19 Paul Eggert <[email protected]>
  5733. * m4/largefile.m4: Update serial.
  5734. 1999-11-18 Paul Eggert <[email protected]>
  5735. * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a bug in
  5736. the QNX shell, which doesn't propagate exit status of failed
  5737. commands inside shell assignments.
  5738. 1999-11-07 Paul Eggert <[email protected]>
  5739. * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.14.
  5740. * configure.in (AC_PREREQ): Bump to 2.13.
  5741. (ALL_LINGUAS): Add pt_BR, ja.
  5742. (AC_FUNC_FNMATCH): Remove lib/funmatch.h before invoking, not after.
  5743. (tar_cv_path_RSH): Prefer a non-symlink rsh to a symlink one,
  5744. for AIX crossbuilds.
  5745. * doc/tar.texi: New node create options for --ignore-failed-read.
  5746. Remove unused version control symbols.
  5747. Modernize texinfo usage.
  5748. * src/tar.c (usage): Add examples.
  5749. * m4/fnmatch.m4 (AC_FUNC_FNMATCH):
  5750. Include fnmatch.h when testing fnmatch.
  5751. * src/common.h (collect_and_sort_names): New decl.
  5752. * src/list.c (from_header):
  5753. Handle 32-bit two's complement negative time stamps
  5754. even if the leading octal digit is 2 or 3.
  5755. * src/extract.c (set_stat): Remove duplicate code.
  5756. * src/create.c (to_chars): Remove trailing newline from warning.
  5757. (dump_file): Ignore doors.
  5758. (finish_header): Report block numbers with origin 0, not origin 1.
  5759. * src/rmt.c: Include getopt.h.
  5760. (long_opts): New constant.
  5761. (usage): New function.
  5762. (main): Implement --help and --version.
  5763. Output usage message if arguments are bad.
  5764. 1999-10-10 Paul Eggert <[email protected]>
  5765. * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.13.
  5766. * README: Remove --with-dmalloc.
  5767. Add --disable-largefile.
  5768. Remove old NeXT dirent problems, or AIX valloc problems.
  5769. Remove old union wait advice, and old %lld advice.
  5770. Remove advice about FreeBSD 2.1.7, ISC 4.1mu, Ultrix `make'.
  5771. * doc/tar.texi: Clarify documentation for portable file names.
  5772. * configure.in (AM_WITH_DMALLOC): Remove.
  5773. (ALL_LINGUAS): Add ja.
  5774. * src/tar.c (decode_options):
  5775. Invalid dates are now treated as (time_t) -1.
  5776. Redo version message to conform to GNU standards.
  5777. * src/create.c (dump_file):
  5778. Fix typo: last two args to dump_file were interchanged.
  5779. * src/update.c (update_archive): Likewise.
  5780. * src/common.h (tartime): New decl.
  5781. * src/list.c (tartime): Now extern.
  5782. (read_and): Invalid headers cause errors, not warnings.
  5783. 1999-10-03 Paul Eggert <[email protected]>
  5784. * lib/getdate.y (__attribute__):
  5785. Don't use if GCC claims to be before 2.8; this is
  5786. needed for OPENStep 4.2 cc. Also, don't use if strict ANSI.
  5787. 1999-09-25 Paul Eggert <[email protected]>
  5788. * lib/fnmatch.c, lib/fnmatch.hin: Merge changes from latest glibc.
  5789. * lib/getopt.c, lib/getopt.h, lib/getopt1.c: Likewise.
  5790. * tests/incremen.sh: Add yet another sleep.
  5791. 1999-09-24 Paul Eggert <[email protected]>
  5792. * NEWS: A read error now causes a nonzero exit status.
  5793. * src/create.c (to_chars): Fix base-256 output.
  5794. * src/buffer.c (write_error):
  5795. Read error is an error, not just a warning.
  5796. 1999-09-24 Paul Eggert <[email protected]>
  5797. * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.12.
  5798. * src/tar.c (<time.h>): Include.
  5799. (time): Declare if not defined.
  5800. (confirm): Don't read past EOF.
  5801. (long_options, usage): Add --no-same-owner, --no-same-permissions.
  5802. (main): Use clock_gettime if available.
  5803. * tests/Makefile.am (TESTS): Add incremen.sh
  5804. (INCLUDES): Add -I../lib, for fnmatch.h.
  5805. * src/update.c (update_archive):
  5806. Remove call to name_expand; had no effect.
  5807. Use chdir_do to change into directory.
  5808. Use deref_stat instead of stat.
  5809. Use add_avoided_name to mark names to be avoided; the old method of
  5810. setting a bit with the name caused all descendants of that name to
  5811. be avoided, in some circumstances.
  5812. * tests/incremen.sh: Remove unnecessary sleeps.
  5813. * src/names.c (name_next): Go back to using plain chdir.
  5814. (name_gather): Use chdir_arg to keep track of arguments to chdir.
  5815. (addname): Likewise.
  5816. (name_match): Use chdir_do to act on chdir args.
  5817. (merge_sort): Moved here from incremen.c.
  5818. (compare_names, add_hierarchy_to_namelist, collect_and_sort_names):
  5819. Likewise.
  5820. (name_expand): Remove.
  5821. (name_from_list): Skip fake names.
  5822. Use chdir_do to act on chdir args.
  5823. (struct avoided_name): New struct.
  5824. (avoided_names): New var.
  5825. (add_avoided_name, is_avoided_name): New functions.
  5826. * src/system.h (stat, lstat): Define in terms of statx on
  5827. STX_HIDDEN && !_LARGE_FILES /* AIX */ hosts.
  5828. (UCHAR_MAX): New macro.
  5829. (TYPE_MAXIMUM): Cast to arg type, for types narrow than int.
  5830. * m4/largefile.m4: Work around GCC 2.95.1 bug with HP-UX 10.20.
  5831. * src/incremen.c (<time.h>): Remove include; no longer used.
  5832. (time): Remove decl.
  5833. (time_now): Remove.
  5834. (get_directory_contents): Use deref_stat.
  5835. Consider a subdirectory to be all new only if
  5836. listed_incremental_option or if it its timestamp is newer than the
  5837. cutoff.
  5838. (add_hierarchy_to_namelist, merge_sort): Move to names.c.
  5839. (read_directory_file): Now extern. Do not set time_now.
  5840. (write_directory_file): Renamed from write_dir_file.
  5841. Use start_time instead of time_now.
  5842. (compare_names, collect_and_sort_names): Move to names.c.
  5843. * src/mangle.c (<time.h>): Remove; not used.
  5844. (time): Do not declare.
  5845. * src/misc.c (chdir_from_initial_wd): Remove.
  5846. (deref_stat): New function.
  5847. (struct wd): New struct.
  5848. (wd, wds, wd_alloc): New variables.
  5849. (chdir_arg, chdir_do): New function.
  5850. * src/compare.c (get_stat_data): Use deref_stat.
  5851. * src/common.h (name_expand): Remove.
  5852. * src/list.c (time): Declare if not defined.
  5853. (base_64_digits): Moved here from create.c.
  5854. (base64_map): Use UCHAR_MAX for size, not less-clear (unsigned char)
  5855. -1.
  5856. (read_and): Don't get time from header unless we need it now;
  5857. as getting time can cause duplicate diagnostics if bogus.
  5858. Remove "Hmm, " from diagnostic.
  5859. Use "Skipping to next header" uniformly.
  5860. (from_header): Renamed from from_chars. All uses changed.
  5861. Allow different forms for unportable 2's complement numbers.
  5862. Don't check for extended forms when parsing checksums.
  5863. Parse base-256 output.
  5864. (gid_from_header): Renamed from gid_from_chars. All uses changed.
  5865. (major_from_header): Renamed from major_from_chars. All uses changed.
  5866. (minor_from_header): Renamed from minor_from_chars. All uses changed.
  5867. (mode_from_header): Renamed from mode_from_chars. All uses changed.
  5868. (off_from_header): Renamed from off_from_chars. All uses changed.
  5869. (size_from_header): Renamed from size_from_chars. All uses changed.
  5870. (time_from_header): Renamed from time_from_chars. All uses changed.
  5871. Warn about future timestamps.
  5872. (uid_from_header): Renamed from uid_from_chars. All uses changed.
  5873. (uintmax_from_header): Renamed from uintmax_from_chars.
  5874. All uses changed.
  5875. (tartime): New function, incorporating isotime.
  5876. (isotime): Delete.
  5877. (print_header): Use tartime.
  5878. * src/create.c (to_chars): Fix typo in decl.
  5879. Don't assign through char const *.
  5880. Rename name_expand back to collect_and_sort_names.
  5881. * src/extract.c (<time.h>): No need to include.
  5882. (time): No need to declare.
  5883. (now): Remove variable.
  5884. (extr_init): Don't initialize `now'.
  5885. Increment same_permissions_option and same_owner_option if we_are_root
  5886. is nonzero; this supports the new --no-same-owner option.
  5887. (set_stat): Use start_time instead of `now'.
  5888. * src/create.c (struct link): Remove unused linkcount member.
  5889. (base_64_digits): Move to list.c.
  5890. (base_8_digits): Remove.
  5891. (to_octal): New function, with some of old contents of to_base.
  5892. (to_base): Remove.
  5893. (to_base256): New function.
  5894. (to_chars): Use base 256, not base 64, for huge values.
  5895. (mode_to_chars): Don't use two's complement in GNU format or POSIX
  5896. format.
  5897. (dump_file): Interchange last two arguments. If TOP_LEVEL is negative,
  5898. it means we have an incremental dump where we don't know whether this
  5899. is a top-level call.
  5900. Use deref_stat instead of statx / stat / lstat.
  5901. Cast result of alloca.
  5902. Check for dates if 0 < top_level, not if listed_incremental_option.
  5903. Move multiple-link check after directory check.
  5904. Do not dump avoided names.
  5905. Dump hard links to symbolic names as links, not as separate
  5906. symbolic links.
  5907. start_header cannot return a null pointer, so don't test for it.
  5908. Likewise for find_next_block.
  5909. * src/buffer.c, src/common.h (<human.h>): Include.
  5910. (read_error): Read error is an error, not just a warning.
  5911. (print_total_written): Also print human-readable byte count, and
  5912. bytes/s.
  5913. (open_archive, flush_write): Use start_time, not current time.
  5914. (flush_read): Report about garbage bytes ignored at end of archive,
  5915. but act on non-garbage bytes (instead of ignoring them).
  5916. (new_volume): Use WARN for warnings.
  5917. * doc/Makefile.am:
  5918. ($(srcdir)/tar.info): Add -I$(srcdir) so that subdir builds work.
  5919. * Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/fnmatch.m4.
  5920. * m4/Makefile.am (EXTRA_DIST): Add fnmatch.m4.
  5921. * lib/Makefile.am (noinst_HEADERS):
  5922. Rename fnmatch.h to fnmatch.hin; add human.h.
  5923. (libtar_a_SOURCES): Add human.c, xstrtoul.c.
  5924. (INCLUDES): Remove -I.. -I$(srcdir) -- automake adds this for us.
  5925. * src/Makefile.am (rmt_LDADD, tar_LDADD): New macros.
  5926. * lib/fnmatch.c (strchrnul):
  5927. Define to __strchrnul if _LIBC, to our own replacement otherwise.
  5928. Do not define if !_LIBC and if it already exists.
  5929. (internal_fnmatch): Use it.
  5930. * configure.in (tar_LDADD): New variable, used only when linking tar.
  5931. (rmt_LDADD): Similarly, for rmt.
  5932. (AC_FUNC_FNMATCH): Link fnnmatch.hin to fnmatch.h if we're using our
  5933. fnmatch.c; otherwise, use the system fnmatch.h.
  5934. * doc/tar.texi: Add --no-same-owner, --no-same-permissions.
  5935. Modernize sample backup script.
  5936. * THANKS: Martin Goik's email address has changed.
  5937. * m4/fnmatch.m4: New file.
  5938. 1999-09-03 Paul Eggert <[email protected]>
  5939. * lib/lchown.h (ENOSYS): Don't use ENOMSG; it's not in NeXTStep3.3.
  5940. Use EINVAL instead.
  5941. 1999-08-29 Paul Eggert <[email protected]>
  5942. * lib/getdate.y (get_date):
  5943. Rename outermost local `probe' to `quarter'.
  5944. Rename latter local `tm' to probe_tm.
  5945. From: Jim Meyering <[email protected]>
  5946. Message-ID: <[email protected]>
  5947. 1999-08-28 Paul Eggert <[email protected]>
  5948. * lib/getdate.y (PC): New macro; use it when possible.
  5949. (number): Handle `Nov 11 1996' example correctly.
  5950. See Risks Digest 20.55 (1999-08-27)
  5951. http://catless.ncl.ac.uk/Risks/20.55.html#subj18
  5952. 1999-08-23 Paul Eggert <[email protected]>
  5953. * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.11.
  5954. Remove minor cases of lint from many source files: this includes
  5955. unnecessary casts, uses of NULL, etc.
  5956. * configure.in (AC_PROG_YACC): Remove.
  5957. (YACC): Always use bison.
  5958. (AC_STRUCT_TIMEZONE): Add.
  5959. (AC_REPLACE_FUNCS): Add strcasecmp, strncasecmp.
  5960. * doc/tar.texi: --bzip2 is now -I. Remove obsolete time zone info.
  5961. Fix spelling.
  5962. * lib/Makefile.am (EXTRA_DIST): Add strcasecmp.c, strncasecmp.c.
  5963. ($(srcdir)/getdate.c): Rename y.tab.c to getdate.c only if successful.
  5964. * lib/strcasecmp.c, lib/strncasecmp.c: New files.
  5965. * src/common.h (merge_sort): Remove decl; no longer exported.
  5966. * src/system.h (voidstar): Remove.
  5967. (memcpy, memcmp): Cast args.
  5968. ("xalloc.h"): Add include.
  5969. (xmalloc, xrealloc): Remove decl.
  5970. * src/mangle.c (time): Do not declare if defined.
  5971. (first_mangle, mangled_num): Remove.
  5972. * src/list.c (from_chars): Report out-of-range values more precisely.
  5973. (off_from_chars): Do not allow negative offsets.
  5974. (uid_from_chars): Allow negative uids.
  5975. * src/create.c (linklist): Now static.
  5976. (to_chars): Fix wording of message to match from_chars.
  5977. * src/misc.c (merge_sort): Move to incremen.c.
  5978. * src/incremen.c (merge_sort): Move here from misc.c; now static.
  5979. It's too painful to make it both generic and portable.
  5980. (read_directory_file): "timestamp" -> "time stamp" in messages.
  5981. * src/tar.c (long_options, usage, main): -y is now -I (for --bzip).
  5982. (usage): Fix misspelling.
  5983. (OPTION_STRING): -y is now -I.
  5984. (decode_options): Use -1, not EOF, for getopt_long result.
  5985. Fix typo when invoking xstrtoumax: look for LONGINT_OK, not LONG_MAX.
  5986. Handle operands after any "--" argument.
  5987. (main): Report any output errors.
  5988. * src/rmt.c (main): status is ssize_t, not long.
  5989. * src/names.c (name_gather): Handle trailing -C option correctly.
  5990. (addname): use memcpy, not strncpy, to copy a string of known length.
  5991. (name_match): Handle trailing -C option correctly.
  5992. Propagate -C option to following files.
  5993. (name_match, name_scan): Remove redundant matching code.
  5994. * src/buffer.c (open_archive): Use American spelling in diagnostic.
  5995. * lib/getdate.y: Major rewrite. Add copyright notice.
  5996. (<stdio.h>): Include only if testing.
  5997. (ISUPPER): Remove.
  5998. (ISLOWER): New macro.
  5999. (<string.h>): Include if HAVE_STRING_H, not USG.
  6000. (bcopy): Remove.
  6001. (yymaxdepth, ..., yycheck): Don't bother to redefine, since we assume
  6002. bison.
  6003. (EPOCH_YEAR): Renamed from EPOCH.
  6004. (table): Renamed from TABLE.
  6005. (meridian): Now an anonymous enum.
  6006. (struct parser_control): New type.
  6007. (YYLEX_PARAM, YYPARSE_PARAM, YYSTYPE): New macros.
  6008. (yyInput, ..., yyRelYear): Migrated into struct parser_control.
  6009. (%pure_parser): Added, so that the parser is pure.
  6010. (%union): Removed; the type is now just plain int.
  6011. All %type directives removed.
  6012. (tLOCAL_ZONE): New %token.
  6013. (month_day_table): Renamed from MonthDayTable.
  6014. (gmtime, localtime, mktime, time): Declare only if not defined.
  6015. (meridian_table): New table.
  6016. (dst_table): New table.
  6017. (units_table): renamed from UnitsTable.
  6018. (relative_time_table): Renamed from OtherTable.
  6019. (time_zone_table): Renamed from TimezoneTable. Modernized.
  6020. (military_table): Renamed from MilitaryTable.
  6021. (to_hour): Renamed from ToHour.
  6022. (to_year): Renamed from ToYear.
  6023. (lookup_zone): New function.
  6024. (LookupWord): Renamed from lookup_word. Use lookup_zone for time
  6025. zones.
  6026. (yylex): Now reentrant. All callers changed.
  6027. (get_date): Add support for local time zone abbreviations.
  6028. Make it reentrant.
  6029. 1999-08-20 Paul Eggert <[email protected]>
  6030. * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.10.
  6031. * src/create.c (to_chars): Generate GNU base-64 representation
  6032. if we are generating an old or new GNU format tar file for a
  6033. number that can't be represented with the POSIX format.
  6034. * configure.in (AC_CHECK_FUNCS): Add fchdir.
  6035. (AM_FUNC_GETLINE): Add.
  6036. (LIBOBJS): Add getline.o to workaround comment.
  6037. * Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/getline.m4.
  6038. * m4/Makefile.am (EXTRA_DIST): Add getline.m4.
  6039. * lib/Makefile.am (noinst_HEADERS): Add getline.h, save-cwd.h.
  6040. (libtar_a_SOURCES): Add save-cwd.c, xgetcwd.c.
  6041. * lib/getline.c, lib/getline.h, lib/save-cwd.c,
  6042. lib/save-cwd.h, m4/getline.m4: New files.
  6043. * src/misc.c (<save-cwd.h>): Include.
  6044. (chdir_from_initial_wd): New function.
  6045. * src/names.c (name_next): Use chdir_from_initial_wd, not chdir.
  6046. (name_gather): Handle `-C x -C y' correctly.
  6047. Do not rely on addname to handle -C.
  6048. (addname): New CHANGE_DIR parameter. All callers changed.
  6049. Remove ugly calls to getcwd; no longer needed.
  6050. (name_match, name_from_list): Use chdir_from_initial_wd, not chdir.
  6051. * src/incremen.c (listed_incremental_stream): New var.
  6052. (read_directory_file): Remove arbitrary limits on file name length.
  6053. Do not attempt to get the working directory; we can bypass this
  6054. on fchdir hosts. Open the listed_incremental_option file for both
  6055. read and write instead of opening it twice. Check for I/O errors
  6056. when doing I/O to this file. Check for invalid data in the file,
  6057. and report line numbers of invalid data.
  6058. (write_dir_file): Likewise.
  6059. (collect_and_sort_names): Use chdir_from_initial_wd, not chdir.
  6060. Do not invoke write_dir_file; that's our caller's responsibility.
  6061. * src/list.c (max): New macro.
  6062. (isotime): Now takes time_t, not time_t *. Report the decimal values
  6063. of times that can't be broken down.
  6064. (print_header): Don't assume that major and minor device numbers can
  6065. fit into uintmax_t.
  6066. * src/common.h (struct name): change_dir is now char const *.
  6067. (write_directory_file): Remove unused decl.
  6068. (STRINGIFY_BIGINT): Assume b always points to UINTMAX_STRSIZE_BOUND
  6069. chars; the old `sizeof (b)' broke when b was a pointer not an array.
  6070. (chdir_from_initial_wd): New decl.
  6071. (addname): New 2nd arg.
  6072. * THANKS: Torsten Lull -> Catrin Urbanneck
  6073. 1999-08-18 Paul Eggert <[email protected]>
  6074. * configure.in (HAVE_GETHOSTENT, HAVE_SETSOCKOPT):
  6075. Don't depend on ac_cv_func variables.
  6076. From Albert Chin-A-Young <[email protected]>.
  6077. 1999-08-18 Paul Eggert <[email protected]>
  6078. * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.9
  6079. * m4/signedchar.m4: New file.
  6080. * configure.in (pe_AC_TYPE_SIGNED_CHAR): Add.
  6081. * src/system.h (signed_char): New macro.
  6082. * Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/signedchar.m4.
  6083. * m4/Makefile.am (EXTRA_DIST): Add signedchar.m4.
  6084. * src/create.c (write_eot): Write at least two zero blocks.
  6085. * src/extract.c (extract_archive): Fix sparse array bug:
  6086. we did not find end of array correctly.
  6087. * src/compare.c: (fill_in_sparse_array, diff_sparse_files):
  6088. Don't assume find_next_block yields nonnull.
  6089. * src/extract.c (extract_sparse_file, extract_archive): Likewise.
  6090. * src/list.c (skip_extended_headers): Likewise.
  6091. * src/list.c (read_and, list_archive): Simplify code.
  6092. (read_header): Fix computation of signed checksums on machines where
  6093. char is unsigned.
  6094. Do not consider a block to be zero unless all its bytes are zero,
  6095. even the checksum bytes. Do not attempt to parse the checksum of
  6096. a zero block. Fix memory leak with long names and links.
  6097. (from_chars): Accommodate a buggy tar that outputs leading NUL
  6098. if the previous field overflows.
  6099. * src/misc.c (quote_copy_string): Generate \177 for '\177', not
  6100. \?, for portability to non-ASCII hosts.
  6101. 1999-08-16 Paul Eggert <[email protected]>
  6102. * configure.in (AM_INIT_AUTOMAKE), NEWS: Version 1.13.8.
  6103. * src/extract.c (make_directories): Do not chown intermediate
  6104. directories, even if we are root.
  6105. * src/list.c (read_header): Fix bugs when interpreting
  6106. POSIX-compliant headers that do not contain null bytes in the
  6107. header or link names.
  6108. 1999-08-14 Paul Eggert <[email protected]>
  6109. * configure.in (AM_INIT_AUTOMAKE), NEWS: Version 1.13.7.
  6110. * configure.in (AC_CHECK_HEADERS): Remove sys/wait.h.
  6111. (AC_HEADER_SYS_WAIT): Add.
  6112. (AC_REPLACE_FUNCS): Add waitpid.
  6113. (tar_cv_header_union_wait, HAVE_UNION_WAIT): Remove.
  6114. * lib/waitpid.c: New file.
  6115. * lib/Makefile.am (EXTRA_DIST): Add waitpid.c.
  6116. * src/system.h (WCOREDUMP): Remove; no longer used.
  6117. (WIFSTOPPED): Likewise.
  6118. (WEXITSTATUS, WIFSIGNALED): Default to Solaris 7 versions.
  6119. * src/buffer.c (child_open_for_compress): Undo previous change.
  6120. (close_archive): Use waitpid, POSIX-style, instead of old BSD style.
  6121. (new_volume): Likewise.
  6122. * src/buffer.c, src/extract.c, src/incremen.c (time):
  6123. Don't declare if defined.
  6124. * src/extract.c (extr_init): Remove unneeded cast around 0 arg to time.
  6125. * src/incremen.c (read_directory_file):
  6126. Invoke `time' the same way everyone else does.
  6127. Check validity of --listed-incremental file contents a bit better.
  6128. Do not worry about --after-date-option; tar.c now checks this.
  6129. * src/list.c (isotime): Report ??? if localtime returns null.
  6130. Don't assume years fit into four digits.
  6131. Don't append trailing newline.
  6132. (print_header): Report ??? if localtime returns null;
  6133. Don't assume years fit into four digits.
  6134. * src/compare.c (diff_archive): Do not fall back on absolute name
  6135. when --absolute-names is not specified.
  6136. * src/create.c (start_header):
  6137. Include text of ignored filesystem prefix in warning.
  6138. (create_archive): Check for excluded names when doing incremental
  6139. pass through directory.
  6140. (dump_file): Do not dump old files explicitly given on command line
  6141. when using --listed-incremental. Do not strip ./ prefix from names.
  6142. * src/tar.c: -g now implies after_date_option = 1.
  6143. -g and -N are now incompatible options.
  6144. * doc/tar.texi: Explain --exclude better. Don't strip leading `./'.
  6145. 1999-08-11 Jeff Dairiki <[email protected]>
  6146. * src/list.c (read_header): Don't parse OLDGNU_FORMAT
  6147. incremental headers as POSIX prefixes.
  6148. 1999-08-11 Paul Eggert <[email protected]>
  6149. * NEWS, configure.in: Version 1.13.6.
  6150. * configure.in (ALL_LINGUAS): Add pt_BR.
  6151. * po/pt_BR.po: New file.
  6152. * doc/Makefile.am ($(srcdir)/tar.info, $(srcdir)/header.texi):
  6153. Renamed from tar.info and header.texi; adjust actions so that
  6154. they work in other directories.
  6155. * doc/tar.texi: Add -y and --bzip2.
  6156. Patterns containing / now exclude only file names whose prefix match.
  6157. * lib/exclude.h (excluded_filename): New option parameter.
  6158. (add_exclude_file): New ADD_FUNC parameter.
  6159. (excluded_pathname): Remove decl.
  6160. * lib/exclude.c (_GNU_SOURCE):
  6161. Remove; no longer needed since we don't use FNM_ macros.
  6162. (excluded_filename): Renamed from excluded_filename_opts.
  6163. (excluded_filename, excluded_pathname): Remove.
  6164. (add_exclude_file): New ADD_FUNC parameter.
  6165. * po/POTFILES.in: Add lib/quotearg.c.
  6166. * src/buffer.c (_GNU_SOURCE): Define.
  6167. (<fnmatch.h>): Include unconditionally.
  6168. (child_open_for_compress): Dup after closing, to avoid possible file
  6169. descriptor exhaustion.
  6170. (flush_write): Use FILESYSTEM_PREFIX_LEN instead of MSDOS ifdef.
  6171. (flush_read): Likewise.
  6172. * src/common.h (LG_8, LG_64): New macros.
  6173. (excluded_with_slash, excluded_without_slash): New vars.
  6174. (excluded): Remove.
  6175. (base_64_digits): New decl.
  6176. (gid_to_chars, major_to_chars, minor_to_chars, mode_to_chars,
  6177. off_to_chars, size_to_chars, time_to_chars, uid_to_chars,
  6178. uintmax_to_chars,
  6179. GID_TO_CHARS, MAJOR_TO_CHARS, MINOR_TO_CHARS, MODE_TO_CHARS,
  6180. OFF_TO_CHARS, SIZE_TO_CHARS, TIME_TO_CHARS, UID_TO_CHARS,
  6181. UINTMAX_TO_CHARS):
  6182. Renamed from gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct,
  6183. off_to_oct, size_to_oct, time_to_oct, uid_to_oct, uintmax_to_oct,
  6184. GID_TO_OCT, MAJOR_TO_OCT, MINOR_TO_OCT, MODE_TO_OCT, OFF_TO_OCT,
  6185. SIZE_TO_OCT, TIME_TO_OCT, UID_TO_OCT, UINTMAX_TO_OCT,
  6186. respectively. All definitions and uses changed.
  6187. (excluded_name): New decl.
  6188. * src/compare.c (diff_archive):
  6189. Open files with O_NONBLOCK instead of O_NDELAY.
  6190. * src/create.c (base_64_digits): New constant.
  6191. (base_8_digits): New macro.
  6192. (MAX_VAL_WITH_DIGITS): New macro.
  6193. (to_base): First half of old to_oct. Support base 64 too.
  6194. (to_chars): Other half of old to_oct, for 64-bit support.
  6195. (GID_NOBODY, UID_NOBODY): Don't define if the headers don't.
  6196. (gid_substitute, uid_substitute): Look up names dynamically if
  6197. GID_NOBODY and UID_NOBODY aren't defined; use -2 if all else fails.
  6198. (mode_to_chars): Renamed from mode_to_oct.
  6199. Support negative values in all the _to_chars functions.
  6200. (start_header): Use FILESYSTEM_PREFIX_LEN instead of MSDOS ifdef.
  6201. Abort if archive format is DEFAULT_FORMAT when it shouldn't be.
  6202. (dump_file): Inspect entire pathname, not just new file name
  6203. component, when deciding whether to exclude it.
  6204. * src/extract.c (extract_archive):
  6205. Open files with O_NONBLOCK instead of O_NDELAY.
  6206. * src/incremen.c (get_directory_contents):
  6207. Inspect entire pathname, not just new file name
  6208. component, when deciding whether to exclude it.
  6209. * src/list.c (<fnmatch.h>): Do not include.
  6210. (from_chars): Renamed from from_oct. New parameter specifying
  6211. the negative of the minimum allowed value. Support negative
  6212. and base-64 values.
  6213. (base64_map): New var.
  6214. (base64_init): New function.
  6215. (print_header): Output numeric uids and gids if numeric_owner_option.
  6216. * src/misc.c (quote_copy_string): Use LG_8 instead of constants.
  6217. * src/names.c (_GNU_SOURCE): Define.
  6218. (<fnmatch.h>): Include unconditionally.
  6219. (excluded_name): New function, taking over duties of excluded_pathname.
  6220. All uses changed.
  6221. * src/rmt.c (decode_oflag): New function.
  6222. (main): Use it to support symbolic open flags.
  6223. * src/rtapelib.c (encode_oflag): New function.
  6224. (rmt_open__): Do not allow newlines in the path.
  6225. Propagate errno correctly.
  6226. Decode symbolic open flags, if present.
  6227. * src/system.h (FILESYSTEM_PREFIX_LEN, ISSLASH, O_ACCMODE, O_NONBLOCK):
  6228. New macros.
  6229. * src/tar.c: (long_options, usage, OPTION_STRING, decode_options):
  6230. New -y or --bzip2 option.
  6231. (add_filtered_exclude): New function.
  6232. (decode_options): Put excluded patterns with / into
  6233. excluded_with_slash, and without / into excluded_without_slash.
  6234. Compare newer_mtime_option to its new initial value
  6235. TYPE_MINIMUM (time_t) when deciding whether more than one
  6236. threshold date was specified.
  6237. 1999-07-20 Paul Eggert <[email protected]>
  6238. * NEWS, configure.in: Version 1.13.5.
  6239. * src/common.h (FATAL_ERROR): Invoke apply_delayed_set_stat
  6240. before exiting.
  6241. * src/buffer.c (new_volume): Likewise.
  6242. * src/incremen.c (read_directory_file): Likewise.
  6243. * src/tar.c (decode_options):
  6244. ERROR ((TAREXIT_FAILURE, ... -> FATAL_ERROR ((0,
  6245. for consistency.
  6246. * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13.4.
  6247. * configure.in (AC_CHECK_FUNCS): Add lstat, readlink, symlink.
  6248. * src/system.h (lstat): Define only if !HAVE_LSTAT && !defined lstat.
  6249. (S_ISMPB, S_ISMPC, S_ISNWK): Remove unused macros.
  6250. (S_ISBLK, S_ISCHR, S_ISCTG, S_ISFIFO, S_ISLNK, S_ISSOCK):
  6251. Define to 0 if the corresponding S_IF* macro is not defined.
  6252. (mkfifo): Do not define if already defined, or if S_IFIFO
  6253. is not defined.
  6254. * src/compare.c (diff_archive): Use HAVE_READLINK, not
  6255. S_ISLNK, to determine whether to invoke readlink.
  6256. * src/create.c (dump_file): Likewise.
  6257. * src/extract.c (set_mode):
  6258. Do not chmod unless we are root or the -p option was given;
  6259. this matches historical practice.
  6260. (unlink_destination): New function, which checks for unlink failures.
  6261. (maybe_recoverable): Stay quiet if -U.
  6262. (extract_archive): Use O_EXCL if unlink_first_option.
  6263. Report unlink failures.
  6264. Use HAVE_SYMLINK, not S_ISLNK, to determine whether symlink exists.
  6265. Use HAVE_MKFIFO || defined mkfifo, not S_ISFIFO, to determine whether
  6266. mkfifo exists.
  6267. * src/incremen.c (get_directory_contents): Depend on
  6268. S_ISHIDDEN, not AIX, to determine whether to invoke S_ISHIDDEN.
  6269. * src/list.c: Remove S_IS* ifdefs.
  6270. * src/misc.c (maybe_backup_file): Likewise.
  6271. * src/misc.c (maybe_backup_file):
  6272. "Virtual memory exhausted" -> "Memory exhausted",
  6273. to conform to the other places this message is issued.
  6274. * src/mangle.c (extract_mangle):
  6275. Replace #ifdef S_ISLNK with #ifdef HAVE_SYMLINK.
  6276. * src/rtapelib.c (rmt_open__):
  6277. Remove typo that caused us to omit the first char
  6278. of the basename.
  6279. 1999-07-16 Paul Eggert <[email protected]>
  6280. * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.13.3.
  6281. * doc/tar.texi: A path name is excluded if any of its file name
  6282. components matches an excluded pattern, even if the path name was
  6283. specified on the command line.
  6284. * src/create.c (create_archive): Likewise.
  6285. * src/list.c (read_and): Likewise.
  6286. * src/update.c (update_archive): Likewise.
  6287. * lib/exclude.h (excluded_pathname): New decl.
  6288. * lib/exclude.c (_GNU_SOURCE): Define.
  6289. (FILESYSTEM_PREFIX_LEN, ISSLASH): New macros.
  6290. (excluded_filename_opts): New function.
  6291. (excluded_pathname): New function.
  6292. * lib/Makefile.am (EXTRA_DIST):
  6293. xstrtol.c moved here from libtar_a_SOURCES.
  6294. (libtar_a_SOURCES): Move xstrtol.c to EXTRA_DIST.
  6295. Remove xstrtoul.c; no longer needed.
  6296. * lib/xstrtol.c: Remove.
  6297. * src/tar.c (decode_options):
  6298. Set newer_time_option to TYPE_MINIMUM, so that
  6299. negative timestamps are handled correctly.
  6300. Replace invocations of xstrtol and xstrtoul with xstrtoumax, for
  6301. uniformity (and so that we don't need to have the other fns).
  6302. (main): Remove call to init_total_written; no longer needed.
  6303. * configure.in (AC_CHECK_SIZEOF): Remove no-longer-needed
  6304. checks for unsigned long and long long.
  6305. * src/arith.c: Remove.
  6306. * src/Makefile.am (tar_SOURCES): Remove arith.c.
  6307. * po/POTFILES.in: Remove src/arith.c.
  6308. * src/arith.h: Use double, to simplify configuration gotchas.
  6309. (tarlong): Now double.
  6310. (TARLONG_FORMAT): New macro.
  6311. (BITS_PER_BYTE, BITS_PER_TARLONG, SUPERDIGIT, BITS_PER_SUPERDIGIT,
  6312. LONGS_PER_TARLONG, SIZEOF_TARLONG, struct tarlong,
  6313. zerop_tarlong_helper, lessp_tarlong_helper, clear_tarlong_helper,
  6314. add_to_tarlong_helper, mult_tarlong_helper, print_tarlong_helper,
  6315. zerop_tarlong, lessp_tarlong, clear_tarlong, add_to_tarlong,
  6316. mult_tarlong, print_tarlong): Remove. All callers replaced with
  6317. arithmetic ops.
  6318. * src/common.h (init_total_written): Remove decl.
  6319. * src/buffer.c (total_written):
  6320. Remove; replaced with prev_written + bytes_written.
  6321. (prev_written): New var.
  6322. (init_total_written): Remove.
  6323. (print_total_written): Use TARLONG_FORMAT instead of print_tarlong.
  6324. * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG):
  6325. Make sure that we can shift, multiply
  6326. and divide unsigned long long values; Ultrix cc can't do it.
  6327. * lib/modechange.c (mode_compile): Use uintmax_t, not unsigned long.
  6328. Check for any unknown bits, not just unknown bits left of the leftmost
  6329. known bit.
  6330. * lib/quotearg.c (quotearg_buffer):
  6331. Don't quote spaces if C quoting style.
  6332. * src/list.c (from_oct):
  6333. Use C quoting style for error; omit trailing NULs.
  6334. 1999-07-14 Paul Eggert <[email protected]>
  6335. * configure.in (AM_INIT_AUTOMAKE), NEWS: Version 1.13.2.
  6336. * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
  6337. <inttypes.h> defines strtoumax as a macro (and not as a function).
  6338. HP-UX 10.20 does this.
  6339. * src/tar.c (usage): [email protected] -> [email protected]
  6340. * PORTS, README, TODO, doc/tar.texi: Likewise.
  6341. 1999-07-12 Paul Eggert <[email protected]>
  6342. * configure.in (AM_INIT_AUTOMAKE): Version 1.13.1.
  6343. (LIBOBJS): Add mktime.o to automake 1.4 bug workaround.
  6344. * src/list.c (decode_header):
  6345. Do not assume that S_IFBLK and S_IFCHR are defined.
  6346. * src/create.c (start_header): Do not assume S_IFMT is defined.
  6347. (dump_file): Remove unnecessary check for screwy apollo lossage.
  6348. Do not assume S_IFBLK and S_IFCHR are defined.
  6349. * src/extract.c (extract_archive):
  6350. Test whether S_IFCHR and S_IFBLK are nonzero,
  6351. not whether they are defined, for consistency with other tests.
  6352. * src/buffer.c (is_regular_file):
  6353. Don't succeed on files that we can't access due to
  6354. permissions problems.
  6355. (open_archive): Fix wording on fatal error message.
  6356. Don't bother to stat /dev/null if the archive is not a character
  6357. special device.
  6358. * src/compare.c (process_rawdata, diff_sparse_files, diff_archive):
  6359. Report an error, not a warning, for I/O errors.
  6360. (process_rawdata, process_dumpdir, diff_sparse_files):
  6361. Change ungrammatical "Data differs" to "Contents differ".
  6362. (get_stat_data): Find hidden files on AIX.
  6363. Accept file name as argument; all uses changed.
  6364. (get_stat_data, diff_archive): Use system error message for
  6365. nonexistent files rather than rolling our own.
  6366. (diff_archive): Unknown file types are errors, not warnings.
  6367. Normalize spelling of message to "File type differs".
  6368. Use get_stat_data to get link status, for consistency.
  6369. Do not inspect st_rdev for fifos.
  6370. Do not assume st_mode values contain only file types and mode bits.
  6371. Check for mode changes and device number changes separately.
  6372. * src/update.c (append_file):
  6373. Open the file before statting it, to avoid a race.
  6374. Complain about file shrinkage only when we reach EOF.
  6375. 1999-07-08 Paul Eggert <[email protected]>
  6376. * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.13 released.
  6377. * configure.in (AC_EXEEXT): Add.
  6378. * lib/Makefile.am (noinst_HEADERS):
  6379. Add basename.h, exclude.h. Remove full-write.h.
  6380. (libtar_a_SOURCES): Add exclude.c.
  6381. * lib/basename.h, lib/exclude.c, lib/exclude.h, lib/safe-read.h:
  6382. New files.
  6383. * lib/full-write.c: Include safe-read.h instead of full-write.h.
  6384. * lib/safe-read.h (safe_read): New decl.
  6385. * src/rmt.c: Include safe-read.h.
  6386. * src/rtapelib.c: Include basename.h, save-read.h.
  6387. (rmt_open__): Use base_name to compute base name.
  6388. * src/common.h:
  6389. Include basename.h, exclude.h; don't include full-write.h.
  6390. (exclude_option): Remove decl.
  6391. (excluded): New decl.
  6392. (add_exclude, add_exclude_file, check_exclude): Remove decls.
  6393. * src/list.c (read_and):
  6394. Use excluded_filename instead of check_exclude.
  6395. Check base name of incoming file name, not entire file name, when
  6396. deciding whether to exclude it.
  6397. * src/create.c (finish_sparse_file):
  6398. Use excluded_filename instead of check_exclude.
  6399. Don't bother to stat excluded file names.
  6400. * src/incremen.c (get_directory_contents): Likewise.
  6401. * src/names.c (exclude_pool, exclude_pool_size,
  6402. allocated_exclude_pool_size, simple_exclude_array,
  6403. simple_excludes, allocated_simple_excludes,
  6404. pattern_exclude_array, pattern_excludes,
  6405. allocated_pattern_excludes, add_exclude, add_exclude_file,
  6406. check_exclude):
  6407. Remove; now done in ../lib/exclude.c.
  6408. * src/tar.c (decode_options): Initialize `excluded'.
  6409. Use new add_exclude_file and add_exclude functions.
  6410. 1999-07-05 Paul Eggert <[email protected]>
  6411. * m4/gettext.m4: Use changequote rather than [[ ]].
  6412. * lib/safe-read.c: Renamed from lib/full-read.c.
  6413. (safe_read): Renamed from full_read. All uses changed.
  6414. * lib/safe-read.h, lib/full-write.h: New files.
  6415. * lib/Makefile.am (noinst_HEADERS): Add full-write.h, safe-read.h.
  6416. (libtar_a_SOURCES): Rename full-read.c to safe-read.c.
  6417. * lib/full-write.c: Include full-write.h.
  6418. * src/common.h: Include full-write.h, safe-read.h.
  6419. * src/system.h: (full_read, full_write): Remove decls.
  6420. * src/Makefile.am (datadir): New var; needed for Solaris gettext.
  6421. * src/system.h (bindtextdomain, textdomain): undef before
  6422. defining, to avoid preprocessor warnings with --disable-nls
  6423. on hosts whose locale.h includes libintl.h.
  6424. * lib/xstrtol.c (__strtol): Remove decl; it doesn't work if __strtol
  6425. expands to a macro, which occurs in HP-UX 10.20 with strtoumax.
  6426. (strtol, strtoul): New decls (for pre-ANSI hosts), to replace
  6427. the above decl.
  6428. 1999-07-02 Paul Eggert <[email protected]>
  6429. * Makefile.am (ACINCLUDE_INPUTS): Add $(M4DIR)/mktime.m4.
  6430. * m4/mktime.m4: New file.
  6431. * m4/Makefile.am.in, m4/README: Remove these files.
  6432. * m4/Makefile.am (EXTRA_DIST): Add mktime.m4;
  6433. remove README, Makefile.am.in.
  6434. (Makefile.am): Remove rule; it didn't work in BSD/OS 4.0.
  6435. * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Invoke AC_FUNC_MKTIME,
  6436. not AM_FUNC_MKTIME.
  6437. * src/tar.c: Include signal.h.
  6438. (SIGCHLD): Define to SIGCLD if SIGCLD is defined but SIGCHLD is not.
  6439. (main): Ensure SIGCHLD is not ignored.
  6440. (BACKUP_OPTION, DELETE_OPTION, EXCLUDE_OPTION, GROUP_OPTION,
  6441. MODE_OPTION, NEWER_MTIME_OPTION, NO_RECURSE_OPTION, NULL_OPTION,
  6442. OWNER_OPTION, POSIX_OPTION, PRESERVE_OPTION, RECORD_SIZE_OPTION,
  6443. RSH_COMMAND_OPTION, SUFFIX_OPTION, USE_COMPRESS_PROGRAM_OPTION,
  6444. VOLNO_FILE_OPTION, OBSOLETE_ABSOLUTE_NAMES,
  6445. OBSOLETE_BLOCK_COMPRESS, OBSOLETE_BLOCKING_FACTOR,
  6446. OBSOLETE_BLOCK_NUMBER, OBSOLETE_READ_FULL_RECORDS, OBSOLETE_TOUCH,
  6447. OBSOLETE_VERSION_CONTROL): Make sure they can't be valid chars, so
  6448. they don't overlap with char codes. Use an enum instead of a lot
  6449. of #defines.
  6450. * src/system.h (ISASCII): Remove.
  6451. (CTYPE_DOMAIN, ISDIGIT, ISODIGIT, ISPRINT, ISSPACE, S_ISUID,
  6452. S_ISGID, S_IRUSR, S_IWUSR, S_IXUSR, S_IRGRP, S_IWGRP, S_IXGRP,
  6453. S_IROTH, S_IWOTH, S_IXOTH, MODE_WXUSR, MODE_R, MODE_RW,
  6454. MODE_RWX, MODE_ALL, SEEK_SET, SEEK_CUR, SEEK_END, CHAR_MAX,
  6455. LONG_MAX): New macros.
  6456. * src/incremen.c (ISDIGIT, ISSPACE): Remove; now in system.h.
  6457. (read_directory_file): Cast ISSPACE arg to unsigned char.
  6458. * src/misc.c (ISPRINT): Remove; now in system.h.
  6459. (remove_any_file): Add brackets to pacify gcc -Wall.
  6460. * src/list.c: Don't include <ctype.h>; system.h already does this.
  6461. (ISODIGIT, ISSPACE): Remove; now in system.h.
  6462. (decode_header): No need to AND mode with 07777; MODE_FROM_OCT
  6463. does this now.
  6464. (from_oct): Cast ISSPACE arg to unsigned char.
  6465. * src/create.c (mode_to_oct): Translate modes from internal to
  6466. external form.
  6467. * src/list.c (mode_from_oct): Translate modes from external to
  6468. internal form. Do not complain about unrecognized mode bits.
  6469. * src/common.h (TSUID, TSGID, TSVTX, TUREAD, TUWRITE, TUEXEC,
  6470. TGREAD, TGWRITE, TGEXEC, TOREAD, TOWRITE, TOEXEC): Remove undefs.
  6471. * src/extract.c: (extr_init, make_directories, extract_archive):
  6472. Do not assume mode bits have traditional Unix values.
  6473. * src/list.c (decode_mode): Likewise.
  6474. * src/create.c (start_header, dump_file): Likewise.
  6475. * src/buffer.c (child_open_for_compress,
  6476. child_open_for_uncompress, open_archive, (close_archive): Likewise.
  6477. * src/compare.c (diff_archive): Likewise.
  6478. * src/extract.c (set_mode): Use %04 not %0.4 format.
  6479. (extract_sparse_file): Do not use data_block uninitialized.
  6480. Check for lseek failures.
  6481. * src/rtapelib.c (rmt_lseek__):
  6482. Convert lseek whence values to portable integers on the wire.
  6483. * src/rmt.c (main): Likewise. Check for whence values out of range.
  6484. * src/create.c (finish_sparse_file): Use lseek whence macros
  6485. instead of integers.
  6486. * src/buffer.c (backspace_output): Likewise.
  6487. * src/compare.c (diff_archive, verify_volume): Likewise.
  6488. * src/delete.c (move_archive): Likewise.
  6489. * src/extract.c (extract_sparse_file): Likewise.
  6490. * src/create.c (dump_file): Do not invoke finish_sparse_file
  6491. on a negative file descriptor.
  6492. * src/buffer.c: Add braces to pacify gcc -Wall.
  6493. * src/compare.c (diff_sparse_files): Report lseek errors.
  6494. * configure.in (ALL_LINGUAS): Add cs, es, ru.
  6495. * PORTS, TODO: gnu.ai.mit.edu -> gnu.org
  6496. * src/arith.c, src/buffer.c (new_volume): Don't put ^G in
  6497. message to be internationalized; \a doesn't work with msgfmt.
  6498. * src/tar.c (long_options, main, usage, OPTION_STRING):
  6499. Remove -E or --ending-file.
  6500. * src/list.c (read_and): Likewise.
  6501. * src/common.h (ending_file_option): Likewise.
  6502. * src/buffer.c (close_archive): Likewise.
  6503. * tests/after: Don't run two commands together in a pipeline,
  6504. as some old shells mishandle pipeline exit status.
  6505. 1999-06-28 Paul Eggert <[email protected]>
  6506. * configure.in (AM_INIT_AUTOMAKE): version 1.12.64015.
  6507. * NEWS: Describe changes since 1.12.
  6508. * README: Update bug reporting address; move paxutils ref to NEWS.
  6509. Handle EINTR correctly.
  6510. * lib/Makefile.am (libtar_a_SOURCES): Add full-read.c, full-write.c.
  6511. * lib/full-read.c, lib/full-write.c: New files.
  6512. * src/buffer.c (child_open_for_compress, child_open_for_uncompress):
  6513. Prefer full_read to read and full_write to write.
  6514. * src/compare.c (process_rawdata, diff_sparse_files): Likewise.
  6515. * src/create.c (deal_with_sparse, finish_sparse_file, dump_file):
  6516. Likewise.
  6517. * src/extract.c (extract_sparse_file): Likewise.
  6518. * src/rmt.c (get_string, main, report_error_message,
  6519. report_numbered_error): Likewise.
  6520. * src/rmt.h (rmtread, rmtwrite): Likewise.
  6521. * src/rtapelib.c (do_command, get_status_string, rmt_read__,
  6522. rmt_write__, rmt_ioctl__): Likewise.
  6523. * src/update.c (append_file): Likewise.
  6524. * src/system.h (full_read, full_write): New decls.
  6525. * po/POTFILES.in: Add lib/argmatch.c, lib/error.c lib/getopt.c,
  6526. lib/xmalloc.c, src/arith.c, src/misc.c.
  6527. * src/system.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
  6528. New macros. All uses of STDIN and STDOUT changed.
  6529. * src/rmt.c (prepare_record_buffer, main): Use STDIN_FILENO
  6530. instead of 0 and STDOUT_FILENO instead of 1.
  6531. * src/rtapelib.c (_rmt_rexec): Use STDIN_FILENO and STDOUT_FILENO
  6532. instead of fileno (stdin) and fileno (stdout) or 0 and 1.
  6533. * src/rmt.c (private_strerror): Avoid const. Translate results.
  6534. * tests/Makefile.am (TESTS): Remove incremen.sh; it doesn't work
  6535. in the presence of NFS clock skew.
  6536. 1999-06-25 Paul Eggert <[email protected]>
  6537. * configure.in (AM_INIT_AUTOMAKE): version 1.12.64014.
  6538. * src/buffer.c (write_archive_buffer): New function.
  6539. (child_open_for_compress, flush_write, flush_read): Use it to write
  6540. buffers.
  6541. (open_archive): Report error if fstat of archive fails.
  6542. Improve efficiency of check for /dev/null.
  6543. Also, fix some corner cases with remote archives and /dev/null checking.
  6544. (close_archive): Test for input fifo only if not remote.
  6545. Truncate output archive only if it's not remote.
  6546. * src/misc.c (remove_any_file):
  6547. Don't terminate if you see . or ..; just skip them.
  6548. 1999-06-18 Paul Eggert <[email protected]>
  6549. * configure.in (AM_INIT_AUTOMAKE): version 1.12.64013.
  6550. Output sizes using a format that's more compatible with
  6551. traditional tar (and with GNU Emacs).
  6552. * src/common.h (GID_TO_OCT, MAJOR_TO_OCT, MINOR_TO_OCT,
  6553. MODE_TO_OCT, SIZE_TO_OCT, UID_TO_OCT, UINTMAX_TO_OCT):
  6554. Don't subtract 1 from size.
  6555. * src/create.c (to_oct): Prepend leading zeros, not spaces.
  6556. Output a trailing NUL unless the value won't fit without it.
  6557. (finish_header): No need to append NUL to chksum, now that
  6558. to_oct is doing it.
  6559. 1999-06-16 Paul Eggert <[email protected]>
  6560. * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64012.
  6561. * src/Makefile.am (LDADD): Link libtar.a after @INTLLIBS@, since
  6562. @INTLLIBS@ might invoke rpl_realloc.
  6563. * src/tar.c (backup_type): Remove decl; backupfile.h now has it.
  6564. (intconv): Remove; use xstrto* fns instead.
  6565. ("xstrtol.h"): Include.
  6566. (check_decimal): Remove.
  6567. (long_options, usage, OPTION_STRING, decode_options):
  6568. Remove -y, --bzip2, --unbzip2.
  6569. (decode_options): Use xget_version instead of get_version.
  6570. Check for overflow with -b and -L and RECORD_SIZE_OPTION.
  6571. Replace invocations of check_decimal with xstrtoumax.
  6572. * tests/preset.in (echo_n, echo_c): Remove.
  6573. * tests/after: Don't rely on $echo_c and $echo_n.
  6574. * lib/addext.c, lib/dirname.c, lib/lchown.c, lib/lchown.h,
  6575. lib/malloc.c, lib/mktime.c, lib/realloc.c, lib/strtol.c, lib/strtoul.c,
  6576. lib/strtoull.c, lib/strtoumax.c, lib/utime.c, lib/xstrtol.c,
  6577. lib/xstrtol.h, lib/xstrtoul.c, lib/xstrtoumax.c,
  6578. m4/Makefile.am.in, m4/README, m4/ccstdc.m4, m4/d-ino.m4,
  6579. m4/gettext.m4, m4/inttypes_h.m4, m4/isc-posix.m4,
  6580. m4/jm-mktime.m4, m4/largefile.m4, m4/lcmessage.m4,
  6581. m4/malloc.m4, m4/progtest.m4, m4/realloc.m4, m4/uintmax_t.m4,
  6582. m4/ulonglong.m4, m4/utimbuf.m4, m4/utime.m4, m4/utimes.m4,
  6583. m4/xstrtoumax.m4: New files.
  6584. * configure.in(fp_PROG_ECHO): Remove; no longer needed.
  6585. (AC_SYS_LARGEFILE): Renamed from AC_LFS.
  6586. (jm_AC_HEADER_INTTYPES_H): Replaces inline code.
  6587. (jm_STRUCT_DIRENT_D_INO, jm_AC_TYPE_UINTMAX_T, jm_AC_PREREQ_XSTRTOUMAX): Add.
  6588. (AC_CHECK_FUNCS): Remove lchown.
  6589. (AC_REPLACE_FUNCS): Remove basename, dirname.
  6590. Add lchown, strtol, strtoul.
  6591. (jm_FUNC_MKTIME): Add.
  6592. (LIBOBJS): Replace .o with $U.o, so that the .o files in LIBOBJS
  6593. are also built via the ANSI2KNR-filtering rules.
  6594. Use a no-op line to work around bug in automake 1.4 with malloc and
  6595. realloc.
  6596. (AC_OUTPUT): Add m4/Makefile.
  6597. * lib/Makefile.am (EXTRA_DIST):
  6598. Add lchown.c, malloc.c, mktime.c, realloc.c,
  6599. strtol.c, strtoul.c, strtoull.c, strtoumax.c, utime.c.
  6600. (noinst_HEADERS): Add lchown.h, modechange.h, xstrtol.h.
  6601. (libtar_a_SOURCES): Add addext.c, basename.c, xstrtol.c,
  6602. xstrtoul.c, xstrtoumax.c. Remove getversion.c.
  6603. ($(srcdir)/getdate.c:): Remove `expect conflicts' line.
  6604. * src/system.h (uintmax_t): Don't declare; configure now does this.
  6605. * src/common.h (backup_type): New decl.
  6606. * src/common.h, src/misc.c, src/tar.c:
  6607. Move include of backupfile.h to common.h.
  6608. * src/misc.c (maybe_backup_file):
  6609. Pass backup_type to find_backup_file_name.
  6610. * src/list.c (print_header): Change sizes of uform and gform from 11 to
  6611. UINTMAX_STRSIZE_BOUND.
  6612. * doc/tar.texi: Remove --bzip2.
  6613. Fix @xref typos reported by latest makeinfo.
  6614. * Makefile.am (ACLOCAL_AMFLAGS): New macro.
  6615. (SUBDIRS): Add m4.
  6616. (M4DIR, ACINCLUDE_INPUTS): New macros.
  6617. ($(srcdir)/acinclude.m4): New rule.
  6618. * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
  6619. HAVE_INTTYPES_H, HAVE_LC_MESSAGES, HAVE_STPCPY): Remve #undefs;
  6620. now generated automatically by autoconf.
  6621. 1999-05-15 Paul Eggert <[email protected]>
  6622. * doc/tar.texi: Remove -y.
  6623. 1999-04-09 Paul Eggert <[email protected]>
  6624. * src/system.h (INT_STRLEN_BOUND): Fix off-by-factor-of-10 typo
  6625. (we were allocating too much storage).
  6626. (uintmax_t): Don't declare; configure now does this.
  6627. * ABOUT-NLS: Update to gettext 0.10.35 edition.
  6628. 1999-03-22 Paul Eggert <[email protected]>
  6629. * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64010
  6630. * acinclude.m4 (AC_LFS_FLAGS):
  6631. Don't use -mabi=n32 with GCC on IRIX 6.2; it's the default.
  6632. (AC_LFS): -n32, -o32, and -n64 are CPPFLAGS, not CFLAGS.
  6633. (jm_FUNC_MALLOC, jm_FUNC_REALLOC): New macros.
  6634. * configure.in (jm_FUNC_MALLOC, jm_FUNC_REALLOC):
  6635. New macros; needed for latest GNU xmalloc.c.
  6636. * Makefile.am (noinst_HEADERS): Add quotearg.h, xalloc.h.
  6637. (libtar_a_SOURCES): Add quotearg.c.
  6638. * list.c: Include <quotearg.h>.
  6639. (from_oct): Add forward decl.
  6640. (read_header): Return HEADER_FAILURE if we can't parse the checksum.
  6641. (from_oct): Report an error only if TYPE is nonzero.
  6642. Quote any funny characters in bad header.
  6643. 1999-03-20 Paul Eggert <[email protected]>
  6644. * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64009
  6645. * acinclude.m4 (AC_LFS_FLAGS): Add support for IRIX 6.2 and later.
  6646. (AC_LFS_SPACE_APPEND): Assume $2 is quoted properly; all callers
  6647. changed.
  6648. (AC_LFS): Simplify AIX revision number test.
  6649. 1999-03-17 Paul Eggert <[email protected]>
  6650. * NEWS, configure.in (AM_INIT_AUTOMAKE): version 1.12.64008
  6651. * configure.in (AC_VALIDATE_CACHED_SYSTEM_TUPLE):
  6652. Remove; it doesn't work that well
  6653. with AC_CANONICAL_HOST.
  6654. (fp_WITH_INCLUDED_MALLOC): Remove; we'll just use the system malloc.
  6655. * Makefile.am (EXTRA_DIST): Remove AC-PATCHES, AM-PATCHES, BI-PATCHES.
  6656. * Makefile.am (EXTRA_DIST): Remove gmalloc.c.
  6657. * acinclude.m4 (fp_WITH_INCLUDED_MALLOC): Remove.
  6658. * tar.texi: Fix bug-report addr.
  6659. * README: Remove --with-included-malloc.
  6660. Upgrade version numbers of build software.
  6661. 1999-03-07 Paul Eggert <[email protected]>
  6662. * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.12.64007.
  6663. * acinclude.m4 (AM_WITH_NLS): Port to Solaris 2.5.1,
  6664. where bindtextdomain and gettext require -lintl.
  6665. (AC_LFS_FLAGS): Simplify so that it only gets the flags;
  6666. `no' means it failed.
  6667. (AC_LFS_SPACE_APPEND, AC_LFS_MACRO_VALUE): New macros.
  6668. (AC_LFS): Use them. Set _FILE_OFFSET_BITS, _LARGEFILE_SOURCE, and
  6669. _LARGE_FILES from LFS_CFLAGS, so that in the normal case we don't need
  6670. to add anything to the command line (it's all in config.h).
  6671. Put any extra -D and -I options into CPPFLAGS, the rest into CFLAGS.
  6672. 1999-03-01 Paul Eggert <[email protected]>
  6673. * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.12.64006.
  6674. * acinclude.m4 (AC_LFS_FLAGS): Port to AIX 4.2.
  6675. * src/list.c: (gid_from_oct, major_from_oct, minor_from_oct,
  6676. mode_from_oct, off_from_oct, size_from_oct, time_from_oct,
  6677. uid_from_oct, uintmax_from_oct): Use TYPE_MAXIMUM instead of macros
  6678. like OFF_MAX, which are not reliable
  6679. (e.g. OFF_MAX in AIX 4.2 is incorrect).
  6680. * src/system.h (GID_MAX, MAJOR_MAX, MINOR_MAX, MODE_MAX, OFF_MAX,
  6681. SIZE_MAX, TIME_MAX,UID_MAX, UINTMAX_MAX): Remove; no longer used.
  6682. * src/incremen.c (get_directory_contents):
  6683. Don't use statx if _LARGE_FILES; it doesn't work under AIX 4.2.
  6684. Have statx depend on STX_HIDDEN, not AIX.
  6685. * src/create.c (to_oct):
  6686. New parameter substitute, giving a substitute value to use
  6687. when the original value is out of range. Do not append a space to the
  6688. output; modern tars don't. When a value is out of range, specify the
  6689. maximum value, not the number of bits.
  6690. (GID_NOBODY, UID_NOBODY): New macros.
  6691. (gid_to_oct, uid_to_oct): Use them as substitutes.
  6692. (finish_header): Do not assume that UINTMAX_TO_OCT appends a space.
  6693. (dump_file): Check whether the file changed as we read it.
  6694. * src/rmt.c (main): Remove suspicious AIX/386 code.
  6695. 1999-02-19 Paul Eggert <[email protected]>
  6696. * intl/localealias.c (read_alias_file): Don't assume that memcpy
  6697. returns a type compatible with char *; it doesn't on SunOS
  6698. 4.1.4 with Sun cc, since <string.h> doesn't declare memcpy.
  6699. * NEWS, configure.in (AM_INIT_AUTOMAKE): Version 1.12.64005.
  6700. * src/tar.c (long_options, usage): Prefer --unbzip2 to --bunzip2.
  6701. * doc/tar.texi: Add --bzip2, --unbzip2 options.
  6702. * configure.in (AC_CANONICAL_HOST, AC_VALIDATE_CACHED_SYSTEM_TUPLE):
  6703. Add.
  6704. (AC_LINK_FILES): Omit; AM_GNU_GETTEXT now does this.
  6705. (AC_OUTPUT): Omit munging of po/Makefile; AM_GNU_GETTEXT now does this.
  6706. * acinclude.m4 (AM_WITH_NLS):
  6707. Update to latest gettext version (serial 5).
  6708. (AC_LFS_FLAGS): New macro
  6709. (AC_LFS): Use it. Append to CFLAGS, LDFLAGS, LDLIBS instead of
  6710. working only with unset variables. Append to CFLAGS, not CPPFLAGS.
  6711. Work properly in cross-compilation scenario, by checking for getconf
  6712. with AC_CHECK_TOOL and by ditching uname in favor of
  6713. AC_CANONICAL_HOST and $host_os. Add --disable-lfs option.
  6714. * lib/getdate.y: Update to fileutils 4.0 getdate.y, with one patch:
  6715. replace FORCE_ALLOCA_H with HAVE_ALLOCA_H.
  6716. * lib/Makefile.am (AUTOMAKE_OPTIONS): Append ../src/ansi2knr,
  6717. since getdate.y now uses ANSI code.
  6718. * config.guess, config.sub: New files; taken from automake 1.4.
  6719. * intl/Makefile.in, intl/VERSION, intl/bindtextdom.c,
  6720. intl/cat-compat.c, intl/dcgettext.c, intl/dgettext.c,
  6721. intl/explodename.c, intl/finddomain.c, intl/gettext.c,
  6722. intl/gettext.h, intl/gettextP.h, intl/hash-string.h,
  6723. intl/l10nflist.c, intl/libgettext.h, intl/loadinfo.h,
  6724. intl/loadmsgcat.c, intl/localealias.c, intl/textdomain.c:
  6725. Update to GNU gettext 0.10.35, with patches as per GCC snapshot 990109.
  6726. 1999-02-01 Paul Eggert <[email protected]>
  6727. * src/tar.c: Update copyright.
  6728. * NEWS: 1.12.64004
  6729. 1999-02-01 Paul Eggert <[email protected]>
  6730. * NEWS, configure.in: Version 1.12.64004
  6731. * configure.in (AC_LFS): Use this macro, instead of open-coding it.
  6732. * acinclude.m4 (AC_LFS, AM_PROG_CC_STDC): New macros.
  6733. * src/extract.c (extract_archive): Fix bug when extracting sparse
  6734. files: they were trashing the tar file header.
  6735. * src/tar.c: (long_options, usage, OPTION_STRING, decode_options):
  6736. Add -y or --bzip2 or --bunzip2 option.
  6737. 1999-01-30 Paul Eggert <[email protected]>
  6738. * src/names.c (cached_no_such_uname, cached_no_such_gname,
  6739. cached_no_such_uid, cached_no_such_gid): New vars.
  6740. (uid_to_uname, gid_to_gname, uname_to_uid, gname_to_gid):
  6741. Cache failures, too.
  6742. * src/tar.c (decode_options):
  6743. Don't pass names longer than UNAME_FIELD_SIZE to
  6744. uname_to_uid, as it messes up the cache. Similarly for gname_to_uid.
  6745. 1999-01-27 Paul Eggert <[email protected]>
  6746. * NEWS, configure.in: Version 1.12.64003
  6747. * src/buffer.c (backspace_output, close_archive): Cast
  6748. rmtlseek position arg to off_t, for benefit of K&R compilers
  6749. with long long.
  6750. * src/compare.c (verify_volume): Likewise.
  6751. * NEWS, configure.in: Version 1.12.64002
  6752. * src/create.c (gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct,
  6753. off_to_oct, size_to_oct, time_to_oct, uid_to_oct):
  6754. Cast arg to uintmax_t for benefit of pre-ANSI compilers with long long.
  6755. * src/list.c: (gid_from_oct, major_from_oct, minor_from_oct,
  6756. mode_from_oct, off_from_oct, size_from_oct, time_from_oct,
  6757. uid_from_oct): Likewise.
  6758. 1999-01-25 Paul Eggert <[email protected]>
  6759. * incremen.sh: Fix timing bug in regression test.
  6760. 1999-01-22 Paul Eggert <[email protected]>
  6761. * NEWS, configure.in: Update version
  6762. * Makefile.am (localedir): Change to $(datadir)/locale.
  6763. (DEFS): New macro, defining LOCALEDIR.
  6764. (tar.o, tar._o, rmt.o, rmt._o): Remove.
  6765. (INCLUDES): Add -I..
  6766. * Makefile.am (localedir): Change to $(datadir)/locale.
  6767. 1999-01-21 Paul Eggert <[email protected]>
  6768. * NEWS, README, configure.in: Unofficial version 1.12.64001.
  6769. * tests/Makefile.am (localedir): Change to $(datadir)/locale.
  6770. * src/Makefile.am (localedir): Likewise.
  6771. (DEFS): New macro, defining LOCALEDIR.
  6772. (tar.o, tar._o, rmt.o, rmt._o): Remove.
  6773. (INCLUDES): Add `-I..'.
  6774. * tests/incremen.sh: Fix timing bug.
  6775. 1999-01-20 Paul Eggert <[email protected]>
  6776. * NEWS, README, configure.in: Unofficial version 1.12.64000.
  6777. `lfs.7' changed to `64000' in version number
  6778. to conform to gnits standards.
  6779. * COPYING, INSTALL, doc/texinfo.tex, install-sh, missing,
  6780. mkinstalldirs, ansi2knr.c: Update to latest public versions.
  6781. Rebuild with automake 1.4 and autoconf 2.13, to work around some
  6782. porting problems.
  6783. 1998-12-07 Paul Eggert <[email protected]>
  6784. * NEWS, README, configure.in: Unofficial version 1.12.lfs.6.
  6785. * src/list.c (read_header):
  6786. Accept file names as specified by POSIX.1-1996 section 10.1.1.
  6787. 1998-11-30 Paul Eggert <[email protected]>
  6788. * configure.in: Quote the output of uname.
  6789. * src/extract.c (set_stat): chmod after chown even when not root;
  6790. if we are using --same-owner this is needed e.g. on Solaris 2.5.1.
  6791. 1998-11-15 Paul Eggert <[email protected]>
  6792. * NEWS, README, configure.in: Unofficial version 1.12.lfs.5.
  6793. * configure.in (ac_test_CPPFLAGS, ac_test_LDFLAGS, ac_test_LIBS,
  6794. ac_getconfs, ac_result): Special case for HP-UX 10.20 or later.
  6795. 1998-10-28 Paul Eggert <[email protected]>
  6796. * NEWS, README, configure.in: Unofficial version 1.12.lfs.4.
  6797. * src/system.h (voidstar): Use void * if __STDC__ is defined,
  6798. not merely nonzero.
  6799. * src/rtapelib.c: Don't use rexec code unless compiled with WITH_REXEC.
  6800. On many installations, rexec is disabled.
  6801. 1998-08-07 Paul Eggert <[email protected]>
  6802. * NEWS, README, configure.in: Unofficial version 1.12.lfs.3.
  6803. * src/names.c (uid_to_uname, gid_to_gname): Don't used cached name
  6804. for nameless users and groups.
  6805. 1998-02-17 Paul Eggert <[email protected]>
  6806. * NEWS, README, configure.in: Unofficial version 1.12.lfs.2.
  6807. * NEWS, README: Add explanation of why this isn't an official version.
  6808. 1998-02-02 Paul Eggert <[email protected]>
  6809. * NEWS, README, configure.in: Unofficial version 1.12.lfs.1.
  6810. This is an unofficial version.
  6811. 1997-12-17 Paul Eggert <[email protected]>
  6812. * src/incremen.c (ST_DEV_MSB): New macro.
  6813. (NFS_FILE_STAT): Use most significant bit of st_dev,
  6814. even if it's unsigned.
  6815. 1997-12-08 Paul Eggert <[email protected]>
  6816. * src/system.h (ST_NBLOCKS): Fix typo in definition.
  6817. 1997-11-19 Paul Eggert <[email protected]>
  6818. * configure.in (HAVE_INTTYPES_H):
  6819. Don't ignore cache variable if it's already set.
  6820. 1997-11-10 Paul Eggert <[email protected]>
  6821. * src/rmt.c (main): Don't assume mt_count is of type daddr_t.
  6822. * src/delete.c (records_read): Now off_t.
  6823. (move_archive): Don't assume mt_count is of type daddr_t.
  6824. 1997-10-30 Paul Eggert <[email protected]>
  6825. * configure.in (CPPFLAGS, LDFLAGS, LIBS):
  6826. Set to appropriate values if large file support
  6827. needs explicit enabling.
  6828. (HAVE_INTTYPES_H, HAVE_ST_FSTYPE_STRING, daddr_t, major_t, minor_t,
  6829. ssize_t):
  6830. New macros to configure.
  6831. (AC_TYPE_MODE_T, AC_TYPE_PID_T, AC_TYPE_OFF_T): Add.
  6832. * acconfig.h (daddr_t, HAVE_INTTYPES_H, HAVE_ST_FSTYPE_STRING,
  6833. major_t, minor_t, ssize_t): New macros.
  6834. * src/arith.h (TARLONG_FORMAT):
  6835. Fix typo: %uld -> %lu. Use unsigned when long long
  6836. (%lld -> %llu).
  6837. (add_to_tarlong_helper, mult_tarlong_helper): 2nd arg is now unsigned long.
  6838. (add_to_tarlong, mult_tarlong): Cast 2nd arg to unsigned long.
  6839. * src/arith.c (add_to_tarlong_helper, mult_tarlong_helper):
  6840. 2nd arg is now unsigned long.
  6841. * src/rmt.c (allocated_size): Now size_t, and now initialized to 0.
  6842. (prepare_record_buffer): Arg is now size_t.
  6843. Remove now-useless casts.
  6844. (main): Use `long' for status, so that it can store ssize_t.
  6845. Use daddr_t, mode_t, size_t, off_t when appropriate.
  6846. Convert daddr_t and off_t values ourselves, since they might be longer
  6847. than long. Convert other types using `long' primitives.
  6848. When processing MTIOCTOP, do not try to pass resulting
  6849. count back, since it won't work (it could be too large) and it's
  6850. not expected anyway.
  6851. * src/update.c:
  6852. (append_file) Use off_t, size_t, ssize_t when appropriate. Remove
  6853. now-useless casts. Use unsigned long to print *_t types, except use
  6854. STRINGIFY_BIGINT for off_t.
  6855. (update_archive): Cast -1 to dev_t when necessary.
  6856. * src/tar.c (check_decimal):
  6857. Now returns 1 if successful, 0 otherwise, and returns
  6858. uintmax_t value into new arg. Check for arithmetic overflow.
  6859. (decode_options): Avoid overflow if record_size fits in size_t but not int.
  6860. Check for overflow on user or group ids.
  6861. * src/compare.c (diff_init, process_rawdata, read_and_process,
  6862. diff_sparse_files, diff_archive):
  6863. Use off_t, pid_t, size_t, ssize_t when appropriate.
  6864. Remove now-useless casts. Use unsigned long to print *_t types,
  6865. except use STRINGIFY_BIGINT for off_t.
  6866. (process_noop, process_rawdata, process_dumpdir, read_and_process):
  6867. Size arg is now size_t.
  6868. (diff_sparse_files): Arg is now off_t. Check for size_t overflow
  6869. when allocating buffer.
  6870. * src/rtapelib.c:
  6871. (do_command, rmt_open__, rmt_read__, rmt_lseek__, rmt_ioctl__):
  6872. Use pid_t, size_t, ssize_t when appropriate. Remove now-useless casts.
  6873. Use unsigned long to print *_t types, except use STRINGIFY_BIGINT for
  6874. off_t.
  6875. (get_status_string, get_status_off): New function.
  6876. (get_status): Now returns long, so that it can store ssize_t.
  6877. Invoke get_status_string to do the real work.
  6878. (rmt_read__, rmt_write__): Now returns ssize_t. Size arg is now size_t.
  6879. (rmt_lseek__): Now returns off_t, using new get_status_off function.
  6880. (rmt_ioctl__): Convert mt_count by hand,
  6881. since it might be longer than long.
  6882. * src/mangle.c (extract_mangle):
  6883. Check for overflow when converting off_t to size_t.
  6884. Use off_t, size_t when appropriate. Remove now-useless casts.
  6885. * src/system.h (mode_t): Remove; now done by autoconf.
  6886. (ST_NBLOCKS): Do not overflow if st_size is near maximum.
  6887. Return number of ST_NBLOCKSIZE-byte blocks,
  6888. not number of 512-byte blocks;
  6889. this also helps to avoid overflow.
  6890. (st_blocks): Declare if needed.
  6891. (ST_NBLOCKSIZE): New macro.
  6892. (<limits.h>, <inttypes.h>): Include if available.
  6893. (CHAR_BIT): New macro.
  6894. (uintmax_t): New typedef.
  6895. (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_STRLEN_BOUND,
  6896. UINTMAX_STRSIZE_BOUND, GID_MAX, MAJOR_MAX, MINOR_MAX, MODE_MAX,
  6897. OFF_MAX, SIZE_MAX, TIME_MAX, UID_MAX, UINTMAX_MAX): New macros.
  6898. * src/names.c (name_init):
  6899. Fix typo in error message: FILE* was passed, but char*
  6900. was wanted.
  6901. (read_name_from_file, name_gather, addname, name_match, name_scan,
  6902. add_exclude): Use size_t when appropriate. Remove now-useless casts.
  6903. (exclude_pool_size, allocated_exclude_pool_size): Now size_t.
  6904. * src/extract.c (newdir_umask, current_umask): Now mode_t.
  6905. (extract_sparse_file): Args now use off_t.
  6906. (set_mode, set_stat, make_directories, extract_sparse_file,
  6907. extract_archive): Use off_t, size_t, ssize_t when appropriate. Remove
  6908. now-useless casts. Use unsigned long to print *_t types, except use
  6909. STRINGIFY_BIGINT for off_t.
  6910. * src/misc.c (quote_copy_string):
  6911. Use size_t when appropriate. Remove now-useless casts.
  6912. * src/list.c (read_and, list_archive, read_header, decode_mode,
  6913. print_header, print_for_mkdir):
  6914. Use mode_t, off_t, size_t when appropriate. Remove
  6915. now-useless casts. Use unsigned long to print *_t types, except use
  6916. STRINGIFY_BIGINT for off_t.
  6917. (read_header): Check for overflow when converting header size.
  6918. (from_oct): Now static. Now returns uintmax_t. `where' arg is now
  6919. const char *. Size arg is now size_t. Now takes new type and maxval
  6920. args. Compute result using uintmax_t, not long. Report error if
  6921. field does not contain octal number in range.
  6922. (gid_from_oct, major_from_oct, minor_from_oct, mode_from_oct,
  6923. off_from_oct, size_from_oct, time_from_oct, uid_from_oct,
  6924. uintmax_from_oct): New functions.
  6925. (stringify_uintmax_t_backwards): New function.
  6926. (decode_mode, print_for_mkdir): Mode arg is now mode_t.
  6927. (skip_file): Offset arg is now off_t.
  6928. * src/buffer.c (record_start_block, save_totsize, save_sizeleft,
  6929. real_s_totsize, real_s_sizeleft, current_block_ordinal):
  6930. Now off_t.
  6931. (write_error): Arg is now ssize_t.
  6932. (child_pid): Now pid_t.
  6933. (available_space_after): Now size_t.
  6934. (child_open_for_compress, child_open_for_uncompress, flush_write,
  6935. open_archive, flush_write, write_error, flush_read, close_archive):
  6936. Use pid_t, ssize_t, size_t when appropriate. Remove now-useless
  6937. casts. Use unsigned long to print *_t types, except use
  6938. STRINGIFY_BIGINT for off_t.
  6939. * src/delete.c (records_read): Now daddr_t.
  6940. (move_archive): Arg is now daddr_t. Check for overflow when
  6941. computing offset.
  6942. (move_archive, delete_archive_members): Use daddr_t, off_t when
  6943. appropriate. Remove now-useless casts.
  6944. * src/rmt.h (rmt_read__, rmt_write__): Now returns ssize_t.
  6945. (rmt_lseek): Now returns off_t.
  6946. * src/create.c (to_oct):
  6947. Now static. Value arg is now uintmax_t. Accept new args
  6948. giving name of type of octal field, for error messages. Report an
  6949. error if the value is too large to fit in the field.
  6950. (gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct, off_to_oct,
  6951. size_to_oct, time_to_oct, uid_to_oct, uintmax_to_oct): New functions.
  6952. (write_eot, write_long, finish_header, deal_with_sparse,
  6953. finish_sparse_file, dump_file): Use dev_t, off_t, ssize_t, size_t when
  6954. appropriate. Remove now-useless casts. Use unsigned long to print
  6955. *_t types, except use STRINGIFY_BIGINT for off_t.
  6956. (find_new_file_size): 1st arg is now off_t*.
  6957. (finish_sparse_file): Args now use off_t, not long.
  6958. Check for lseek error.
  6959. (create_archive, dump_file): Cast -1 to dev_t when necessary.
  6960. (dump_file): Device arg is now dev_t.
  6961. Avoid overflow when testing whether file has holes
  6962. by using the new ST_NBLOCKSIZE macro.
  6963. * src/incremen.c (struct accumulator, add_to_accumulator,
  6964. get_directory_contents, add_hierarchy_to_namelist, gnu_restore):
  6965. Use size_t for sizes.
  6966. (struct directory, get_directory_contents, add_hierarchy_to_namelist):
  6967. Use dev_t, ino_t for devices and inodes.
  6968. (gnu_restore): Use off_t for file offsets.
  6969. (struct directory): Use char for flags. Add new flag `nfs'.
  6970. (nfs): New constant
  6971. (NFS_FILE_STAT): New macro.
  6972. (note_directory): Accept struct stat * instead of
  6973. device and inode number. All callers changed.
  6974. (note_directory, get_directory_contents):
  6975. Use NFS_FILE_STAT to determine whether directory is an NFS directory.
  6976. (write_dir_file): Cast time_t to unsigned long before printing as %lu.
  6977. * src/common.h (record_size, struct name, struct sp_array,
  6978. available_space_after):
  6979. Use size_t for sizes.
  6980. (save_sizeleft, save_totsize, current_block_ordinal, skip_file):
  6981. Use off_t for file offsets.
  6982. (struct name): dir_contents is now const char *, not char *.
  6983. (dump_file, get_directory_contents): Use dev_t for devices.
  6984. (to_oct): Remove decl.
  6985. (GID_TO_OCT, MAJOR_TO_OCT, MINOR_TO_OCT, MODE_TO_OCT, SIZE_TO_OCT,
  6986. UID_TO_OCT, UINTMAX_TO_OCT, OFF_TO_OCT, TIME_TO_OCT, STRINGIFY_BIGINT,
  6987. GID_FROM_OCT, MAJOR_FROM_OCT, MINOR_FROM_OCT, MODE_FROM_OCT,
  6988. OFF_FROM_OCT, SIZE_FROM_OCT, TIME_FROM_OCT, UID_FROM_OCT,
  6989. UINTMAX_FROM_OCT): New macros.
  6990. (gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct, off_to_oct,
  6991. size_to_oct, time_to_oct, uid_to_oct, uintmax_to_oct,
  6992. stringify_uintmax_t_backwards, gid_from_oct, major_from_oct,
  6993. minor_from_oct, mode_from_oct, off_from_oct, size_from_oct,
  6994. time_from_oct, uid_from_oct, uintmax_from_oct): New decls.
  6995. (print_for_mkdir): 2nd arg is now mode_t.
  6996. -----
  6997. See ChangeLog.1 for earlier changes.
  6998. -----
  6999. Local Variables:
  7000. mode: change-log
  7001. version-control: never
  7002. End: