ChangeLog 264 KB

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