ChangeLog 265 KB

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