123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805 |
- 2008-11-30 Sergey Poznyakoff <gray@gnu.org.ua>
- by Jim Meyering.
- 2008-11-25 Sergey Poznyakoff <gray@gnu.org.ua>
- Do not try to drain the input pipe before closing the
- archive.
-
- sys_drain_input_pipe. Pass hit_eof as the second
- argument to sys_wait_for_child.
- (sys_wait_for_child): Declare second argument.
- (sys_wait_for_child): Take two arguments. The second one helps to
- decide whether to tolerate child termination on SIGPIPE.
- 2008-11-03 Sergey Poznyakoff <gray@gnu.org.ua>
- `-V label -M' from working.
- 2008-10-30 Sergey Poznyakoff <gray@gnu.org.ua>
- transformation scope flags.
- (XFORM_REGFILE, XFORM_LINK, XFORM_SYMLINK, XFORM_ALL): New macros.
- (transform_name, transform_member_name, transform_name_fp): Take
- an additional argument, specifying scope flags.
- transform_member_name. It is done in read_header.
- argument.
- (transform_member_name): 2nd arg is int.
- (decode_header): Transform file name and link target names.
- (transform_flags): New variable.
- (parse_transform_expr): Parse transformation scope flags. Allow to
- set global flags using `flags=' syntax.
- (_transform_name_to_obstack, transform_name_fp)
- (transform_name): Take an additional argument, specifying scope
- flags.
- 2008-10-19 Sergey Poznyakoff <gray@gnu.org.ua>
- which was always false on a first record and thus disabled record
- size autodetection. Thanks Ed Leaver for the patch.
- (_gnu_flush_read): Handle blocking_factor == 1.
-
- 2008-10-16 Sergey Poznyakoff <gray@gnu.org.ua>
- explicitly required. Thanks Cyril Strejc for reporting the
- problem.
- --no-transform-symlinks. New alias --xform to the --transform
- option.
-
- the loop.
-
- 2008-10-07 Sergey Poznyakoff <gray@gnu.org.ua>
- 2008-10-05 Xavier Hienne <xavier.hienne@free.fr> (tiny change)
- `else'.
- 2008-09-24 Sergey Poznyakoff <gray@gnu.org.ua>
- 2008-09-23 Sergey Poznyakoff <gray@gnu.org.ua>
- filename_terminator, this was a leftover from 1.13.
- 2008-09-18 Sergey Poznyakoff <gray@gnu.org.ua>
- 2008-09-07 Sergey Poznyakoff <gray@gnu.org.ua>
- (attach_directory): Bugfix - add missing return statement.
- 2008-07-31 Sergey Poznyakoff <gray@gnu.org.ua>
- type of `name'.
- (dirhead, dirtail): New statics.
- (make_directory): Reflect changes to struct directory.
- (free_directory, attach_directory): New functions.
- (dirlist_replace_prefix): New function.
- (note_directory): Use attach_directory, instead of make_directory,
- (find_directory, find_directory_meta): Use free_directory.
- (procdir): Replace directory prefixes in directory list to avoid
- marking subdirectories as renamed after renaming their parent
- directory.
- (append_incremental_renames): Iterate over directory list, not
- hash table, to preserve logical ordering of renames.
- rename05.at.
-
- 2008-07-24 Sergey Poznyakoff <gray@gnu.org.ua>
- than record size.
- of eventual flush_archive occurring in the middle of buffer
- move.
- Increment records_written only if _flush_write was able to write
- something.
- 2008-06-26 Sergey Poznyakoff <gray@gnu.org.ua>
- (magic): Add lzop support. Proposed by Kevin Day
- <thekevinday@gmail.com>.
- (check_compressed_archive): Do not use autodetect if the
- compression program was specified explicitly.
- Fall back to analyzing archive name, if the autodetection fails.
- New short option -J (alias for --lzma).
- diagnostics.
- (_gnu_flush_write): Improve error checking. Adjust
- real_s_sizeleft before calling new_volume to avoid creating
- malformed multivolume headers.
- tests/longv7.at, tests/lustar01.at, tests/lustar02.at,
- tests/shortfile.at: Update to match new diagnostic wording
- (see 2008-05-06).
-
- 2008-06-14 Sergey Poznyakoff <gray@gnu.org.ua>
-
- 2008-06-14 Dan Drake <dan@dandrake.org> (tiny change)
- Darcs.
- 2008-05-06 Sergey Poznyakoff <gray@gnu.org.ua>
- wording proposed by Karl Berry.
- 2008-02-20 Sergey Poznyakoff <gray@gnu.org.ua>
- (dumpdir_create0,dumpdir_create,dumpdir_free,dumpdir_locate)
- (dumpdir_first,dumpdir_next): New functions.
- (dumpdir_first,dumpdir_next): New functions.
- (dumpdir_locate): Rewrite using binary search.
- (struct directory): Change members char *contents, *icontents to
- struct dumpdir *dump, *idump. All references updated.
- (note_directory): Last arg is const.
- tests/rename03.at: Insert calls to sleep between creation of files
- and adding them to the archive.
-
- 2008-03-31 Sergey Poznyakoff <gray@gnu.org.ua>
- files.
- 2008-03-27 Sergey Poznyakoff <gray@gnu.org.ua>
- !PROOF.
- (untabify, final, check-format, check-refs, check-fixmes)
- (check-unrevised, all-check-docs, check-docs): New rules.
-
- one. Patch by Jean-Louis Martineau.
- Compare device numbers only if check_device_option is set.
- --check-device. Proposed by Jean-Louis Martineau.
- (parse_opt): Hanlde new options.
- (decode_options): Initialize check_device_option to true.
-
- 2008-03-06 Sergey Poznyakoff <gray@gnu.org.ua>
- 2008-02-09 Sergey Poznyakoff <gray@gnu.org.ua>
- 2008-02-08 Sergey Poznyakoff <gray@gnu.org.ua>
- Proposed by Jan-Benedict Glaw.
- 2008-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
- targets.
- 2008-02-04 Sergey Poznyakoff <gray@gnu.org.ua>
- semicolon-separated lists of replace expressions.
- 2008-01-30 Paul Eggert <eggert@cs.ucla.edu>
- 2007-12-17 Paul Eggert <eggert@cs.ucla.edu>
- Exit with nonzero status if a close fails on an archive.
- Problem (and initial trivial fix)
- close_warn.
- 2007-12-05 Sergey Poznyakoff <gray@gnu.org.ua>
- file is too short, set boolean flag, passed as an argument
- instead. This fixes a bug introduced on 2007-08-24. See also
- tests/shortupd.at.
- 2007-11-12 Jim Meyering <meyering@redhat.com>
- Don't read from name[-1].
- find_directory_meta calls make_directory ("").
- 2007-11-07 Sergey Poznyakoff <gray@gnu.org.ua>
- 2007-10-31 Sergey Poznyakoff <gray@gnu.org.ua>
- (sys_exec_checkpoint_script): pass the current blocking factor in
- TAR_BLOCKING_FACTOR environment variable.
- 2007-10-30 Sergey Poznyakoff <gray@gnu.org.ua>
- to create HTML versions of the manual.
- --checkpoint-action options. Improve documentation of
- --check-links.
- 2007-10-29 Sergey Poznyakoff <gray@gnu.org.ua>
- (_flush_write, simple_flush_read, _gnu_flush_read): Use
- checkpoint_run.
- (checkpoint_style): Remove.
- (DEFAULT_CHECKPOINT): New define.
- (hard_dereference_option): New variable.
- (sys_exec_checkpoint_script): New declaration.
- hard_dereference_option is set.
- (sys_exec_info_script): Restore SIGPIPE handler.
- --checkpoint-action.
- (decode_options): Call checkpoint_finish_compile.
- reported by Bengt-Arne Fjellner.
- 2007-10-18 Jim Meyering <jim@meyering.net>
- Avoid compiler warnings.
- avoid incorrect "may be used uninitialized" warnings.
- 2007-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
- warning. According to Brett Smith, the patent is
- expired.
- 2007-10-17 Sergey Poznyakoff <gray@gnu.org.ua>
- suffix (when creating). Suggested by Jean-Pierre Demailly.
- by Lasse Collin.
- 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
- warning about "comparison is always true due to limited range of
- data type" when char is unsigned.
- 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
- Adjust to recent gnulib changes.
- Add .deps, rmt-command.h.
- 2007-10-10 Sergey Poznyakoff <gray@gnu.org.ua>
- 2007-10-05 Sergey Poznyakoff <gray@gnu.org.ua>
- truncation to zero size.
- 2007-10-04 Sergey Poznyakoff <gray@gnu.org.ua>
- 2007-10-03 Sergey Poznyakoff <gray@gnu.org.ua>
- and R are safe.
- 2007-09-29 Sergey Poznyakoff <gray@gnu.org.ua>
- name arguments before storing them in T and R records. Reported by
- Nicholas Cole.
- 2007-09-27 Sergey Poznyakoff <gray@gnu.org.ua>
- Implement --exclude-tag* and --exclude-cache* options for listed
- incremental archives.
- New option --exclude-vcs to exclude VCS-specific files and
- directories.
- prototypes.
- Remove static qualifier.
- (check_exclusion_tags): account for dirname without terminating
- slash.
- (dump_dir0): exclusion_tag_all is handled elsewhere.
- (make_directory): Initialize tagfile to NULL
- (procdir): New argument: entry
- Hanlde exclusion tags.
- (makedumpdir): Take into account directory->tagfile.
- (scan_directory): Hanlde exclusion tags.
- (exclude_vcs_files): New function
- 2007-09-14 Paul Eggert <eggert@cs.ucla.edu>
- principal authors.
- 2007-08-25 Jim Meyering <jim@meyering.net>
- Don't include <getline.h>. No longer needed.
- Avoid shadowing and unused-variable warnings.
- local, "ret".
- shadowing the syscall.
- (try_new_volume): Avoid shadowing "access".
- (find_argp_option): Rename option->o to avoid shadowing.
- to avoid shadowing the function.
- (get_directory_contents): Likewise.
- shadowed by locals.
- Rename st->sb to avoid shadowing another local.
- 2007-08-24 Sergey Poznyakoff <gray@gnu.org.ua>
- than 512 bytes.
- 2007-08-19 Sergey Poznyakoff <gray@gnu.org.ua>
- Initialize paxutils structure after that of gnulib.
- 2007-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
- case of duplicate /. Patch by Dmitry V. Levin.
- exists and create it if it does not.
- 2007-06-28 Sergey Poznyakoff <gray@gnu.org.ua>
- 2007-06-27 Sergey Poznyakoff <gray@gnu.org.ua>
- Relicense under GPLv3
- 2007-06-21 Sergey Poznyakoff <gray@gnu.org.ua>
- unable to create the file
- 2007-06-21 Eric Blake <ebb9@byu.net>
- Resolve testsuite failures 40-42 on cygwin.
- file names cannot be created.
- 2007-06-16 Sergey Poznyakoff <gray@gnu.org.ua>
- 2007-06-09 Sergey Poznyakoff <gray@gnu.org.ua>
- 2007-06-08 Sergey Poznyakoff <gray@gnu.org.ua>
- s/(ASCII|ID|BSD)/@acronym{&}/;s/"[^"]+"/``&''/
- Use `path' only when it refers to search paths, use
- `file name' otherwise.
- Fix various errors (based on patch by Benno Schulenberg)
- the options.
- 2007-06-02 Sergey Poznyakoff <gray@gnu.org.ua>
- Fix bug, introduced on 2007-03-30.
- (transform_member_name): Last argument is of xform_type type
- All callers updated
- stripping and name suffix normalization.
- 2007-05-30 Sergey Poznyakoff <gray@gnu.org.ua>
- not error.
- 2007-05-29 Paul Eggert <eggert@cs.ucla.edu>
- due to gnulib change.
- 2007-05-19 Sergey Poznyakoff <gray@gnu.org.ua>
- (struct xheader): Move definition to tar.h
- (extended_header): Remove global
- (xheader_init): New function
- (xheader_decode_global,xheader_store,xheader_read)
- (xheader_write_global,xheader_write,xheader_string_begin)
- (xheader_string_add,xheader_string_end): Take xhdr as first
- argument.
- (struct tar_stat_info): New member xhdr (extended header).
- (xheader_decode_global,xheader_store,xheader_read)
- (xheader_write_global,xheader_write,xheader_string_begin)
- (xheader_string_add,xheader_string_end): Take xhdr as first
- argument.
- Update to use new xheader calls.
- src/sparse.c, src/tar.c, src/update.c: Global extended_header
- removed, use new xheader calls instead.
- output.
- 2007-05-18 Sergey Poznyakoff <gray@gnu.org.ua>
- directory change indicator if --remove-files is given.
- 2007-04-12 Paul Eggert <eggert@cs.ucla.edu>
- Adjust to latest Gnulib.
- stdio.h, stdio_.h, stdlib.h, stdlib_.h, time.h, time_.h, unistd.h.
- Remove exit.h, getcwd.h, mempcpy.h, memrchr.h, mkdtemp.h, stpcpy.h,
- strcase.h, strchrnul.h, strdup.h, strndup.h, strnlen.h, time_r.h,
- vsnprintf.h.
- 2007-04-03 Paul Eggert <eggert@cs.ucla.edu>
- needed.
- (get_max_open_files, closeopen): Remove. All callers removed.
- (chdir_dir): Use a different technique, which doesn't rely on closing
- all open files.
- 2007-04-04 Sergey Poznyakoff <gray@gnu.org.ua>
- inter-communication fd in the environment variable TAR_FD
- 2007-04-03 Sergey Poznyakoff <gray@gnu.org.ua>
- allow shell process substitution to work.
- 2007-03-30 Sergey Poznyakoff <gray@gnu.org.ua>
- (transform_member_name): New function
- transform_member_name instead of safer_name_suffix so that
- --transform and --strip-components affect links as well.
- (decode_header): Use transform_member_name
- generated gnulib.mk
- 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
- Adjust to recent gnulib changes.
- string_.h, sys, sys_time_.h, unistd_.h, wchar_.h, wctype_.h.
- Remove localedir.h, size_max.h, xsize.h.
- gnulib string.h defines stpcpy on all platforms.
- 2007-01-23 Sergey Poznyakoff <gray@gnu.org.ua>
- options.
- (enum exclusion_tag_type): New data type
- (add_exclude_tag): Rename to add_exclusion_tag
- (cachedir_file_p): New prototype
- (check_exclusion_tags): New function
- (cachedir_file_p): New function (from check_cache_directory)
- (dump_dir0,dump_file0): Use check_exclusion_tags
- --exclude-caches-under, --exclude-tag-all, --exclude-tag-under
- 2007-01-19 Sergey Poznyakoff <gray@gnu.org.ua>
- trailing hole
- (pax_decode_header): Keep track of the number of bytes
- written.
- 2007-01-04 Sergey Poznyakoff <gray@gnu.org.ua>
- dumpdir_cmp. Do not free dumpdir_buffer, it will leave the
- incremental directory table in the inconsistent state and trigger
- full dump.
- (read_and_process): Process dumpdirs no matter what the archive
- format.
- 2006-12-13 Sergey Poznyakoff <gray@gnu.org.ua>
- the filename with an embedded newline.
- 2006-12-12 Paul Eggert <eggert@cs.ucla.edu>
- Port to Forte Developer 7 C 5.4 and C99.
- and Forte warns about it.
- for same reason.
- Forte C complains about as being unreachable.
- reported by Trond Hasle Amundsen.
- Likewise.
- 2006-12-08 Sergey Poznyakoff <gray@gnu.org.ua>
- files.
- 2006-12-07 Sergey Poznyakoff <gray@gnu.org.ua>
- dump_file0.
- (dump_dir): Move calls to ensure_slash to dump_file0
- Patch proposed by Jan-Benedict Glaw <jbglaw@lug-owl.de>
- systems /dev/zero is not available.
- 2006-12-04 Paul Eggert <eggert@cs.ucla.edu>
- S_IRWXG | S_IRWXO might be masked out.
- (set_mode): Set the mode if some bits were masked out originally.
- (set_stat): Don't chmod before chown, as that might temporarily
- grant permissions that we don't want to grant. The chmod was
- there only to work around broken hosts, so add a comment advising
- users not to use those broken hosts instead.
- (repair_delayed_set_stat, extract_dir):
- Remember to mask out current umask before inverting permissions.
- (extract_dir): If the owner might change, or if the mode has
- special bits, create the directory 700 at first, but restore it later.
- (open_output_file): New arg mode; all uses changed.
- (extract_file, extract_node, extract_fifo): If the owner might
- change, omit group and other bits at first, but restore them after
- changing the owner.
- 2006-12-04 Jim Meyering <jim@meyering.net>
- 2006-11-30 Sergey Poznyakoff <gray@gnu.org.ua>
- 2006-11-29 Paul Eggert <eggert@cs.ucla.edu>
- (prepare_to_extract): Remove support for mangled names.
- Port to latest gnulib. There were a lot of changes, so the
- simplest way to get this up and running was to switch to coreutils
- bootstrap procedure. I noticed one feature missing after this
- merge: the ability to update a single .po file. I can add that
- later if need be.
- Add fstatat.c, gnulib.mk, openat-proc.c, same-inode.h, stat_.h,
- tempname.c, tempname.h, uinttostr.c.
- to override gnulib, so that we don't need xsize.h.
- for paxutils.
- does this.
- (gl_EARLY, gl_INIT): Add.
- (tar_GNULIB): Remove.
- for us.
- <localedir.h>.
- 2006-11-13 Sergey Poznyakoff <gray@gnu.org.ua>
- struct timespec, overriding st->mtime
- to xheader_store.
- 2006-11-01 Sergey Poznyakoff <gray@gnu.org.ua>
- (read_name_from_file): Skip zero-length entries
- 2006-10-31 Sergey Poznyakoff <gray@gnu.org.ua>
- base_name. The latter returns a malloced string since 2006-03-11.
- 2006-10-21 Sergey Poznyakoff <gray@gnu.org.ua>
- 2006-10-17 Sergey Poznyakoff <gray@gnu.org.ua>
- Schulenberg.
- 2006-10-16 Sergey Poznyakoff <gray@gnu.org.ua>
- 2006-10-14 Sergey Poznyakoff <gray@gnu.org.ua>
- TAREXIT_DIFFERS if the file being dumped was truncated or
- otherwise changed.
- close_stdout.
- Test tar exit status.
- when we are writing archive to stdout (unless --index-file is
- used). Bug introduced on 2006-07-06.
- 2006-10-02 Sergey Poznyakoff <gray@gnu.org.ua>
- 2006-09-27 Sergey Poznyakoff <gray@gnu.org.ua>
- the new argp method instead.
- 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
- 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
- Adjust to latest gnulib.
- fcntl.h, fcntl_.h, inttypes_.h, lstat.c, lstat.h.
- rather than the no-longer-included mkinstalldirs.
- 2006-09-08 Sergey Poznyakoff <gray@gnu.org.ua>
- condition for selecting candidates for removal.
- version.
- and m4/inttypes-pri.m4
- 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
- so that translators are warned about strings that are formats but
- don't look like formats. This might help prevent core dumps.
- Suggested by Eric Blake to avoid problems like
- <http:
- (AM_GNU_GETTEXT_VERSION): Upgrade from 0.12.1 to 0.15. The gettext
- manual says we should use the version number normally expected of
- maintainers, neither more nor less.
- Don't exclude ky.po; it is working again.
- 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
- Don't exclude ja.po; it is working again.
- Don't remove all old .po files if we're merely updating one.
- 2006-08-07 Paul Eggert <eggert@cs.ucla.edu>
- by concatenating strings with "\v" after translation.
- (doc): Remove, splitting into:
- (doc0, doc1): New constants.
- (argp): Don't use doc; just initialize to NULL.
- (initialize_argp_doc): New function.
- (decode_options): Use it.
- since the translation project changed its index format.
- Don't use --assume-autoconf; it's now replaced
- by looking in configure.ac.
- (m4/codeset.m4, m4/intdiv.m4, m4/inttypes-pri.m4, m4/isc-posix.m4):
- (m4/lcmessage.m4, m4/onceonly_2_57.m4, m4/gettext.m4, m4/glibc21.m4):
- (m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-prefix.m4, m4/po.m4):
- (m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4):
- Don't rename to ..._gl.m4, as this is no longer needed.
- (m4/geteext.m4): Patch to remove the need for intl
- *.
- charset.alias, config.charset, getcwd.c, getcwd.h, localcharset.c,
- localcharset.h, ref-add.sed, ref-add.sin, ref-del.sed,
- ref-del.sin, setenv.c, setenv.h, unsetenv.c. Remove pathmax.h,
- xstrdup.c.
- localcharset.m4, realloc.m4, setenv.m4. Remove malloc.m4,
- pathmax.m4, realloc.m4.
- 2004-11-26 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- (read_full_records,reading_from_pipe): New variables
- (check_compressed_archive,open_compressed_archive): New functions
- (open_archive): Autodetect compressed archives and act accordingly.
- Set reading_from_pipe. This fixes controversial set of changes
- introduced 2004-05-11,2004-03-22.
- (read_header): Use tar_checksum().
- 2004-11-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- Jean Delvare <khali@linux-fr.org>
- 2004-10-25 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- makefile snippet from localcharset uses '+=' on them.
- header counterparts are empty
- 2004-10-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- 2004-10-04 Bryan Ford <baford@mit.edu>
- cache directories automatically on archive creation.
- Cache directories are directories containing a
- standardized tag file, as specified at:
- http:
- called from dump_dir0() if exclude_caches_option is set,
- to check for a cache directory tag and exclude the directory
- if such a tag is found.
- 2004-09-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- 2004-09-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- (show_default_settings): REMOTE_SHELL may be undefined
- 2004-09-07 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- Test suite rewritten in autotest.
- 2004-09-07 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- paxutils.
- (paxutils) genfile.c
- 2004-09-06 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- Started merging with cpio into paxutils. Sources before
- this point are tagged alpha-1_14_90
- 2004-09-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- of output.
- 2004-09-02 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- file lists. Document --seek option.
- DEFAULT_RMT_DIR. Removed DEFAULT_RMT_COMMAND.
- 2004-09-01 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- 2004-02-21.
- (is_individual_file): New functions.
- 2004-08-31 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- of sparse_map_size. We assume that whatever number it contains
- describes adequately the current size of sparse_map. The only
- number we need to reset is sparse_map_avail.
- if read_header returns HEADER_FAILURE
- Destroy and reinitialize content of current_stat_info and
- extended_header after each iteration (bug reported by
- John L. Males <jlmales@yahoo.com>).
- Issue a warning if the created archive contains some members
- whose file names were stripped off their leading prefixes.
- This is a temporary fix of the issue reported by Bdale Garbee
- <bdale@gag.com> (Refs: Debian bug 230064, Message-Id
- <87n07kyzhi.fsf@rover.gag.com>, Sun, 15 Feb 2004 11:22:17 -0700)
- into account the time needed to verify the archive(s).
- The bug reported by John L. Males <jlmales@yahoo.com>
- (set_start_time,compute_duration): New functions.
- (print_total_written): Use the result of compute_duration().
- (close_archive): Call compute_duration.
- of stat_info->is_sparse
- Reported by Helmut Waitzmann <helmut.waitzmann@web.de>.
- 2004-08-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- 2004-08-19 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- Use ROOT_FS with -C option. Do not send mail
- if ADMINISTRATOR is set to NONE.
- ROOT_FS if it does not already end in it.
- New option -a (--all). Do not start restore unless
- -a or patterns are given.
- (restore_fs,restore_files): Fixed use of --listed option.
- 2004-08-17 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
- Merge argp, getopt, xalloc changes from gnulib.
- Remove code to test for patches; we don't have patches now.
- Set LC_ALL=C so that file names sort consistently.
- Prefer the gnulib copies of gettext.m4, glibc21.m4,
- lib-ld.m4, lib-prefix.m4, po.m4 too.
- gl_ARGP now does this for us.
- xalloc-die.c.
- (extr_init): Remove assignment to xalloc_fail_func; no longer needed.
- (xalloc_die): New function.
- 2004-08-10 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- of the members that straddle multivolume archive
- boundary to 100 characters.
- (flush_read): Use strncmp when comparing multivolume member
- names.
- 2004-08-09 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- calling skip_member()
- (skip_member): Use is_sparse field to determine if the
- member is a sparse file.
- references to report messages wherever available.
- 2004-08-08 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- optional argument specifying the po file to update.
- 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
- Merge from gnulib.
- Remove addext.c, malloc.c, realloc.c.
- (extract_archive): Rewrite with new macro IS_ABSOLUTE_FILE_NAME.
- FILESYSTEM_PREFIX_LEN -> FILE_SYSTEM_PREFIX_LEN.
- Likewise.
- strings.
- (decode_options): Remove unused var.
- 2004-08-02 Paul Eggert <eggert@cs.ucla.edu>
- (open_archive): Don't use valloc; on older or buggy hosts, you can't
- free the result. Use page_aligned_alloc instead.
- into record_buffer.
- (close_archive): Free record_buffer.
- (ptr_align): New function, from coreutils/src/system.h.
- (page_aligned_alloc): New function.
- 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
- when hard-linking X to X when X exists. Problem reported by
- Toby Peterson.
- 2004-06-29 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- (gnu_restore): Renamed to purge_directory().
- of the root device.
- (extract_archive): Renamed gnu_restore() to purge_directory().
- Do not attempt to purge the directory if it is on a different
- device and one_file_system_option is set.
- 2004-06-25 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- is --no-anchored. Fixed.
- Thanks "Felix Natter" <felix.natter@ldc.de> for noticing.
- 2004-06-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- 2004-05-19 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- (seekable_archive): New global.
- possible.
- for 'posix'
- (options): New option -n (--seek).
- appending to it.
- 2004-05-19 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- 2004-05-11.
- 2004-05-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- force using included version of getopt if the function
- is not available.
- 2004-05-13 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- Changed improper use of _() to ngettext().
- 2004-05-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- set read_full_records_option: the compressed archive is
- likely not to contain integer number of records. Should
- the user wish to use reblocking, he may always give tar
- -B option. This is a minor improvement over the change
- dated 2004-03-22.
- read_full_records_option.
- as the format argument, rather than a possibly-translated variable
- string. Patch provided by Jim Meyering <jim@meyering.net>
- 2004-05-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- documentation for the project's website.
- 2004-05-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- Tar 1.14 is released. Sources up to this point are tagged
- release_1_14
- 2004-05-10 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- (needed on FreeBSD)
- 2004-05-10 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- DEFAULT_.* variables. Use DEFAULT_RMT_COMMAND to set
- the pathname of the rmt utility.
- New option --enable-backup-scripts.
- by the configure.
- Fixed initialization of the listing files and printing
- the time of the last previous level dump.
- DEFAULT_RMT_COMMAND variable.
- issuing 'Skipping to next header' diagnostics, if
- requested by block_number_option.
- hardcoded "/etc/rmt".
- (decode_options): Handle --rmt-command. Initialize
- rmt_command_option to DEFAULT_RMT_COMMAND.
- 2004-05-09 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- 2004-05-08 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- 2004-05-07 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- --same-order.
- 2004-05-06 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- (for backup scripts).
- 2004-05-05 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- 2004-04-28 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- does not define it if it fails to find iconv.h.
- 2004-04-26 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- and parts of configure.ac
- filename is too long.
- 2004-04-20 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- 2004-04-04 Paul Eggert <eggert@twinsun.com>
- Merge getdate documentation changes from coreutils.
- Merge recent gnulib changes, and remove some lint.
- Improve support for nanosecond-resolution time stamps.
- timespec.h): Add.
- st_mtim.m4, timespec.m4. Remove malloc.m4, realloc.m4.
- time_t. All uses changed.
- (NEWER_OPTION_INITIALIZED, OLDER_STAT_MTIME): New macros.
- whether newer_mtime_option is initialized.
- result of safe_read, full_write, and similar functions.
- Detect safe_read error by comparing to SAFE_READ_ERROR;
- detect full_write error by comparing to 0.
- All uses changed.
- Likewise.
- check_sparse_region, check_data_region): Likewise.
- sys_child_open_for_compress, sys_child_open_for_uncompress): Likewise.
- to indicate a function with no arguments.
- sys_detect_dev_null_output, sys_drain_input_pipe, sys_spawn_shell,
- sys_reset_uid_gid, sys_get_archive_stat, sys_save_archive_dev_ino,
- sys_detect_dev_null_output, sys_drain_input_pipe, sys_spawn_shell):
- Likewise.
- xheader_decode_global, extended_header_init): Likewise.
- shadowing warnings.
- sparse_file_p, sparse_member_p, sparse_fixup_header,
- sparse_dump_file, sparce_extract_file, sparse_skip_file,
- sparse_diff_file): Likewise.
- dump_dir, dump_hard_link, file_count_links, dump_file0, dump_file):
- Likewise.
- Likewise.
- tar_sparse_extract_region, sparse_dump_region, sparse_extract_region,
- sparse_dump_file, sparse_file_p, sparse_member_p,
- sparse_fixup_header, sparse_extract_file, sparse_skip_file,
- check_data_region, sparse_diff_file): Likewise.
- to die.
- some gcc warnings.
- langtab.charset, charset_lookup): Likewise.
- sys_reset_uid_gid): New decls.
- __attribute__ ((unused)) for unused attributes.
- Likewise.
- gid_coder, gname_coder, linkpath_coder, ctime_coder, mtime_coder,
- path_coder, size_coder, uid_coder, uname_coder,
- sparse_numblocks_coder): Likewise.
- dump_file0): Now static.
- xheader_protected_keyword_p, xheader_set_single_keyword,
- xheader_keyword_deleted_p, xheader_keyword_override_p,
- xheader_list_append, xheader_list_destroy, xheader_set_keyword_equal):
- Likewise.
- Likewise.
- used. All callers changed.
- skipping the error messages.
- (get_status): Report an error if atol returns a negative number.
- get_input_charset) [!defined HAVE_LIBCONV]: Omit unused
- definitions.
- (iconv_open, iconv, iconv_close) [!defined HAVE_LIBCONV]:
- Use macros, not definitions, to avoid type clashes with system
- headers.
- (charset_lookup): Local var is now auto, not static.
- (utf8_convert): Use ICONV_CONST instead of const, to avoid
- type clashes.
- avoid gcc warning.
- 2004-04-04 Sergey Poznyakoff <gray@Noldor.runasimi.org>
- by ifdef.
- Declare time() if HAVE_DECL_TIME is 0
- instead of GNUTYPE_SPARSE.
- of GNUTYPE_SPARSE.
- Removed unused variables
- the st_size value.
- (print_header): Do not rely on GNUTYPE_SPARSE type.
- Use st->stat.st_size to print real file size.
- (skip_member): Assign stat_info.file_name to save_name. This fixes
- bug reported by Mads Martin Joergensen <mmj@suse.de>
- Use sparse_skip_file() to skip sparse members.
- (struct tar_sparse_optab.fixup_header): New member
- (tar_sparse_member_p): New function.
- (tar_sparse_init): Return true if decode_header is not provided
- (tar_sparse_fixup_header)
- (sparse_member_p,sparse_fixup_header)
- (sparse_skip_file)
- (oldgnu_sparse_member_p,oldgnu_fixup_header,star_sparse_member_p)
- (star_fixup_header, pax_sparse_member_p): New function
- (pax_decode_header): Remove
- (get_input_charset): Removed unused variable
- (size_decoder): Assign to both st->archive_file_size and
- st->stat.st_size.
- (st->stat.st_size): Assign to st->stat.st_size
- (sparse_numbytes_decoder): Removed unused variable
- 2004-03-26 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- NAME_FIELD_SIZE-1 characters in a file name for V7 format
- archives.
- 2004-03-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- if reading from a pipe.
- (short_read): Display warning about the deduced record size
- if version > 1
- if incremental_option is set.
- (xheader_format_name): Use to_decimal() instead of snprintf.
- 2004-03-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- encountering a single zero record. Many old archives contain
- arbitrary garbage after it.
- The warning is issued anyway.
- 2004-03-02 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- conversion buffer was not null terminated. Fix provided
- by Leland Lucius <llucius@tiny.net>
- 2004-02-29 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- condition at line 714 included
- || (status > 0 && !read_full_records_option)
- which is grossly wrong, since even if new_volume() below succeeds,
- the subsequent call to rmtread will overwrite the chunk of data
- already read in the buffer and thus spoil everything.
- fix.
- 2004-02-29 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- (enum old_files.KEEP_NEWER_FILES): New element
- 2004-02-26 Paul Eggert <eggert@twinsun.com>
- as suggested by Karl Berry.
- 2004-02-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- the assignment to current_stat_info.archive_file_size.
- 2004-02-23 Paul Eggert <eggert@twinsun.com>
- 2004-02-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- 1.13.93 released.
- to the separate function 'prereq'. Do not expect any arguments
- to 'before'.
- 2004-02-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- Added UTF-8 support. Finished global extended header
- support.
- "path" keyword if the file name is not ASCII
- (start_header): Likewise for uname and gname.
- headers.
- Correctly handle UTF-8 conversions.
- (xheader_list_destroy): New function.
- (xheader_set_single_keyword,xheader_set_keyword_equal): Added
- missing gettext markers
- (decode_record): Rewritten using caller-provided handler and
- data closure.
- 2004-02-21 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- 1296 prevented incremental backups on individual files
- from working, as reported by Andreas Schuldei
- <andreas@schuldei.org>.
- This is due to the condition
- (0 < top_level || !incremental_option)
- Removing it makes incremental backups work for individual
- files as well as for directories. On the other hand, it does
- not affect other functionality, as shown by the reasoning below:
- To begin with, the two parts of this condition are mutually
- superfluous, because
- 1) when top_level < 0, incremental_option == 1
- so the condition yields false
- 2) when top_level >= 0, incremental_option == 0
- so the condition yields true.
- In other words, it is completely equivalent to
- (!incremental_option)
- Now, let's consider the effect of its removal. There are two cases:
- 1) when incremental_option==1
- This means incremental backup in progress. In this case dump_file
- is invoked only for directories or for files marked with 'Y' by
- get_directory_contents. The latter are those that did not meet the
- condition in incremen.c:242, which is exactly the same condition
- as this at create.c:1296. So, for these files the check
- (!incremental_option) is useless, since the rest of the
- conditional will yield false anyway. On the other hand, if
- dump_file is invoked on a directory, the conditional will yield
- false due to !S_ISDIR assertion, so these will be processed as usual.
- Thus, for this case the extra condition (!incremental_option) is
- irrelevant, and its removal won't alter the behavior of tar,
- files, which is the wanted effect.
- 2) when incremental_option==0
- In this case the condition yields true and its removal does not
- affect the functionality.
- backups on individual files.
- 2004-02-20 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- declarations
- (xheader_ghdr_name): Changed declaration
- (write_extended): Removed superfluous last argument. Use
- xheader_write()
- (simple_finish_header): New function.
- (finish_header): Use simple_finish_header() to break recursive
- dependency between this function and write_extended().
- --format arguments are given. This is a common case when
- TAR_OPTIONS are used.
- (decode_options): New option --show-defaults displays the
- compiled-in defaults.
- Use POSIX format if no --format option was given and
- --pax-option was specified.
- Do not allow to use --pax-option unless the archive format is
- set to POSIX (or reading subcommand is requested).
- constructed.
- (xheader_xhdr_name): Changed the default extended header name
- to '%d/PaxHeaders.%p/%f', as POSIX requires.
- (xheader_ghdr_name): Removed unused argument.
- (xheader_write,xheader_write_global): New function.
- (xheader_decode): Modified to honor overrides whatever
- the current archive format is.
- unconditionally.
- header names.
- formats. Exit with the status 77 if the current archive
- format does not match any of them.
- 2004-02-20 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- 2004-02-18 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- functions
- instead of using hardcoded "././@PaxHeader" name.
- of pax).
- heading comment (introduced 2003-09-02).
- 2004-02-17 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- (get_directory_contents): Split into two functions
- 2004-02-15 Paul Eggert <eggert@twinsun.com>
- Fix Debian bug 230872, originally reported by Jeff King in
- <http:
- was a misunderstanding of what POSIXLY_CORRECT is supposed to
- mean. The GNU Coding Standards says that POSIXLY_CORRECT
- is for disabling extensions that are incompatible with POSIX:
- it is not for disabling compatible extensions. All references
- to this section removed.
- (posix): This format is created only if the posix format is
- specified; it is no longer created if gnu format is specified
- and POSIXLY_CORRECT is set.
- POSIX does not specify the behavior of tar, so we should
- not worry about POSIXLY_CORRECT here.
- 2004-01-21 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- m4/Makefile.
- to :ext:anoncvs and set CVS_RSH, unless already set.
- 2004-01-21 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- Use $option instead of $1 so all options will be parsed.
- 2004-01-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- Started rewriting buffer.c ...
- (time_to_start_writing): Changed data type
- (file_to_switch_to): Removed. Variable never assigned to.
- (open_archive) Moved option compatibility checks to tar.c
- Other minor changes.
- (moved from buffer.c)
- 2004-01-02 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- Martin Simmons for the patch.
- <pius@pld-linux.org> for the patch.
- 2003-12-26 Paul Eggert <eggert@twinsun.com>
- Synchronize with Gettext 0.13.1, Automake 1.8, Autoconf 2.59,
- and translation website.
- intdiv0.m4, inttypes_h.m4, inttypes.m4, inttypes-pri.m4,
- isc-posix.m4, and lcmessage.m4 from gnulib. This list of files is
- a bit obsolete anyway, now that gettext 0.13.1 is out. Also, the
- files are replaced by autoreconf. Also, there seems to be a bug
- in gettext/autoconf/automake if we try to omit these files after
- autoreconf has replaced them, even though the gettext manual says
- they're optional. So give up and just include them for now, even
- though they make 'configure' longer and slower.
- Change translation URL from
- <http:
- <http:
- accommodate translator website revamp.
- Fail if autoreconf fails.
- signed.m4, size_max.m4, wchar_t.m4, wint_t.m4, xsize.m4, to
- ignore files now supplied by gettext 0.13.1.
- 2003-12-25 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- Synchronized with the backup repository on Mirddin
- 2003-12-19 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- that may represent file modification times with a subsecond
- precision.
- Check for utimes (for future use)
- filled blocks as an EOF indicator. Issue a warning if
- a single one is encountered.
- members.
- precision.
- (atime_coder,atime_decoder,ctime_coder,ctime_decoder)
- (mtime_coder,mtime_decoder): Update invocations of code_time and
- decode_time.
- (gid_decoder,size_decoder,uid_decoder,sparse_size_decoder)
- (sparse_numblocks_decoder,sparse_offset_decoder)
- (sparse_numbytes_decoder): Updated
- 2003-12-18 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- 2003-11-14. Reason: Discussion with Paul Eggert and
- Jean-Louis Martineau. See also ChangeLog entry from
- 1999-08-14.
- 2003-12-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- when printing real file size.
- a hole at the end.
- (sparse_dump_region,sparse_extract_region): Allow for zero size
- trailing blocks
- 2003-12-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- formats
- Initialize current_stat_info.archive_file_size.
- NOTE: Modifications from this date on are temporarily
- stored on local CVS on mirddin. This repository will
- be synchronized with Savannah as soon as the latter
- becomes operational again.
- 2003-12-01 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- file format.
- archive file size to determine if we have to do with a
- sparse file.
- option.
- (decode_options): Allow --sparse for POSIX_FORMAT archives.
- extra argument
- Implemented GNU.sparse.* keywords.
- 2003-11-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- reporting.
- 2003-11-25 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- magic with @LongLink blocks.
- 2003-11-17 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- 2003-11-17 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- (sys_compare_uid_gid): Removed.
- (sys_compare_links,report_difference): Changed prototype
- (sparse_diff_file): New function
- (sys_compare_uid_gid): Removed.
- (sys_compare_links): Changed declaration
- 2003-11-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- Rewritten sparse file handling.
- for various methods for sparse files handling.
- (init_sparsearray,fill_in_sparse_array): Removed
- (enum dump_status): New data type
- (pad_archive,close_diag,open_diag,read_diag_details)
- (readlink_diag,savedir_diag,seek_diag_details,stat_diag): New
- functions.
- (sparse_file_p,sparse_dump_file,sparse_extract_file): New
- functions.
- (print_header): Changed prototype declaration.
- (struct tar_stat_info): New members archive_file_size,
- sparse_map_avail,sparse_map.
- (readlink_diag,savedir_diag,seek_diag_details,stat_diag): New
- diagnostics functions.
- 2003-11-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- the name is exactly 100 characters long.
- (write_ustar_long_name): Fixed cheking for unsplittable
- names.
- 2003-11-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- (dump_file): Fixed handling of linkname field.
- file name ends with a slash, output one should do so
- as well.
- 2003-11-14 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- POSIX.1-1988 archive format.
- 2003-11-13 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- and extended_header at the start of the loop.
- contains valid filename. Fixes coredump on `not_a_tar_file'
- (mtime_decoder,size_decoder,uid_decoder): Use xstrtoumax.
- Fixes `pax-big-10g' bug.
- 2003-11-12 Paul Eggert <eggert@twinsun.com>
- Fix some C compatibility bugs reported by Joerg Schilling.
- "stripped_path_len" in declaration.
- "exit (FOO);"; we no longer have to worry about
- pre-ANSI hosts that mishandled returned values from "main".
- compilers.
- (DEFAULT_ST_BLKSIZE): New macro.
- (ST_BLKSIZE): Use it, instead of DEV_BSIZE.
- 2003-11-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- st_ctime.
- 2003-11-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- Bunk <bunk@fs.tum.de> for reporting.
- <martin@xemacs.org> for spotting.
- 2003-11-04 Paul Eggert <eggert@twinsun.com>
- C99 require this.
- 2003-10-26 Paul Eggert <eggert@twinsun.com>
- Bug reported by Christian Weisgerber.
- 2003-10-19 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- check
- 2003-10-08 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- version number to indicate alpha release.
- macro overriding broken mkdir prototypes.
- 2003-10-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- 2003-10-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- Implemented --occurrence option.
- (struct name): Changed `found' member to `uintmax_t
- found_count'.
- (names_done): Removed
- (all_names_found): Changed prototype.
- (ISFOUND,WASFOUND): New macros
- option.
- archive.
- (name_match): Honor --occurrence option.
- (names_done): Removed
- (all_names_found,names_notfound): Rewritten.
- 2003-10-02 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- subcommand_option == CAT_SUBCOMMAND
- 2003-10-02 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- condition.
- 2003-09-24 Paul Eggert <eggert@twinsun.com>
- law says the word "Copyright" should be in English.
- 2003-09-22 Paul Eggert <eggert@twinsun.com>
- Return size_t, not pointer, so that we don't have to worry about
- violating the C standard by converting char const * to char *.
- All callers changed.
- prefix, too. Count adjacent slashes as if they were one slash;
- that is the POSIX standard.
- 2003-09-17 Paul Eggert <eggert@twinsun.com>
- 'sed' is no longer required. For GNU m4 1.4, suggest the patch in
- Debian bug 211447. Fix minor misspellings/whitespace nits.
- gl_USE_SYSTEM_EXTENSIONS.
- 2003-09-17 Paul Eggert <eggert@twinsun.com>
- Solaris 8 /bin/sh doesn't like that.
- 2003-09-17 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- 2003-09-17 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- 2003-09-05 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- 2003-09-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- (decode_options) Assign boolean values to bool variables.
- 2003-09-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- if subcommand_option is not CREATE_SUBCOMMAND.
- well (for eventual delete).
- disappear when GNU extended header keywords are working.
- 2003-09-04 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- condition.
- 2003-09-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- (archive_format_string): New function.
- (usage): Updated help output.
- 2003-09-02 Paul Eggert <eggert@twinsun.com>
- xheader_read, xheader_finish, xheader_destroy): Add decls;
- C99 requires this.
- HEADER_SUCCESS_EXTENDED followed by HEADER_FAILURE.
- occurs, as it's not possible.
- Use "const" when possible in new code.
- (fmttab): Now const. All uses changed.
- (struct xhdr_tab.coder, struct xhdr_tab.decoder, locate_handler,
- decode_record, xheader_store, xheader_print, code_string, code_time,
- code_num, dummy_coder, dummy_decoder, atime_coder, atime_decoder,
- gid_coder, gid_decoder, gname_coder, gname_decoder, linkpath_coder,
- linkpath_decoder, ctime_coder, ctime_decoder, mtime_coder,
- mtime_decoder, path_coder, path_decoder, size_coder, size_decoder,
- uid_coder, uid_decoder, uname_coder, uname_decoder):
- Use pointers to const when possible.
- (xhdr_tab): Now const.
- (set_archive_format): Report an error if no format name matches,
- instead of returning an undefined value.
- atime_decoder, gid_decoder, gname_decoder, linkpath_decoder,
- ctime_decoder, mtime_decoder, path_decoder, size_decoder,
- uid_decoder, uname_decoder): Remove unused keyword arg.
- All uses changed.
- atime_decoder, gid_coder, gid_decoder, gname_coder, gname_decoder,
- linkpath_coder, linkpath_decoder, mtime_coder, mtime_decoder,
- ctime_coder, ctime_decoder, path_coder, path_decoder, size_coder,
- size_decoder, uid_coder, uid_decoder, uname_coder, uname_decoder):
- Remove forward decls; no longer needed.
- (xhdr_tab): Move to end, so that the forward decls aren't needed.
- Add a forward declaration.
- Use 'bool' in new code, when appropriate.
- all callers to use false and true rather than 0 and 1.
- "extended headed" -> "extended header".
- GNU coding style fixes.
- Do not use decls like "char *p, *q;".
- Minor style fixes.
- (xheader_store): Avoid parentheses around object operand of sizeof.
- 2003-09-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- in "path" keyword of an extended header if in POSIX
- mode.
- (finish_header): print header before calling write_extended().
- is necessary so the extended header is processed and the correct
- filename is printed no matter what the state of verbose_option.
- for the time being).
- 2003-09-01 Paul Eggert <eggert@twinsun.com>
- Update from gnulib, and correct fnmatch to fnmatch-gnu.
- Sort.
- of AC_GNU_SOURCE.
- copying rules from gnulib module descriptions.
- (BUILT_SOURCES, EXTRA_DIST, all-local, alloca.h):
- Update from gnulib modules alloca, fnmatch, getline, stdbool.
- 2003-09-01 Sergey Poznyakoff
- Added initial support for creating POSIX headers.
- (string_to_chars): New functions
- (struct xheader): Changed structure
- (gid_to_gname,gname_to_gid,uid_to_uname,uname_to_uid): Changed
- prototypes.
- (write_extended): New function
- (start_header): Create extended POSIX headers if necessary.
- (finish_header): Likewise.
- current_stat_info.
- (uid_to_uname,uname_to_uid): Changed prototypes.
- (struct extra_header): Removed unused structure.
- (union block.extra_header): Removed unused member.
- 2003-08-31 Sergey Poznyakoff
- Added initial support for POSIX extended and STAR headers
- (only for listing/extracting).
- (XHDTYPE,XGLTYPE): New defines
- (enum archive_format:STAR_FORMAT): New member
- (struct tar_stat_info): New datatype.
- (union block.star_header): New member.
- (current_trailing_slash,current_link_name): Removed variables.
- (current_stat_info): New variable
- (current_stat): Removed
- (extended_header): New variable
- (decode_header): Changed prototype.
- and STAR headers.
- (skip_member): Check oldgnu_header only if current_format is set
- to OLDGNU_FORMAT.
- (make_directories): Improved check for the existence of the directory
- 2003-08-29 Paul Eggert <eggert@twinsun.com>
- was worth (e.g., different users in en_GB disagree about -ize
- versus -ise).
- 2003-07-28 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- options.
- line options.
- 2003-07-27 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- (orig_file_name): New variable
- (check_links): New proto.
- (link_table): Static for the module.
- (dump_file): Update `link' member when adding new links
- to the link_table.
- (check_links): New function.
- -o to comply to UNIX98 when extracting and to its previous
- semantics otherwise.
- (main): Call check_links if --check-links. was given.
- 2003-07-25 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- 2003-07-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
- reads right after opening the new archive (multiv01.sh test).
- (new_volume): Special handling for "-".
- current_trailing_slash was set (extrac03.sh,extrac04.sh tests).
- 2003-07-05 Paul Eggert <eggert@twinsun.com>
- Finish the checkin begin yesterday.
- two days.
- (read_header): Strip trailing slashes, setting current_trailing_slash.
- (tartime): Avoid int overflow when printing year (!).
- (print_header): New arg specifying block ordinal. All uses changed.
- Print link as 'h' type. Give labels for long links and names.
- (must_be_dot_or_slash): New function.
- (safer_rmdir): Use it.
- (remove_any_file): Now takes enum as option, not boolean.
- Check for (Linux) EISDIR as well as (POSIX) EPERM when attempting
- to unlink a directory.
- (deref_stat): Accept bool, not int.
- recursive.
- (hash_string_hasher): Renamed from hash_avoided_name.
- (hash_string_compare): Renamed from compare_avoided_anames.
- (hash_string_insert, hash_string_lookup): New functions.
- (add_avoided_name, is_avoided_name): Use them.
- (safer_name_suffix): New function.
- (contains_dot_dot): Moved here from misc.c. Now returns bool, not int.
- (prepare_input_buffer): New arg FD.
- Do not read more than INT_MAX bytes at once,
- since it breaks on some brain damaged Tru64 hosts.
- Divide size by two
- when retrying instead of subtracting 1024; for speed.
- (main): Use gettext to translate (C), not print_copyright.
- now that gnulib handles this.
- Include <stddef.h> and <limits.h> unconditionally, now that we assume
- C89 or better.
- Assume that offsetof is defined in stddef.h.
- Do not include <sys/param.h>.
- (realloc, lseek): Do not declare.
- (HAVE_DECL_VALLOC): Renamed from HAVE_VALLOC.
- (CHAR_BIT, CHAR_MAX, UCHAR_MAX, LONG_MAX): Remove
- declarations, since we now assume C89 or better.
- (PARAMS): Remove, as we now assume C89. All uses changed.
- (bindtextdomain, textdomain): Include <gettext.h> to define.
- Include <unlocked-io.h>.
- (valloc): Define if not defined, and if valloc is not declared.
- (xstrdup): Remove decl.
- Include <getdate.h>.
- (get_date): Remove decl.
- (ATIME_PRESERVE_OPTION, CHECKPOINT_OPTION, FORCE_LOCAL_OPTION,
- IGNORE_FAILED_READ_OPTION, INDEX_FILE_OPTION, NO_OVERWRITE_DIR_OPTION,
- NUMERIC_OWNER_OPTION, RECURSIVE_UNLINK_OPTION, REMOVE_FILES_OPTION,
- SHOW_OMITTED_DIRS_OPTION, TOTALS_OPTION): New constants.
- (long_options, decode_options): Use them.
- (OVERWRITE_DIR_OPTION): Remove.
- (long_options): New options --index-file, --no-overwrite-dir.
- Remove --overwrite-dir option.
- (usage): Use PACKAGE_BUGREPORT.
- (decode_options): Terminate new argv properly.
- Use PACKAGE_NAME, PACKAGE_VERSION.
- If verbose, report how we grokked any textual date option.
- (main): Add support for index-file.
- (AUTOMAKE_OPTIONS): Remove.
- (TESTS): Add delete04.sh, multiv01.sh, options.sh.
- (INCLUDES): Remove ../intl.
- (LDADD): Don't link libtar.a twice.
- Don't include <print-copyr.h>.
- (DEFAULT_PATTERN): Renamed from DEFAULT.
- (ZEROS_PATTERN): Renamed from ZEROS.
- (main): Use gettext to translate (C), not print_copyright.
- 2003-07-04 Paul Eggert <eggert@twinsun.com>
- Revamp to meet current standards of autoconf, automake,
- gettext, and gnulib, and incorporate new translations.
- config/install-sh, config/mdate-sh, config/missing,
- config/mkinstalldirs, config/texinfo.texi:
- Moved here from parent directory, or from doc.
- lib/print-copyr.h, lib/readutmp.c, lib/rename.c, lib/stpcpy.c,
- lib/strstr.c, lib/strtoimax.c, lib/strtoll.c, lib/strtoull.c,
- lib/strtoumax.c, lib/unicodeio.c, lib/unicodeio.h,
- lib/xstrtoimax.c, m4/c-bs-a.m4, m4/ccstdc.m4, m4/check-decl.m4,
- m4/decl.m4, m4/jm-mktime.m4, m4/prereq.m4, m4/xstrtoimax.m4,
- stamp-h.in: Remove.
- lib/safe-write.c, lib/safe-write.h, lib/stdbool_.h, lib/strcase.h,
- lib/stripslash.c, lib/unlocked-io.h, lib/xgetcwd.h, m4/alloca.m4,
- m4/backupfile.m4, m4/bison.m4, m4/chown.m4, m4/dirname.m4,
- m4/dos.m4, m4/exclude.m4, m4/fileblocks.m4, m4/ftruncate.m4,
- m4/getdate.m4, m4/getopt.m4, m4/hash.m4, m4/human.m4,
- m4/intdiv0.m4, m4/intmax_t.m4, m4/inttypes-pri.m4,
- m4/inttypes_h.m4, m4/isc-posix.m4, m4/lchown.m4, m4/lib-ld.m4,
- m4/lib-link.m4, m4/lib-prefix.m4, m4/memset.m4, m4/mktime.m4,
- m4/modechange.m4, m4/nls.m4, m4/onceonly.m4, m4/pathmax.m4,
- m4/po.m4, m4/quote.m4, m4/quotearg.m4, m4/rmdir.m4,
- m4/safe-read.m4, m4/safe-write.m4, m4/save-cwd.m4, m4/savedir.m4,
- m4/ssize_t.m4, m4/stdbool.m4, m4/stdint_h.m4, m4/strcase.m4,
- m4/strtoimax.m4, m4/strtol.m4, m4/strtoll.m4, m4/strtoul.m4,
- m4/strtoull.m4, m4/strtoumax.m4, m4/tm_gmtoff.m4, m4/uintmax_t.m4,
- m4/unlocked-io.m4, m4/xalloc.m4, m4/xgetcwd.m4, m4/xstrtol.m4,
- po/LINGUAS, po/Makevars, po/Rules-quot, po/boldquot.sed,
- po/en@boldquot.header, po/en@quot.header, po/en_GB.po,
- po/insert-header.sin, po/remove-potcdate.sin, po/stamp-po: New files.
- lib/argmatch.h, lib/backupfile.c, lib/backupfile.h, lib/dirname.c,
- lib/dirname.h, lib/error.c, lib/exclude.c, lib/exclude.h,
- lib/fnmatch.h, lib/full-write.c, lib/full-write.h, lib/getdate.h,
- lib/getdate.y, lib/getline.c, lib/getline.h, lib/getopt.c,
- lib/getopt.h, lib/getopt1.c, lib/hash.c, lib/hash.h, lib/human.c,
- lib/human.h, lib/lchown.c, lib/malloc.c, lib/mktime.c,
- lib/modechange.c, lib/modechange.h, lib/quote.c, lib/quote.h,
- lib/quotearg.c, lib/quotearg.h, lib/realloc.c, lib/safe-read.c,
- lib/safe-read.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
- lib/savedir.h, lib/strcasecmp.c, lib/utime.c, lib/xalloc.h,
- lib/xgetcwd.c, lib/xmalloc.c, lib/xstrdup.c, lib/xstrtol.c,
- lib/xstrtol.h, lib/xstrtoumax.c, m4/codeset.m4, m4/d-ino.m4,
- m4/error.m4, m4/fnmatch.m4, m4/getcwd.m4, m4/getline.m4, m4/gettext.m4,
- m4/glibc21.m4, m4/iconv.m4, m4/inttypes.m4, m4/lcmessage.m4,
- m4/longlong.m4, m4/malloc.m4, m4/mbrtowc.m4, m4/mbstate_t.m4,
- m4/progtest.m4, m4/realloc.m4, m4/strerror_r.m4, m4/ulonglong.m4,
- m4/utimbuf.m4, m4/utime.m4, m4/utimes.m4, m4/xstrtoumax.m4,
- po/Makefile.in.in:
- Upgrade to latest version from external source. The file "bootstrap"
- now grabs these automatically, so we needn't keep track of them
- in this change long any longer.
- (SUBDIRS): Remove intl.
- Bison 1.875, gettext 0.12.1.
- (AC_CONFIG_AUX_DIR): New.
- (AC_CONFIG_HEADERS): Rename config.h.in to config.hin, to be more
- like coreutils.
- (AC_PREREQ): Bump from 2.52 to 2.57.
- (AC_GNU_SOURCE): New.
- (AC_PROG_GCC_TRADITIONAL, AM_C_PROTOTYPES, AC_C_CONST): Remove;
- we no longer support K&R C.
- (YACC): Remove.
- (AC_CHECK_HEADERS): Remove limits.h, poll.h, stdbool.h, stropts.h,
- sys/ioccom.h, sys/param.h, sys/time.h, sys/timeb.h, wchar.h, wctype.h.
- (AC_MBSTATE_T): Remove.
- (HAVE_UTIME_H, HAVE_DECL_FREE, HAVE_DECL_GETGRGID, HAVE_DECL_GETPWUID,
- HAVE_DECL_GETENV, HAVE_DECL_MALLOC, HAVE_DECL_STRTOUL,
- HAVE_DECL_STRTOULL, HAVE_MKNOD): Remove our special code.
- (AM_STDBOOL_H): Add.
- (AC_HEADER_TIME, AC_STRUCT_TIMEZONE,
- jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Remove.
- (AC_CHECK_TYPE): Remove ssize_t.
- (gt_TYPE_SSIZE_T): Add.
- (jm_AC_PREREQ_XSTRTOUMAX, jm_PREREQ_ADDEXT, jm_PREREQ_ERROR,
- jm_PREREQ_HUMAN, jm_PREREQ_QUOTEARG, jm_PREREQ_XGETCWD,
- AC_FUNC_ALLOCA, AC_FUNC_CLOSEDIR_VOID, AC_FUNC_STRERROR_R,
- AC_FUNC_FNMATCH, AC_FUNC_VPRINTF, AM_FUNC_GETLINE, jm_FUNC_MALLOC,
- jm_FUNC_MKTIME, jm_FUNC_REALLOC):
- Remove. Switch to gnulib macros like gl_BACKUPFILE instead.
- (tar_LDADD): Rename to LIB_CLOCK_GETTIME. All uses changed.
- (rmt_LDADD): Rename to LIB_SETSOCKOPT. All uses changed.
- (AC_CHECK_FUNCS): Remove fchdir, ftime, getcwd, isascii, nap,
- napms, poll, select, strstr, usleep.
- (AC_REPLACE_FUNCS): Remove ftruncate, lchown, memset, rename,
- rmdir, strcasecmp, strncasecmp, strtol, strtoul.
- (AM_GNU_GETTEXT): Use external and need-ngettext options.
- (AM_GNU_GETTEXT_VERSION): New.
- (AC_OUTPUT): Remove intl/Makefile.
- ($(srcdir)/tar.info, tar.dvi): Remove obsolete warnings.
- plus a copyright notice.
- Use @acronym instead of @sc where appropriate.
- Remove empty examples. Give a few more examples.
- (EXTRA_DIST, libtar_a_SOURCES): Switch to gnulib, so that they
- are built up in pieces with +=.
- (noinst_HEADERS, INCLUDES): Remove.
- (BUILT_SOURCES, MAINTAINERCLEANFILES, MOSTLYCLEANFILES): New.
- (libtar_a_LIBADD): Use $ rather than @.
- (all-local, alloca.h, fnmatch.h, stdbool.h): New rules, from gnulib.
- bison.m4, chown.m4, dirname.m4, dos.m4, exclude.m4, fileblocks.m4,
- ftruncate.m4, getdate.m4, getopt.m4, hash.m4, human.m4,
- intdiv0.m4, intmax_t.m4, inttypes_h.m4, inttypes-pri.m4,
- isc-posix.m4, lcown.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
- memset.m4, mktime.m4, modechange.m4, nls.m4, onceonly.m4,
- pathmax.m4, po.m4, quotearg.m4, quote.m4, rmdir.m4, safe-read.m4,
- safe-write.m4, save-cwd.m4, savedir.m4, ssize_t.m4, stdbool.m4,
- stdint_h.m4, strcase.m4, strtoimax.m4, strtoll.m4, strtol.m4,
- strtoull.m4, strtoul.m4, strtoumax.m4, tm_gmtoff.m4, uintmax_t.m4,
- unlocked-io.m4, xalloc.m4, xgetcwd.m4, xstrtol.m4.
- Remove c-bs-a.m4, ccstdc.m4, check-decl.m4, decl.m4, jm-mktime.m4,
- prereq.m4, xstrtoimax.m4.
- be translated, since it's not a user-visible tool.
- (INCLUDES): Remove ../intl. Put top-srcdir before ., for
- consistency with coreutils.
- (LDADD): Link LIBINTL after libtar.a, since
- it's now external and should stand by itself.
- interface.
- (child_open_for_compress): Do not increase size to BLOCKSIZE.
- (open_archive): Open index file name.
- Strip trailing slahes from file names.
- (flush_write): Set size to 0 if not saving names.
- (flush_write, flush_read): Use safer_name_suffix rather than
- inline code.
- (absolute_names_option, atime_preserve_option, backup_option,
- block_number_option, checkpoint_option, dereference_option,
- force_local_option, ignore_failed_read_option, ignore_zeros_option,
- incremental_option, interactive_option, multi_volume_option,
- numeric_owner_option, one_file_system_option, recursive_unlink_option,
- read_full_records_option, remove_files_option, same_order_option,
- show_omitted_dirs_option, sparse_option, starting_file_option,
- to_stdout_option, totals_option, touch_option, verify_option,
- dev_null_output, now_verifying, we_are_root): Now bool, not int.
- (current_trailing_slash, index_file_name, recent_long_name_blocks,
- recent_long_link_blocks): New vars.
- (NO_OVERWRITE_DIR_OLD_FILES): New constant.
- (OVERWRITE_OLD_DIRS): Remove.
- (enum remove_option): New enum.
- (remove_any_file): Use it as option arg, not int.
- (is_avoided_name, contains_dot_dot): Return bool, not int.
- (safer_name_suffix): New decl.
- (fill_in_sparse_array): Move to extract.c. Now returns bool;
- all callers changed to test for failure.
- (diff_sparse_files): Take size from current_stat, not from param.
- (diff_archive): Do not count trailing slashes in archives.
- (verify_volume): Test for header failure after loop, not before.
- All callers changed.
- (start_header): Clear devmajor and devminor fields, too.
- (finish_header): New arg block_ordinal.
- (init_sparsearray): Now extern. Set sp_array_size to
- SPARSES_IN_OLDGNU_HEADER if it is zero.
- (dump_file): Keep link table as a hash.
- Do not count "file changed as we read it" as a failure.
- Move extern decl to common.h.
- (check_time): Warn about implausibly old time stamps.
- (set_stat): Use utimbuf, not stat_info.
- (prepare_to_extract): New arg DIRECTORY.
- (fill_in_sparse_array): Moved here from compare.c.
- (extract_sparse_file): Now returns off_t, giving size left.
- Truncate file at end.
- (extract_archive): Use safer_name_suffix rather than rolling our own.
- Use fill_in_sparse_array rather than rolling our own.
- Strip trailing slashes more effectively.
- Check for unsafe names.
- bool, not int.
- (gnu_restore): Now takes directory name as argument, not offset
- of directory name in a global. All uses changed.
- (CURRENT_FILE_NAME): Remove.
- New tests.
- files.
- 2002-09-30 Paul Eggert <eggert@twinsun.com>
- prepare_record_buffer. All uses changed. Do not assume that
- size_t is the same width as int.
- 2002-03-29 Paul Eggert <eggert@twinsun.com>
- If ignore_failed_read_option, only warn about
- get_directory_contents failures. Fix suggested by
- Mark Costlow.
- 2002-01-31 Mark W. Eichin <eichin@thok.org>
- past the end of the buffer.
- 2001-10-11 Jim Meyering <meyering@lucent.com>
- and quote_n (1, ... to avoid clobbering a buffer.
- 2001-09-26 Paul Eggert <eggert@twinsun.com>
- end of file; just ignore them silently.
- and link info indefinitely; keep it only for the next file.
- This fixes a bug introduced in 1.13.24, and removes the need
- for some static variables. Set recent_long_name and
- recent_long_link to zero if there were no long links; this
- avoids a violation of ANSI C rules for pointers in delete.c.
- 2001-09-26 Jim Meyering <meyering@lucent.com>
- 2001-09-25 Paul Eggert <eggert@twinsun.com>
- <iconv.h> may define EILSEQ (e.g. libiconv). Define a
- replacement EILSEQ to be ENOENT, not EINVAL, since callers may
- want to distinguish EINVAL and EILSEQ.
- 2001-09-24 Christophe Kalt <Christophe.Kalt@kbcfp.com>
- Treat OVERWRITE_OLD_DIRS like DEFAULT_OLD_FILES.
- 2001-09-22 Paul Eggert <eggert@twinsun.com>
- with GPL.
- (Option Summary, Dealing with Old Files): New option --overwrite-dir.
- (Overwrite Old Files): Likewise.
- Remove copysym.h. Add print-copyr.h, unicodeio.h.
- (libtar_a_SOURCES): Remove copysym.c, Add print-copyr.c, unicodeio.c.
- lib/unicodeio.h: New files.
- lib/mktime.c, lib/strtoll.c: Switch from LGPL to GPL.
- (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
- well as after.
- If an archive is a socket, treat it like a FIFO.
- (records_read, records_written): New vars.
- (write_archive_to_stdout): Now bool, not int.
- (open_archive, flush_write, flush_read): Keep records_read and
- records_written up to date.
- (write_archive_to_stdout): Now bool, not int.
- (enum read_header): New value HEADER_SUCCESS_EXTENDED.
- (read_header): Now takes bool arg. Existing callers modified
- to pass 0, unless otherwise specified.
- (acting_as_filter): Now bool, not int.
- (recent_long_name, recent_long_link, recent_long_name_blocks,
- recent_long_link_blocks, records_read, records_written): New decls.
- (records_skipped): New var.
- (move_archive): Don't divide by zero if arg is 0.
- Use the above vars to compute how far to move.
- (write_recent_blocks): New function.
- (delete_archive_member): Pass 1 to read_header, so that it doesn't
- read more than 1 block. Handle resulting HEADER_SUCCESS_EXTENDED code.
- Keep track of how many records have been skipped.
- Let the buffer code count records.
- When copying a header, copy any extended headers that came before it.
- updated after symlinks, stat all directories after it in the
- delayed-set-stat list too, since they will be checked after
- symlinks. Add support for --overwrite-dir.
- recent_long_name_blocks, recent_long_link_blocks): New vars.
- (read_and): Pass 0 to read_header.
- (read_header): New arg RAW_EXTENDED_HEADERS. Store away extended
- headers into new vars. Null-terminate incoming symbolic links.
- (main): Use print_copyright, not copyright_symbol.
- (OVERWRITE_DIR_OPTION): New constant.
- (long_options, usage, decode_options): Add --overwrite-dir.
- (main): Use print_copyright, not copyright_symbol.
- Include <argmatch.h>.
- (pattern_strings): Remove.
- (pattern_args, pattern_types): New constants.
- (main): Use XARGMATCH, not argmatch.
- 2001-09-20 Jim Meyering <meyering@lucent.com>
- `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
- The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
- have their own, conflicting declaration of strtoimax in sys/inttypes.h.
- (strtoumax): Likewise, for completeness (it wasn't necessary).
- Check for declaration of strtoimax.
- Check for declaration of strtoumax.
- 2001-09-16 Paul Eggert <eggert@twinsun.com>
- 2001-09-14 Paul Eggert <eggert@twinsun.com>
- Remove automake 1.4 workaround, as we're using 1.5 now.
- (USE_INCLUDED_LIBINTL): New AC_DEFINE.
- Include langinfo.h if needed.
- Use locale_charset only if USE_INCLUDED_LIBINTL;
- if not, use nl_langinfo (CODESET) if available.
- 2001-09-13 Paul Eggert <eggert@twinsun.com>
- (libtar_a_SOURCES): Add copysym.c.
- Fix bug with calculating version of Bison 1.29.
- Reported by Karl Berry.
- (main): Use copyright_symbol to translate copyright notice,
- instead of gettext.
- 2001-09-11 Paul Eggert <eggert@twinsun.com>
- 'after_symlinks'.
- (delay_set_stat): Initialize it to 0.
- (set_mode): New arg current_stat_info. Use it (if nonnull) to avoid
- taking an extra stat ourselves. All callers changed.
- (set_stat): Likewise.
- (apply_nonancestor_delayed_set_stat): New arg 'after_symlinks'.
- If false, stop when encountering a struct whose 'after_symlinks'
- member is true. Otherwise, go through all structures but check
- them more carefully. All callers changed.
- (extract_archive): When extracting a deferred symlink, if its parent
- directory's status needs fixing, then mark the directory as needing
- to be fixed after symlinks.
- (extract_finish): Fix status of ordinary directories, then apply
- delayed symlinks, then fix the status of directories that are
- ancestors of delayed symlinks.
- Remove declaration; it ran afoul of prototypes on Crays.
- Reported by Wendy Palm of Cray.
- 2001-09-06 Paul Eggert <eggert@twinsun.com>
- Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
- (strtoimax): Use sizeof (long), not
- sizeof strtol (ptr, endptr, base),
- to work around bug in IBM C compiler.
- 2001-09-04 Paul Eggert <eggert@twinsun.com>
- (xgetcwd): Do not return NULL when memory is exhausted; instead,
- report an error and exit.
- (jm_PREREQ): Use it.
- 2001-09-03 Paul Eggert <eggert@twinsun.com>
- (jm_PREREQ_XGETCWD): New macro.
- Fix typo that caused us to do case-folding
- search even when that was not desired. This occurred only in the
- no-wildcard case.
- Do not include xalloc.h.
- (INITIAL_BUFFER_SIZE): New symbol.
- Do not use xmalloc / xrealloc, since the caller is responsible for
- handling errors. Preserve errno around `free' during failure.
- Do not overrun buffer when using getwd.
- Use HAVE_GETCWD_NULL, not defined __GLIBC__ && __GLIBC__ >= 2,
- to decide whether to use getcwd (NULL, 0).
- 2001-09-02 Paul Eggert <eggert@twinsun.com>
- 2001-09-01 Jim Meyering <meyering@lucent.com>
- (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
- and strncasecmp as r-values. Unixware didn't have declarations.
- 2001-08-31 Jim Meyering <meyering@lucent.com>
- Use an initial, malloc'd, buffer of length 128 rather than
- a statically allocated one of length 1024.
- 2001-08-30 Paul Eggert <eggert@twinsun.com>
- 2001-08-29 Paul Eggert <eggert@twinsun.com>
- This fixes a bug reported by Jose Pedro Oliveira.
- struct hack; this avoids wasted space in some cases.
- for consistency with other code that does similar things.
- add_hierarchy_to_namelist): Avoid quadratic behavior when
- reallocating buffers. Check for buffer size overflow.
- (addname): Avoid unnecessary clearing of memory.
- 2001-08-29 "Jan D." <Jan.Djarv@mbox200.swipnet.se>
- name size allocation that caused core dumps.
- 2001-08-28 Paul Eggert <eggert@twinsun.com>
- (major_t, minor_t, ssize_t): Use new-style AC_CHECK_TYPE.
- (daddr_t): Remove; no longer used.
- (jm_PREREQ_HUMAN): Add.
- New files, from automake 1.5. Gettext 0.10.39 needs them.
- (SUBDIRS): Put intl before lib, as gettext requires.
- New files, from gettext 0.10.39.
- Upgrade to gettext 0.10.39,
- permissions.
- Remove; no longer used by gettext 0.10.39.
- $(srcdir)/tar.texi: Likewise.
- `fileds' -> `fields'
- (noinst_HEADERS): Add quote.h.
- (libtar_a_SOURCES): Add quote.c, xstrtoimax.c.
- Include stdlib.h and unistd.h if available.
- Include xalloc.h.
- (xmalloc, xstrdup, free): Remove decls.
- (xgetcwd): Don't assume sizes fit in unsigned.
- Check for overflow when computing sizes.
- Simplify reallocation code.
- similar to strtol.c.
- (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.
- (verify): New macro.
- (strtoumax, uintmax_t, strtoull, strtol): Remove.
- (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
- (strtoimax): Renamed from strtoumax. All uses of unsigned values
- changed to signed values. Check sizes at compile-time, not
- run-time. Prefer strtol to strtoll if both work.
- (main): Remove.
- Add codeset.m4, glibc21.m4, iconv.m4, inttypes.m4,
- longlong.m4, xstrtoimax.m4.
- Remove; now done by autoconf.
- (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T): Replace with
- Use AC_CHECK_TYPE instead of merely looking for the header.
- Quote first arg of AC_DEFUN.
- Require jm_AC_TYPE_INTMAX_T and jm_AC_TYPE_LONG_LONG since they
- is needed to parse the include file.
- Simplify logic behind the args to AC_REPLACE.
- Use "Copyright %d" to simplify the translator's job in the future.
- Advise translator about circle-C.
- 2001-08-28 Jim Meyering <meyering@lucent.com>
- (argmatch_invalid): Quote the context.
- Use single-quote for local .h files.
- glibc versions.
- invoking mktime the last time.
- rename function, but to work around problems with trailing
- slashes.
- Add support for signed numbers, too.
- (strtoul, strtoull): Do not declare if STRTOUXMAX_UNSIGNED
- is not defined.
- (strtol, strtoll): Declare as needed, if STRTOUXMAX_UNSIGNED is
- not defined.
- (strtoumax, uintmax_t, strtoull, strtoul): New macros.
- (main): Use generic names in debugging output.
- (main): Use accurate names in debugging output.
- Don't use PATH_MAX.
- m4/getline.m4, m4/jm-mktime.m4, m4/malloc.m4, m4/mbrtowc.m4,
- m4/mbstate_t.m4, m4/realloc.m4, m4/uintmax_t.m4, m4/utimbuf.m4,
- m4/utime.m4, m4/utimes.m4:
- Quote the first argument in each use of AC_DEFUN.
- 2001-08-27 Paul Eggert <eggert@twinsun.com>
- The biggest change is the new --exclude semantics and options.
- The basic idea was suggested by Gerhard Poul; thanks!
- (M4DIR, ACINCLUDE_INPUTS, $(srcdir)/acinclude.m4):
- Remove; the automake bug has been fixed.
- (AC_PREREQ): Bump from 2.13 to 2.52.
- (ALL_LINGUAS): Add id, tr. Remove ko, as po/ko.po (dated
- 1997-05-30) has an encoding error.
- (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf.
- (AC_FUNC_FNMATCH): Use AC_CONFIG_LINKS, not AC_LINK_FILES.
- Accommodate new gfdl sectioning.
- New option --recursion (the default) that is the inverse of
- --no-recursion.
- New options --anchored, --ignore-case, --wildcards,
- --wildcards-match-slash, and their negations (e.g., --no-anchored).
- Along with --recursion and --no-recursion, these control how exclude
- patterns are interpreted. The default interpretation of exclude
- patterns is now --no-anchored --no-ignore-case --recursion
- --wildcards --wildcards-match-slash.
- (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
- (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
- Include if available.
- (<xalloc.h>): Include
- (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
- (verify): New macro. Use it to verify that EXCLUDE macros do not
- collide with FNM macros.
- (struct patopts): New struct.
- (struct exclude): Use it, as exclude patterns now come with options.
- (new_exclude): Support above changes.
- (new_exclude, add_exclude_file):
- Initial size must now be a power of two to simplify overflow checking.
- (free_exclude, fnmatch_no_wildcards): New function.
- (excluded_filename): No longer requires options arg, as the options
- are determined by add_exclude. Now returns bool, not int.
- (excluded_filename, add_exclude):
- Add support for the fancy new exclusion options.
- (add_exclude, add_exclude_file): Now takes int options arg.
- Check for arithmetic overflow when computing sizes.
- (add_exclude_file): xrealloc might modify errno, so don't
- realloc until after errno might be used.
- New macros.
- (free_exclude): New decl.
- (add_exclude, add_exclude_file): Now takes int options arg.
- (excluded_filename): No longer requires options arg, as the options
- are determined by add_exclude. Now returns bool, not int.
- we use strlen.
- BSD/OS 4.1 wchar.h requires FILE and struct tm to be declared.
- diagnostic for LONGINT_INVALID_SUFFIX_CHAR.
- Remove inttypes_h.m4, largefile.m4, mktime.m4.
- subsumed by Autoconf 2.50.
- remove test for GNU C library. It's not correct, as some
- older glibcs are buggy.
- (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
- (jm_PREREQ_EXCLUDE): New macro.
- (jm_PREREQ_HUMAN): Remove jm_AC_HEADER_INTTYPES_H, as it is subsumed
- by autoconf 2.5x.
- (jm_AC_PREREQ_XSTRTOUMAX): Remove jm_AC_HEADER_INTTYPES_H, as
- it is now subsumed by autoconf. Add inttypes.h.
- po/it.po, po/pl.po, po/sl.po, po/sv.po: Sync with translation project.
- Remove, replacing by:
- (excluded): New decl.
- (link_error): New decl.
- (excluded_name): Now returns bool.
- (struct delayed_symlinks, extract_archive, apply_delayed_symlinks):
- Support hard links to symbolic links.
- (struct delayed_symlink): Remove 'names' member, replacing it with
- 'sources' and 'target' member. All uses changed.
- (struct string_list): New type.
- (delayed_set_stat, extract_archive): Use offsetof when computing sizes
- for struct hack; this avoids wasted space in some cases.
- (extract_archive): Fix test for absolute pathnames and/or "..".
- Use link_error to report errors for links.
- Remove redundant trailing '/' at "really_dir", for all uses, not
- just before invoking mkdir.
- If overwriting old files, do not worry so much about existing
- directories.
- Fix mode computation in the case where the directory exists.
- (apply_delayed_symlinks): If we can't make a hard link to a symbolic
- link, make a copy of the symbolic link.
- If ignore_failed_read_option, only warn about
- stat failures.
- However, check for error even for '-' or '+' case.
- (print_header): Try parsing uids and gids as unsigned integers first,
- and as a uid_t or gid_t only if that fails. This adds support for
- listing positive uids and gids that are greater than UID_MAX and
- GID_MAX.
- If ignore_failed_read_option, only warn about
- stat errors.
- (excluded_name): Now returns bool. Simplify, as the fancy
- features are now all in excluded_filename.
- declares it.
- (offsetof): Declare if stddef.h doesn't.
- Include <dirname.h>.
- (FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now defined by dirname.h.
- NO_ANCHORED_OPTION, NO_IGNORE_CASE_OPTION, NO_WILDCARDS_OPTION,
- NO_WILDCARDS_MATCH_SLASH_OPTION, WILDCARDS_OPTION,
- WILDCARDS_MATCH_SLASH_OPTION):
- New enum values.
- (long_options, usage, decode_options): Add support for --anchored,
- --ignore-case, --no-anchored, --no-ignore-case, --no-wildcards,
- --no-wildcards-match-slash, --recursion, --wildcards,
- --wildcards-match-slash.
- (decode_options): Implement the new way of interpreting exclude
- patterns.
- (usage): --newer-mtime takes a DATE operand. DATE may be a file name.
- (OPTION_STRING, decode_options): Add -I, -y. Currently these options
- just print error messages suggesting alternatives.
- (add_filtered_exclude): Remove.
- directory/subdirectory/file1, as the new semantics for
- --exclude exclude it.
- 2001-08-12 Paul Eggert <eggert@twinsun.com>
- (errno): Declare if not defined.
- (addext): Work correctly on the Hurd, where pathconf returns -1 and
- leaves errno alone, because there is no limit. Also, work even if
- size_t is narrower than long.
- 2001-07-08 Paul Eggert <eggert@twinsun.com>
- 2001-05-10 Paul Eggert <eggert@twinsun.com>
- Include <backupfile.h> and <dirname.h> after size_t is defined.
- (addext): Use base_len to trim redundant trailing slashes instead of
- doing it ourselves.
- Remove decls; now in dirname.h.
- Include <argmatch.h>, <backupfile.h>, <dirname.h> after size_t
- is defined.
- (find_backup_file_name): Rename locals to avoid new functions.
- Use base_len instead of rolling it ourselves.
- Work even if dirlen is 0.
- Use a dir of '.' if given the empty string.
- Do not include <stdio.h>, <assert.h>; no longer needed.
- (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Remove; now in dirname.h.
- Include <string.h>, <dirname.h>.
- (base_name): Allow file names ending in slashes, other than names
- that are all slashes. In this case, return the basename followed
- by the slashes.
- (FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now in dirname.h.
- (dir_len): Renamed from dirlen.
- All callers changed.
- New macros.
- (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
- 2001-02-16 Paul Eggert <eggert@twinsun.com>
- Do not declare or define if HAVE_MBRTOWC,
- since the test for HAVE_MBRTOWC now requires proper declarations.
- 2001-02-13 Paul Eggert <eggert@twinsun.com>
- From Maciej W. Rozycki.
- 2001-01-26 Paul Eggert <eggert@twinsun.com>
- 2001-01-12 Paul Eggert <eggert@twinsun.com>
- Remove -I as an alias for -T, for now.
- Add @dircategory.
- Update copyright. Remove "Published by".
- Dates beginning with / or . are taken to be file names.
- (time): Do not declare.
- (usage): Remove -I as an alias for -T.
- (OPTION_STRING): Remove -I.
- (decode_options): Dates that look like an absolute path name,
- or that start with '.', are presumed to be file names whose
- dates are taken.
- Remove 'I' as an aliase for 'T'.
- Update copyright.
- (make_directories): Skip filesystem prefixes.
- Don't assume '/' is the only separator.
- (extract_sparse_file): Use new full_write semantics.
- On write error, return instead of invoking skip_file.
- Do not free sparsearray; caller does this now.
- (apply_nonancestor_delayed_set_stat): Do not assume '/' is the only
- separator.
- (extract_archive): Don't assume file name lengths fit in int.
- Report what got stripped from member name; it might be more than '/'.
- Use new full_write semantics.
- Do not pass redundant trailing "/" to mkdir, as POSIX does not allow
- mkdir to ignore it.
- Do not report mkdir error if old_files_option == KEEP_OLD_FILES.
- (time): Remove decl; likewise.
- (child_open_for_uncompress): Use new full_write semantics.
- (flush_write): Use ISSLASH instead of testing for '/'.
- (flush_read): Likewise.
- Don't assume '/' is the only separator.
- (safer_rmdir): Don't assume '/' is the only separator.
- Remove path_size arg; all callers changed.
- Don't assume '/' is the only directory separator.
- (gnu_restore): Work even if file name length doesn't fit in int.
- (addext): Trim any redundant trailing slashes.
- Don't assume '/' is the only directory separator.
- (namelist_match): Likewise.
- (add_hierarchy_to_namelist): Remove dirsize arg.
- Do not assume '/' is the only directory separator.
- (new_name): Likewise.
- (libtar_a_SOURCES): Add dirname.c.
- New function, with much of old start_header's guts.
- Handle filesystem prefixes.
- (start_header): Use this new function.
- (init_sparsearray): Don't bother to zero out the new array;
- it's not needed.
- (deal_with_sparse): Fix array allocation bug.
- (create_archive): Don't assume '/' is the only separator.
- (dump_file): Likewise.
- Don't worry about leading / in symlink targets.
- Remove size arg; it wasn't portable. All callers changed.
- (ISSLASH): New macro.
- (find_backup_file_name): Use dirlen to calculate directory lengths.
- (max_backup_version): Strip redundant trailing slashes.
- (get_directory_contents): No longer has size arg.
- (gnu_restore): Arg is size_t, not int.
- (time): Declare if not defined.
- full_write returns size_t, with short writes meaning failure.
- All callers changed.
- (main): Update copyright.
- Show how to use "date" so that the output is acceptable to getdate.
- Mention Z as an abbreviation for UTC.
- Use HAVE_STDLIB_H, not STDC_HEADERS, to decide whether to include
- stdlib.h.
- Do not include string.h, strings.h, or assert.h; no longer needed.
- (strrchr, memrchr, malloc): Remove decls; no longer needed.
- Include <xalloc.h>.
- (base_name): New decl.
- (BACKSLASH_IS_PATH_SEPARATOR): Remove.
- (dir_name_r): Remove.
- (dirlen): New function.
- (dir_name): Use dirlen instead of dir_name_r.
- (<string.h>, <strings.h>): Include only if test program.
- (main): Use "return 0", not "exit (0)".
- 2000-12-08 Paul Eggert <eggert@twinsun.com>
- 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
- the GNU C library, because in some cases we are replacing buggy
- code in the GNU C library itself.
- 2000-10-30 Paul Eggert <eggert@twinsun.com>
- 2000-10-29 Paul Eggert <eggert@twinsun.com>
- 2000-10-28 Paul Eggert <eggert@twinsun.com>
- Do not match subfiles of a directory
- if --no-recursion is specified.
- (long_options): Have getopt set the --no-recursion flag.
- (decode_options): Initialize recursion_option to FNM_LEADING_DIR.
- Remove case for NO_RECURSE_OPTION.
- Renamed from no_recurse_option, with sense
- negated, and with FNM_LEADING_DIR being the nonzero value.
- (name_match, name_scan): Use it to eliminate duplicate code.
- (names_notfound): Remove special case for Amiga.
- 2000-10-27 Paul Eggert <eggert@twinsun.com>
- read_fatal_details): Don't assume size_t is unsigned long.
- fill the input buffer, as --delete -f - needs this.
- 2000-10-24 Paul Eggert <eggert@twinsun.com>
- Make sure header name is a string before
- passing it to fnmatch.
- (init_volume_number): Check for global_volno overflow.
- (new_volume): Check for global_volno overflow.
- Check that volume label is not too long to overflow
- name in tar header block.
- (AC_FUNC_STRERROR_R): Use this instead.
- 2000-10-23 Paul Eggert <eggert@twinsun.com>
- Don't use NULL, for portability.
- Include <hash.h>.
- (getpwuid, getgrgid): Declare only if system headers don't.
- (gid_to_gname): Don't invoke setgrent.
- (namelist): Now static, not global.
- (nametail): New var. All uses of namelast changed to use
- nametail, with one extra level of indirection.
- (name_gather): Use memcpy instead of strncpy + assignment of NUL.
- (name_match): Set nametail too, when setting namelist to null.
- (add_hierarchy_to_namelist): Change type of dir arg from char * to
- struct name *, so that we don't have to look up the name again
- here. Get change_dir from dir rather than as a separate arg. Add
- dirsize arg, and pass it along to get_directory_contents. Remove
- unnecessary check of directory type.
- (new_name): Do not append a slash if PATH already ends in one.
- (avoided_names, struct avoided_name): Remove.
- (avoided_name_table): New var, replacing avoided_names.
- (hash_avoided_name, compare_avoided_names): New function.
- (add_avoided_name, is_avoided_name): Use hash table rather than
- linked list.
- (child_open_for_compress, child_open_for_uncompress,
- close_archive): Propagate any failure of the compression process
- back to "tar".
- (open_archive, flush_write, flush_read, close_archive): Do not
- allocate an array of size PATH_MAX, as PATH_MAX might be (size_t)
- -1. Instead, allocate an array with the size that's needed.
- (open_archive): Don't bother checking S_ISCHR of /dev/null.
- (backspace_output): Don't try to backspace past start of archive.
- (close_archive): Remove special case for DELETE_SUBCOMMAND.
- DENSITY_LETTER, DEVICE_PREFIX, EMUL_OPEN3, HAVE_GETGRGID,
- HAVE_GETPWUID, HAVE_MKNOD, HAVE_RTAPELIB, HAVE_ST_FSTYPE_STRING,
- HAVE_UNION_WAIT, HAVE_UTIME_H, HAVE_VALLOC, MTIO_CHECK_FIELD, PACKAGE,
- PROTOTYPES, REMOTE_SHELL, STD_INC_PATH, VERSION, WITH_CATALOGS,
- WITH_DMALLOC, WITH_REGEX):
- Remove; now generated automatically.
- compatibility for glibc fragments.
- (_GNU_SOURCE, HAVE_UTIME_H, MTIO_CHECK_FIELD,
- HAVE_ST_FSTYPE_STRING, HAVE_MKNOD, REMOTE_SHELL, DENSITY_LETTER,
- DEVICE_PREFIX, DEFAULT_ARCHIVE, DEFAULT_BLOCKING): Add comment so
- that we needn't put an entry into acconfig.h.
- (ALL_LINGUAS): Add da.
- (AC_C_BACKSLASH_A): Remove; jm_PREREQ_QUOTEARG now does this.
- (AC_CHECK_HEADERS): Add stdbool.h (for hash.h users), wctype.h
- (for strtol.c).
- (AC_MBSTATE_T): Add.
- (RMT): Append $(EXEEXT).
- (HAVE_GETGRGID, HAVE_GETPWUID, pe_AC_TYPE_SIGNED_CHAR): Remove.
- (HAVE_DECL_FREE, HAVE_DECL_GETGRGID, HAVE_DECL_GETPWUID,
- HAVE_DECL_GETENV, HAVE_DECL_MALLOC, HAVE_DECL_STRTOUL,
- HAVE_DECL_STRTOULL, HAVE_DECL_STRERROR_R): New macros.
- (jm_PREREQ_ADDEXT, jm_PREREQ_ERROR, jm_PREREQ_QUOTEARG): Add.
- (AC_REPLACE_FUNCS): Remove execlp; no longer needed.
- (AC_CHECK_FUNCS): Add clock_gettime; AC_SEARCH_LIBS wasn't enough.
- Remove mbrtowc; jm_PREREQ_QUOTEARG now does this.
- (EMUL_OPEN3): Remove; no longer needed.
- (DENSITY_LETTER, DEVICE_PREFIX): Simplify m4 quoting.
- declare base_name instead.
- Remove these files.
- lib/prepargs.h, lib/savedir.c, lib/savedir.h: New files.
- Adjust to the above changes.
- (tar_SOURCES): Remove open3.c.
- (INCLUDES): Remove -I.., as automake does that.
- (OMIT_DEPENDENCIES): ../lib/fnmatch.h -> fnmatch.h. Add localedir.h.
- The following changes are to put LOCALEDIR into localedir.h instead
- of passing it on the command line.
- (DEFS): Remove.
- (DISTCLEANFILES): New macro.
- (localedir.h): New rule.
- (rmt.o tar.o): Now depend on localedir.h.
- (TESTS): Add extrac04.sh, and restore delete02.sh.
- (DEFS): Remove; LOCALEDIR is now done via localedir.h.
- (INCLUDES): Remove -I.. as automake does this now.
- (do_command): Simplify signal-handling code slightly.
- blocking_factor - new_blocks.
- (acting_as_filter): New var.
- (write_record, delete_archive_members): Use acting_as_filter
- rather than archive == STDIN_FILENO to detect whether we're acting
- as a filter, as open can return STDIN_FILENO in some cases.
- (delete_archive_members): Ignore zero blocks if
- ignore_zeros_option is nonzero. Fix bug that messed up last
- output block: write_eot can't be used here, as it gets confused
- when the input is at end of file.
- symbolic link contents length. Pass directory size to
- get_directory_contents.
- m4/strerror_r.m4: New files.
- Fix diagnostic with wrong number of %s'es.
- Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
- e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
- fall off a device's end. Detect this.
- uses changed.
- (open): Remove macro; we no longer support EMUL_OPEN3. Do not
- include <pathmax.h> and directory include files like <dirent.h>;
- no longer used. Include <savedir.h> instead.
- (closedir, signed_char): remove macro; no longer used.
- (bool, false, true): Include <stdbool.h> if you have the include
- file, otherwise define.
- (is_dot_or_dotdot, closedir_error, closedir_warn, opendir_error,
- opendir_warn, readdir_error): Remove; no longer needed.
- (safer_rmdir): Strip leading ./ (or .
- before deciding whether we're trying to remove ".".
- (remove_any_file): Try unlink first if we are not root. Use
- savedir when recursively removing directories, to avoid exhausting
- file descriptors.
- (savedir_error, savedir_warn, symlink_error): New functions.
- apply_nonancestor_delayed_set_stat; DO_SOMETHING is now
- responsible for that. Do not invoke apply_delayed_set_stat; our
- caller is now responsible for that.
- (read_header): Use signed char instead of signed_char. Prevent
- later references to current_header from mistakenly treating it as
- an old GNU header.
- (from_header): Quote invalid base-64 strings in diagnostics.
- (time_from_header): Do not warn about future timestamps in
- archive; check_time now does that.
- (print_header): Quote unknown file types.
- (skip_member): New function, replacing skip_extended_headers and
- now skipping the whole member instead of just the extended
- headers. All callers changed. This makes the code handle
- extended headers uniformly, and fixes some bugs.
- (struct delayed_symlink): New type.
- (delayed_symlink_head): New var.
- (extr_init, fatal_exit): Invoke extract_finish on fatal errors,
- not apply_delayed_set_stat.
- (set_mode, set_stat): Pointer args are now const pointers.
- (check_time): New function.
- (set_stat): Warn if setting a file's timestamp to be the future.
- (make_directories): Do not save and restore errno.
- (maybe_recoverable): Set errno to ENOENT if we cannot make missing
- intermediate directories.
- (extract_archive): Invoke apply_nonancestor_delayed_set_stat here,
- not in caller. Extract potentially dangerous symbolic links more
- carefully, deferring their creation until the end, and using a
- regular file placeholder in the meantime. Do not remove trailing
- / and /. from file names. Do not bother checking for ".." when
- checking whether a directory loops back on itself, as loopbacks
- can occur with symlinks too. Also, in that case, do not bother
- saving and restoring errno; just set it to EEXIST.
- (apply_nonancestor_delayed_set_stat): A prefix is a potential
- ancestor if it ends in slash too (as well as ending in a char just
- before slash).
- (apply_delayed_set_stat): Remove.
- (apply_delayed_symlinks, extract_finish): New functions.
- ($(srcdir)/tar.info): Add fdl.texi. Invoke makeinfo with --no-split.
- "Overwrite Old Files", and revamp that section to make it easier to
- follow. "tar" -> "GNU tar" where appropriate. Migrate getdate
- documentation into getdate.texi. Fix several minor typos. Describe
- TAR_OPTIONS. Describe incompatibility between incremental backups and
- --atime-preserve. Describe incompatibility between --verify and other
- options. Mention that tar normally removes symbolic links rather than
- following them, when extracting a file of the same name.
- (we_are_root, extract_finish, skip_member, savedir_error,
- savedir_warn, symlink_error, gnu_list_name): New decls.
- (apply_delayed_set_stat, apply_nonancestor_delayed_set_stat,
- skip_extended_headers, is_dot_or_dotdot, closedir_error,
- closedir_warn, opendir_error, opendir_warn, readdir_error,
- readdir_warn): Remove decls.
- (get_directory_contents): New off_t arg.
- (addname): Now returns struct name *.
- (gnu_list_name): Remove decl.
- (struct link): Remove "next" member.
- (linklist): Remove.
- (start_header): Say "leading `FOO'" rather than "`FOO' prefix" for
- consistency with other diagnostics.
- (deal_with_sparse): Check for I/O error when closing the file.
- (create_archive): Do not allocate an array of size PATH_MAX, as
- PATH_MAX might be (size_t) -1. Instead, allocate an array with
- the size that's needed.
- (hash_link, compare_links): New functions.
- (dump_file): Do not exhaust open file descriptors when descending
- deeply into a directory, by using savedir rather than
- opendir/readdir. Do not zero-fill the name buffer unnecessarily.
- Hash the set of links already created, instead of using a linked
- list. Fix some bugs in outputting sparse files which caused the
- sparse tables to be incorrect. When a file unexpectedly shrinks,
- output zeros rather than garbage. Do not allocate an array of
- size PATH_MAX, as PATH_MAX might be (size_t) -1. Instead,
- allocate an array with the size that's needed.
- (struct directory): Remove "next", "dir_text". Change "name" to
- be char[1] with struct hack, not const char *. Add "found".
- (directory_list): Remove. Replaced by directory_table.
- (directory_table): New var.
- (nfs_string): Renamed from nfs.
- (hash_directory, compare_directories): New functions.
- (note_directory): Now returns struct directory *. First arg is
- now const pointer. struct stat arg is now dev_t, ino_t, nfs.
- Remove text arg. New "found" arg, basically corresponding to the
- old text arg not being null. All callers changed.
- (note_directory, find_directory): Use hash table rather than
- linked list.
- (get_directory_contents): New arg "device". Use savedir to do the
- hard work. Save the nfs-ness of stat_data, since it might change
- under us. Use note_directory instead of find_directory to save
- some work. When adding an "A" record, do it with
- add_to_accumulator instead of cheating with strcat.
- (read_directory_file): Use "+" flag before device to indicate
- whether it was NFS. Fix typo in checking for strtoul error.
- (write_directory_file_entry): New function.
- (write_directory_file): Use it, and use the hash routines to
- traverse the directory table.
- (gnu_restore): Use savedir rather than opendir/readdir.
- (long_options): Now static.
- (long_options, usage, decode_options): -j is now short for
- --bzip2, and -I is now an alias for -T.
- (decode_options, main): argv is not const pointer now.
- (decode_options): Invoke prepend_default_options to support
- TAR_OPTIONS. In diagnostic, mention the string that was the
- invalid blocking factor, tape length, group, owner, or record
- size. --delete is no longer incompatible with -f -, undoing
- 2000-01-07 change.
- (main): Invoke extract_finish at end of extraction.
- (main): Update copyright date to 2000.
- following changes: Use @sc where appropriate. Document the ranges of
- supported times more precisely. Add Eggert to getdate authors.
- Document old Latin 12m/12pm tradition. Remove list of alphabetic time
- zone names, as it wasn't correct and people shouldn't be relying on it
- anyway. Relative items also account for non-DST adjustments. Fix
- some misspellings.
- brain damaged host.
- 2000-10-20 Paul Eggert <eggert@twinsun.com>
- 2000-10-19 Paul Eggert <eggert@twinsun.com>
- glibc 2.1.95.
- 2000-10-17 Paul Eggert <eggert@twinsun.com>
- (CHAR_BIT): Remove.
- (CHAR_BIT): Define if not defined.
- 2000-09-09 Paul Eggert <eggert@twinsun.com>
- 2000-08-07 Paul Eggert <eggert@twinsun.com>
- change to array from char *.
- 2000-08-06 Paul Eggert <eggert@twinsun.com>
- compatibility with glibc 2.1.3 strftime.c.
- 2000-07-31 Paul Eggert <eggert@twinsun.com>
- Don't make the initial slot vector a constant,
- since it might get modified.
- 2000-07-30 Paul Eggert <eggert@twinsun.com>
- Preallocate a slot 0 buffer, so that the caller
- can always quote one small component of a "memory exhausted" message
- in slot 0.
- 2000-07-23 Paul Eggert <eggert@twinsun.com>
- Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX), so that
- mbstate_t is always defined.
- Do not inspect MB_LEN_MAX, since it's incorrectly defined to be 1 in
- some GCC installations, and this configuration error is likely to be
- common.
- 2000-07-22 Paul Eggert <eggert@twinsun.com>
- When the system forces us to redefine mbstate_t, shadow its mbsinit
- function. From Bruno Haible.
- 2000-07-14 Paul Eggert <eggert@twinsun.com>
- 2000-07-13 Paul Eggert <eggert@twinsun.com>
- New constant clocale_quoting_style.
- (quoting_style_args, quoting_style_vals, quotearg_buffer_restyled):
- Add support for clocale_quoting_style, undoing previous change to
- locale_quoting_style.
- 2000-07-10 Paul Eggert <eggert@twinsun.com>
- <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX,
- since otherwise we don't need it.
- (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
- since we don't do multibytes in that case.
- (quotearg_buffer_restyled): If a unibyte locale, don't bother to
- invoke multibyte primitives.
- Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
- Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
- and mbstate_t, to a single-part test that simply defines mbstate_t.
- Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
- to decide whether to define the BeOS workaround macro;
- this adjusts to the change to AC_MBSTATE_T.
- 2000-07-05 Paul Eggert <eggert@twinsun.com>
- (gettext_default): New function.
- (quotearg_buffer_restyled): Use gettext_default ("{LEFT QUOTATION MARK}",
- "\"") for left quote, and gettext_default ("{RIGHT QUOTATION MARK}", "\"")
- for right quote.
- Simplify quote_these_too dimension.
- From Bruno Haible <haible@clisp.cons.org>.
- Test for mbstate_t only if the test
- for an object-type mbstate_t fails.
- 2000-07-03 Paul Eggert <eggert@twinsun.com>
- Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
- Assign to *pwc, and return 1 only if result is nonzero.
- (iswprint): Define to ISPRINT if we are substituting our own mbrtowc.
- 2000-07-02 Paul Eggert <eggert@twinsun.com>
- Do not define; it should be defined with AC_CHECK_TYPE.
- 2000-06-26 Paul Eggert <eggert@twinsun.com>
- a bug in glibc 2.1.3.
- 2000-06-19 Paul Eggert <eggert@twinsun.com>
- inclusion of wctype.h to work around solaris2.6 namespace pollution.
- (ISPRINT): Likewise.
- Reported by Tom Tromey.
- 2000-06-15 Paul Eggert <eggert@twinsun.com>
- (human_readable_inexact): Apply rounding style even when printing
- approximate values.
- From Jim Meyering.
- 2000-06-14 Paul Eggert <eggert@twinsun.com>
- that is not a multiple of the output block size, and vice versa.
- indicator, not before.
- 2000-05-31 Paul Eggert <eggert@twinsun.com>
- and thus don't need AC_CANONICAL_HOST.
- (AC_SYS_LARGEFILE_FLAGS, AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
- (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
- (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
- CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY. All uses
- changed. Instead of inspecting the output of getconf, try to
- compile the test program without and with the macro definition.
- (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check for
- getconf. Instead, check for the needed flags by compiling test
- programs.
- longer needs it.
- 2000-05-03 Paul Eggert <eggert@twinsun.com>
- 500, instead of _GNU_SOURCE to be 1, to work around glibc 2.1.3
- bug. This avoids a clash when files like regex.c that define
- _GNU_SOURCE.
- 2000-05-02 Paul Eggert <eggert@twinsun.com>
- Define _GNU_SOURCE if this is needed to make
- ftello visible (e.g. glibc 2.1.3). Use compile-time test, rather than
- inspecting host and OS, to decide whether to define _LARGEFILE_SOURCE.
- Add definitions if !HAVE_MBSTATE_T_OBJECT.
- (<wctype.h>): Include if HAVE_WCTYPE_H.
- (iswprint): Define to 1 if we lack it
- 2000-04-18 Paul Eggert <eggert@twinsun.com>
- 2000-04-17 Bruno Haible <haible@clisp.cons.org>
- 2000-04-05 Paul Eggert <eggert@twinsun.com>
- Don't use -n32 on IRIX if the installer said
- otherwise.
- 2000-02-28 Paul Eggert <eggert@twinsun.com>
- (quotearg_buffer_restyled): Use it.
- 2000-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
- OLD_CTIME.
- 2000-02-18 Paul Eggert <eggert@twinsun.com>
- (textint): New typedef.
- (parser_control): Changed from struct parser_control to typedef
- (for consistency). Member year changed from int to textint. All
- uses changed.
- (YYSTYPE): Removed; replaced by %union with int and textint
- members.
- (tID): Removed; not used.
- (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE,
- tMERIDIAN, tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER,
- tUNUMBER, tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
- (tSNUMBER, tUNUMBER): Now of type <textintval>.
- (date, number, to_year): Use width of number in digits, not its
- value, to determine whether it's a 2-digit year, or a 2-digit
- time.
- (yylex): Store number of digits of numeric tokens. Return '?' for
- unknown identifiers, rather than (unused) tID.
- 2000-01-16 Paul Eggert <eggert@twinsun.com>
- Do not quote alert, backslash, formfeed,
- and vertical tab unnecessarily in shell quoting style.
- 2000-01-15 Paul Eggert <eggert@twinsun.com>
- Change quoting to be compatible with future autoconf versions.
- 2000-01-11 Paul Eggert <eggert@twinsun.com>
- 2000-01-07 Paul Eggert <eggert@twinsun.com>
- Fix bug with fnmatch.h dependency, as follows:
- Renamed from apply_delayed_set_stat.
- (apply_delayed_set_stat, decode_mode, chmod_error_details,
- chown_error_details, close_warn, closedir_warn, mkdir_error,
- read_error_details, read_fatal_details, read_warn_details,
- seek_error_details, seek_warn_details, utime_error,
- write_error_details, write_fatal_details): New decls.
- Make diagnostic messages more regular.
- Likewise.
- new_volume, xclose):
- Use error message functions to report errors consistently.
- extract_archive): Likewise.
- Use xalloc_die to report memory exhaustion.
- diff_sparse_files):
- Use consistent terminology for unexpected-EOF message.
- skip_extended_headers): Likewise.
- (xdup2): Regularize messages with rest of tar.
- If we run out of memory, invoke apply_delayed_set_stat.
- (prepare_to_extract): Don't complain if we can't remove ".".
- (apply_delayed_set_stat): New function.
- (apply_nonancestor_delayed_set_stat):
- Renamed from apply_delayed_set_stat. All uses changed.
- Don't remove head if it doesn't apply.
- Return size instead of storing through pointer.
- All callers changed.
- (deal_with_sparse): Don't keep reading after read errors.
- (finish_sparse_file): Just abort if there is an internal error.
- (dump_file): Fix typo: stat_warn and stat_error were interchanged.
- Don't restore access times on directories during incremental dumps
- until after dealing with the directory.
- If ignoring failed reads, count closedir, read, and unknown
- file errors as warnings, not errors.
- Fix buffer overrun problem when dumping sparse files.
- Invoke apply_nonancestor_delayed_set_stat on file names
- after handling them.
- (decode_mode): Remove; moved to misc.c.
- (remove_any_file): Use it to avoid problems with rmdir(".").
- (maybe_backup_file): Regularize diagnostics.
- (undo_backup_file): Likewise.
- (decode_mode): Moved here from list.c.
- (chmod_error_details, chown_error_details, close_fatal,
- close_warn, closedir_warn, mkdir_error, read_error_details,
- read_warn_details, read_fatal_details, seek_error_details,
- seek_warn_details, utime_error, write_error_details,
- write_fatal_details): New functions.
- (move_archive): Don't position before start of archive.
- (write_record): Abort if count is zero at inopportune time.
- Plug memory leak.
- incompatible, since we didn't have time to fix their bugs.
- 2000-01-06 Paul Eggert <eggert@twinsun.com>
- (TM_YEAR_BASE): Renamed from TM_YEAR_ORIGIN. All uses changed.
- (tm_diff): Renamed from difftm. All uses changed.
- Replace body with that taken from GNU C Library 2.1.3pre1.
- (get_date): Prefer tm_gmtoff to tm_diff if available.
- 1999-12-29 "Melissa O'Neill" <oneill@cs.sfu.ca>
- ctime is updated on Nextstep.
- 1999-12-21 Machael Stone <mstone@cs.loyola.edu>
- Fix typo when checking for time_t overflow in time zone calculations.
- 1999-12-13 Paul Eggert <eggert@twinsun.com>
- Remove mention of BACKLOG.
- (AC_CHECK_HEADERS): Add wchar.h.
- (AC_CHECK_FUNCS): Add mbrtowc.
- (AC_FUNC_CLOSEDIR_VOID): Add.
- (POSTPONED_TESTS): Remove.
- (EXTRA_DIST): Remove $(POSTPONED_TESTS).
- Set LC_ALL rather than LANGUAGE, LANG, and LC_MESSAGES.
- (usage): Now has __attribute__ ((noreturn)).
- (confirm): Report errno if we can't open tty.
- (confirm, decode_options):
- Quote arbitrary strings in diagnostics.
- (OVERWRITE_OPTION): New constant.
- (long_options, usage, decode_options): New --overwrite option.
- (decode_options): --keep-old-files, --overwrite, and --unlink-first
- are now mutually exclusive.
- Don't assume that gettext preserves errno.
- (main): Set default quoting style to escape_quoting_style.
- (append_file):
- Don't assume that gettext preserves errno.
- Quote arbitrary strings in diagnostics.
- Check for close error.
- (name_init, name_next, name_close, names_notfound,
- collect_and_sort_names): Don't assume that gettext preserves
- errno. Quote arbitrary strings in diagnostics.
- (excluded_name): Fix typo that caused empty patterns to be
- mishandled.
- (quote_copy_string): Quote only newline and backslash; the output is no
- longer meant for humans, and is locale-independent.
- (contains_dot_dot): New function.
- (remove_any_file): Don't use lstat; just rmdir the file and then use
- unlink if the rmdir fails because the file isn't a directory.
- Check for readdir and closedir errors.
- (maybe_backup_file): Report "stat" for stat errors.
- (maybe_backup_file, chdir_do):
- Quote arbitrary strings in diagnostics.
- (maybe_backup_file, undo_last_backup):
- Don't assume that gettext preserves errno.
- (call_arg_error, call_arg_fatal, call_arg_warn,
- chdir_fatal, close_error, closedir_error, exec_fatal, mkfifo_error,
- mknod_error, open_error, open_fatal, open_warn, opendir_error,
- opendir_warn, read_error, read_fatal, readdir_error, readdir_warn,
- readlink_error, readlink_warn, seek_error, seek_warn, stat_error,
- stat_warn, truncate_error, truncate_warn, unlink_error, waitpid_error,
- write_error, write_fatal, xfork, xpipe, quote_n, quote): New functions.
- (O_NDELAY, O_NONBLOCK, O_APPEND): Remove.
- (S_ISDOOR): New macro.
- (closedir): New macro, if CLOSEDIR_VOID.
- O_APPEND might not be defined.
- Quote arbitrary strings in diagnostics.
- (from_header): Use locale_quoting_style to quote diagnostics.
- (print_header, print_for_mkdir): Quote with quotearg, not quote_copy_string.
- (enum permstatus): New enum.
- (struct delayed_set_stat): file_name is now at end of buffer, to avoid
- two mallocs. New members file_name_len, invert_permissions, permstatus.
- (extr_init): Remove hack that silently adjusted newdir_umask.
- (set_mode, set_stat): New args invert_permissions, permstatus, typeflag.
- Use these args to decide whether and how to set modes.
- (set_mode, set_stat, prepare_to_extract, extract_sparse_file, extract_archive):
- Don't assume that gettext preserves errno.
- (set_stat): Remove arg symlink_flag; subsumed by typeflag.
- (delay_set_stat, repair_delayed_set_stat): New functions.
- (make_directories): Avoid mkdir where last part of path is "..".
- Create a struct delayed_set_stat for each directory made.
- (prepare_to_extract): Renamed from unlink_destination, and
- return 0 immediately if to_stdout_option; all callers changed.
- (maybe_recoverable): New parameter interdir_made.
- Add support for --overwrite.
- (extract_sparse_file, extract_archive):
- Quote arbitrary strings in diagnostics.
- (extract_archive): By default, warn about ".." in member names, and skip them.
- Don't open files with O_NONBLOCK or O_APPEND.
- Open with O_TRUNC only if --overwrite; otherwise, use O_EXCL to avoid
- overwriting them. Pass only rwxrwxrwx permissions to `open' and `mkdir',
- minus the current umask. Keep track of intermediate directories made,
- to avoid looping when making x/../x when x doesn't exist; the
- earlier code solved this in a different way that didn't fit well
- into the new scheme. Don't extract permissions onto existing
- directories unless --overwrite is given. Do not add -wx------
- permissions to new directories permanently; just do it temporarily.
- Remove no-longer-needed hack with MSDOS and directory time stamps.
- (apply_delayed_set_stat): New argument specifies which directories to
- fix statuses of. Do not wait until the end of extraction to fix
- statuses; instead, fix a directory's status once we exit that directory.
- This requires less memory and does the right thing in some cases
- where the old method didn't.
- (fatal_exit): New function.
- (get_directory_contents, gnu_restore):
- Check for readdir and closedir errors.
- (get_directory_contents, read_directory_file, gnu_restore):
- Quote arbitrary strings in diagnostics.
- (get_directory_contents, read_directory_file, write_directory_file):
- Don't assume that gettext preserves errno.
- (start_header): Use `member names' to refer to archive member names, not
- `archive names'. Warn about `..' in member names.
- (finish_sparse_file, dump_file):
- Quote arbitrary strings in diagnostics.
- (finish_sparse_file, dump_file):
- Don't assume that gettext preserves errno.
- (dump_file): Don't use `access' to determine whether a directory is readable;
- this isn't reliable if tar is setuid. Use `opendir' instead.
- Check for readdir and closedir failures.
- Don't dump sockets as if they were fifos; just warn and skip.
- Don't report fatal error merely because sizes don't fit
- into struct mtop values; fall back on lseek instead.
- Say `Cannot' uniformly, instead of `Could not' sometimes and `Cannot' others.
- Say `reposition' instead of `re-position'.
- (delete_archive_members):
- Set archive to STDOUT_FILENO before outputting trailing buffer.
- (diff_init): Use `Cannot' uniformly, instead of `Could not' sometimes
- and `Cannot' others.
- (report_difference, diff_archive):
- Quote arbitrary strings in diagnostics.
- (process_rawdata, diff_sparse_files, get_stat_data, diff_archive, seek_warn):
- Don't assume that gettext preserves errno.
- (diff_archive): Don't open regular files with O_NONBLOCK.
- Preserve access times of files if --atime.
- (FATAL_ERROR, USAGE): Don't return 0.
- (enum old files): New enum.
- (old_files_option): New variable, replacing keep_old_files_option and
- unlink_first_option.
- (apply_delayed_set_stat): Now takes char const * param.
- (fatal_exit, contains_dot_dot, chdir_fatal, close_error,
- closedir_error, exec_fatal, mkfifo_error, mknod_error, open_error,
- open_fatal, open_warn, opendir_error, opendir_warn, read_error,
- read_fatal, readdir_error, readdir_warn, readlink_error,
- readlink_warn, seek_error, seek_warn, stat_error, stat_warn,
- truncate_error, truncate_warn, unlink_error, waitpid_error,
- write_error, write_fatal, xfork, xpipe, quote, quote_n): New decls.
- (xclose, xdup2, child_open_for_compress, child_open_for_uncompress,
- archive_write_error, archive_read_error, flush_archive, close_archive,
- init_volume_number, new_volume):
- Don't assume that gettext preserves errno.
- (xdup2): Don't report errno if dup returns an unexpected nonnegative value.
- (open_archive): Reject multivolume verify attempts a bit earlier.
- Rename local variable `access', in case it's defined by system header.
- (open_archive, backspace_output): Use `Cannot' uniformly, instead of
- `Could not' sometimes and `Cannot' others.
- (open_archive, flush_read, flush_archive, close_archive, new_volume):
- Quote arbitrary strings in diagnostics.
- (read_error): Set archive to STDOUT_FILENO temporarily when writing
- archive buffer.
- (init_volume_number): Check for input and output errors in volno_file.
- (new_volume): Use new fatal_exit function to exit, and new xfork
- function to fork.
- --absolute-names rejects ".." in names.
- (ISGRAPH): Remove.
- (ISPRINT): New macro.
- (<wchar.h>): Include if HAVE_MBRTOWC && HAVE_WCHAR_H.
- (isprint, mbrtowc, mbsinit, mbstate_t): New macros,
- defined if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
- (quotearg_buffer_restyled): New function, with most of the old
- quotearg_buffer's contents.
- Major rewrite to support multibyte characters.
- (quotearg_buffer): Now just calls quotearg_buffer_restyled.
- ($(srcdir)/tar.info, tar.dvi): We now use texinfo 4.0.
- 1999-12-05 Paul Eggert <eggert@twinsun.com>
- src/ChangeLog, tests/ChangeLog: Remove these files.
- ChangeLog entries.
- 1999-12-05 Dale Worley <worley@ariadne.com>
- (diff_archive): Restore access times if --atime.
- 1999-12-04 Gerhard Poul <gpoul@gnu.org>
- 1999-12-03 Paul Eggert <eggert@twinsun.com>
- Do not set errno to EPIPE; we no longer use perror.
- If a parent directory said that a file should be there but it is
- absent, diagnose it as being removed in the meantime.
- Do not pass meaningless errno to ERROR when reporting that the
- file changed as we read it.
- Report that a file changed if its ctime changes; this is more
- sensitive than mtime+size, and more accurate.
- (struct directory): Change old char allnew member to new enum children
- children member.
- All uses changed.
- (get_directory_contents): When doing an incremental dump that does
- not cross filesystem boundaries, dump the mount points, even though
- they are in a different filesystem. This is for convenience when
- restoring, and for consistency with non-incremental dumps.
- This requires a 3-way flag for keeping track of which children we want,
- so we use enum children rather than boolean.
- (open3): Remove unportable assumptions about flag encodings.
- Use `stat' instead of `access' for testing file existence,
- to avoid problems with setuid programs.
- command line (e.g. via -C) and in a file (via -T), do not
- ignore the command-line names.
- 1999-11-23 Paul Eggert <eggert@twinsun.com>
- Remove; it runs afoul of a bug in autoconf 2.13.
- Instead, always link fnmatch.h to some file, even if it's a throwaway.
- 1999-11-19 Paul Eggert <eggert@twinsun.com>
- 1999-11-18 Paul Eggert <eggert@twinsun.com>
- the QNX shell, which doesn't propagate exit status of failed
- commands inside shell assignments.
- 1999-11-07 Paul Eggert <eggert@twinsun.com>
- (ALL_LINGUAS): Add pt_BR, ja.
- (AC_FUNC_FNMATCH): Remove lib/funmatch.h before invoking, not after.
- (tar_cv_path_RSH): Prefer a non-symlink rsh to a symlink one,
- for AIX crossbuilds.
- Remove unused version control symbols.
- Modernize texinfo usage.
- Include fnmatch.h when testing fnmatch.
- Handle 32-bit two's complement negative time stamps
- even if the leading octal digit is 2 or 3.
- (dump_file): Ignore doors.
- (finish_header): Report block numbers with origin 0, not origin 1.
- (long_opts): New constant.
- (usage): New function.
- (main): Implement --help and --version.
- Output usage message if arguments are bad.
- 1999-10-10 Paul Eggert <eggert@twinsun.com>
- Add --disable-largefile.
- Remove old NeXT dirent problems, or AIX valloc problems.
- Remove old union wait advice, and old %lld advice.
- Remove advice about FreeBSD 2.1.7, ISC 4.1mu, Ultrix `make'.
- (ALL_LINGUAS): Add ja.
- Invalid dates are now treated as (time_t) -1.
- Redo version message to conform to GNU standards.
- Fix typo: last two args to dump_file were interchanged.
- (read_and): Invalid headers cause errors, not warnings.
- 1999-10-03 Paul Eggert <eggert@twinsun.com>
- Don't use if GCC claims to be before 2.8; this is
- needed for OPENStep 4.2 cc. Also, don't use if strict ANSI.
- 1999-09-25 Paul Eggert <eggert@twinsun.com>
- 1999-09-24 Paul Eggert <eggert@twinsun.com>
- Read error is an error, not just a warning.
- 1999-09-24 Paul Eggert <eggert@twinsun.com>
- (time): Declare if not defined.
- (confirm): Don't read past EOF.
- (long_options, usage): Add --no-same-owner, --no-same-permissions.
- (main): Use clock_gettime if available.
- (INCLUDES): Add -I../lib, for fnmatch.h.
- Remove call to name_expand; had no effect.
- Use chdir_do to change into directory.
- Use deref_stat instead of stat.
- Use add_avoided_name to mark names to be avoided; the old method of
- setting a bit with the name caused all descendants of that name to
- be avoided, in some circumstances.
- (name_gather): Use chdir_arg to keep track of arguments to chdir.
- (addname): Likewise.
- (name_match): Use chdir_do to act on chdir args.
- (merge_sort): Moved here from incremen.c.
- (compare_names, add_hierarchy_to_namelist, collect_and_sort_names):
- Likewise.
- (name_expand): Remove.
- (name_from_list): Skip fake names.
- Use chdir_do to act on chdir args.
- (struct avoided_name): New struct.
- (avoided_names): New var.
- (add_avoided_name, is_avoided_name): New functions.
- STX_HIDDEN && !_LARGE_FILES hosts.
- (UCHAR_MAX): New macro.
- (TYPE_MAXIMUM): Cast to arg type, for types narrow than int.
- (time): Remove decl.
- (time_now): Remove.
- (get_directory_contents): Use deref_stat.
- Consider a subdirectory to be all new only if
- listed_incremental_option or if it its timestamp is newer than the
- cutoff.
- (add_hierarchy_to_namelist, merge_sort): Move to names.c.
- (read_directory_file): Now extern. Do not set time_now.
- (write_directory_file): Renamed from write_dir_file.
- Use start_time instead of time_now.
- (compare_names, collect_and_sort_names): Move to names.c.
- (time): Do not declare.
- (deref_stat): New function.
- (struct wd): New struct.
- (wd, wds, wd_alloc): New variables.
- (chdir_arg, chdir_do): New function.
- (base_64_digits): Moved here from create.c.
- (base64_map): Use UCHAR_MAX for size, not less-clear (unsigned char)
- -1.
- (read_and): Don't get time from header unless we need it now;
- as getting time can cause duplicate diagnostics if bogus.
- Remove "Hmm, " from diagnostic.
- Use "Skipping to next header" uniformly.
- (from_header): Renamed from from_chars. All uses changed.
- Allow different forms for unportable 2's complement numbers.
- Don't check for extended forms when parsing checksums.
- Parse base-256 output.
- (gid_from_header): Renamed from gid_from_chars. All uses changed.
- (major_from_header): Renamed from major_from_chars. All uses changed.
- (minor_from_header): Renamed from minor_from_chars. All uses changed.
- (mode_from_header): Renamed from mode_from_chars. All uses changed.
- (off_from_header): Renamed from off_from_chars. All uses changed.
- (size_from_header): Renamed from size_from_chars. All uses changed.
- (time_from_header): Renamed from time_from_chars. All uses changed.
- Warn about future timestamps.
- (uid_from_header): Renamed from uid_from_chars. All uses changed.
- (uintmax_from_header): Renamed from uintmax_from_chars.
- All uses changed.
- (tartime): New function, incorporating isotime.
- (isotime): Delete.
- (print_header): Use tartime.
- Don't assign through char const *.
- Rename name_expand back to collect_and_sort_names.
- (time): No need to declare.
- (now): Remove variable.
- (extr_init): Don't initialize `now'.
- Increment same_permissions_option and same_owner_option if we_are_root
- is nonzero; this supports the new --no-same-owner option.
- (set_stat): Use start_time instead of `now'.
- (base_64_digits): Move to list.c.
- (base_8_digits): Remove.
- (to_octal): New function, with some of old contents of to_base.
- (to_base): Remove.
- (to_base256): New function.
- (to_chars): Use base 256, not base 64, for huge values.
- (mode_to_chars): Don't use two's complement in GNU format or POSIX
- format.
- (dump_file): Interchange last two arguments. If TOP_LEVEL is negative,
- it means we have an incremental dump where we don't know whether this
- is a top-level call.
- Use deref_stat instead of statx / stat / lstat.
- Cast result of alloca.
- Check for dates if 0 < top_level, not if listed_incremental_option.
- Move multiple-link check after directory check.
- Do not dump avoided names.
- Dump hard links to symbolic names as links, not as separate
- symbolic links.
- start_header cannot return a null pointer, so don't test for it.
- Likewise for find_next_block.
- (read_error): Read error is an error, not just a warning.
- (print_total_written): Also print human-readable byte count, and
- bytes/s.
- (open_archive, flush_write): Use start_time, not current time.
- (flush_read): Report about garbage bytes ignored at end of archive,
- but act on non-garbage bytes (instead of ignoring them).
- (new_volume): Use WARN for warnings.
- ($(srcdir)/tar.info): Add -I$(srcdir) so that subdir builds work.
- Rename fnmatch.h to fnmatch.hin; add human.h.
- (libtar_a_SOURCES): Add human.c, xstrtoul.c.
- (INCLUDES): Remove -I.. -I$(srcdir) -- automake adds this for us.
- Define to __strchrnul if _LIBC, to our own replacement otherwise.
- Do not define if !_LIBC and if it already exists.
- (internal_fnmatch): Use it.
- (rmt_LDADD): Similarly, for rmt.
- (AC_FUNC_FNMATCH): Link fnnmatch.hin to fnmatch.h if we're using our
- fnmatch.c; otherwise, use the system fnmatch.h.
- Modernize sample backup script.
- 1999-09-03 Paul Eggert <eggert@twinsun.com>
- Use EINVAL instead.
- 1999-08-29 Paul Eggert <eggert@twinsun.com>
- Rename outermost local `probe' to `quarter'.
- Rename latter local `tm' to probe_tm.
- From: Jim Meyering <meyering@ascend.com>
- Message-ID: <uryn1vafyyc.fsf@ixi.eng.ascend.com>
- 1999-08-28 Paul Eggert <eggert@twinsun.com>
- (number): Handle `Nov 11 1996' example correctly.
- See Risks Digest 20.55 (1999-08-27)
- http:
- 1999-08-23 Paul Eggert <eggert@twinsun.com>
- Remove minor cases of lint from many source files: this includes
- unnecessary casts, uses of NULL, etc.
- (YACC): Always use bison.
- (AC_STRUCT_TIMEZONE): Add.
- (AC_REPLACE_FUNCS): Add strcasecmp, strncasecmp.
- Fix spelling.
- ($(srcdir)/getdate.c): Rename y.tab.c to getdate.c only if successful.
- (memcpy, memcmp): Cast args.
- ("xalloc.h"): Add include.
- (xmalloc, xrealloc): Remove decl.
- (first_mangle, mangled_num): Remove.
- (off_from_chars): Do not allow negative offsets.
- (uid_from_chars): Allow negative uids.
- (to_chars): Fix wording of message to match from_chars.
- It's too painful to make it both generic and portable.
- (read_directory_file): "timestamp" -> "time stamp" in messages.
- (usage): Fix misspelling.
- (OPTION_STRING): -y is now -I.
- (decode_options): Use -1, not EOF, for getopt_long result.
- Fix typo when invoking xstrtoumax: look for LONGINT_OK, not LONG_MAX.
- Handle operands after any "--" argument.
- (main): Report any output errors.
- (addname): use memcpy, not strncpy, to copy a string of known length.
- (name_match): Handle trailing -C option correctly.
- Propagate -C option to following files.
- (name_match, name_scan): Remove redundant matching code.
- (<stdio.h>): Include only if testing.
- (ISUPPER): Remove.
- (ISLOWER): New macro.
- (<string.h>): Include if HAVE_STRING_H, not USG.
- (bcopy): Remove.
- (yymaxdepth, ..., yycheck): Don't bother to redefine, since we assume
- bison.
- (EPOCH_YEAR): Renamed from EPOCH.
- (table): Renamed from TABLE.
- (meridian): Now an anonymous enum.
- (struct parser_control): New type.
- (YYLEX_PARAM, YYPARSE_PARAM, YYSTYPE): New macros.
- (yyInput, ..., yyRelYear): Migrated into struct parser_control.
- (%pure_parser): Added, so that the parser is pure.
- (%union): Removed; the type is now just plain int.
- All %type directives removed.
- (tLOCAL_ZONE): New %token.
- (month_day_table): Renamed from MonthDayTable.
- (gmtime, localtime, mktime, time): Declare only if not defined.
- (meridian_table): New table.
- (dst_table): New table.
- (units_table): renamed from UnitsTable.
- (relative_time_table): Renamed from OtherTable.
- (time_zone_table): Renamed from TimezoneTable. Modernized.
- (military_table): Renamed from MilitaryTable.
- (to_hour): Renamed from ToHour.
- (to_year): Renamed from ToYear.
- (lookup_zone): New function.
- (LookupWord): Renamed from lookup_word. Use lookup_zone for time
- zones.
- (yylex): Now reentrant. All callers changed.
- (get_date): Add support for local time zone abbreviations.
- Make it reentrant.
- 1999-08-20 Paul Eggert <eggert@twinsun.com>
- if we are generating an old or new GNU format tar file for a
- number that can't be represented with the POSIX format.
- (AM_FUNC_GETLINE): Add.
- (LIBOBJS): Add getline.o to workaround comment.
- (libtar_a_SOURCES): Add save-cwd.c, xgetcwd.c.
- lib/save-cwd.h, m4/getline.m4: New files.
- (chdir_from_initial_wd): New function.
- (name_gather): Handle `-C x -C y' correctly.
- Do not rely on addname to handle -C.
- (addname): New CHANGE_DIR parameter. All callers changed.
- Remove ugly calls to getcwd; no longer needed.
- (name_match, name_from_list): Use chdir_from_initial_wd, not chdir.
- (read_directory_file): Remove arbitrary limits on file name length.
- Do not attempt to get the working directory; we can bypass this
- on fchdir hosts. Open the listed_incremental_option file for both
- read and write instead of opening it twice. Check for I/O errors
- when doing I/O to this file. Check for invalid data in the file,
- and report line numbers of invalid data.
- (write_dir_file): Likewise.
- (collect_and_sort_names): Use chdir_from_initial_wd, not chdir.
- Do not invoke write_dir_file; that's our caller's responsibility.
- (isotime): Now takes time_t, not time_t *. Report the decimal values
- of times that can't be broken down.
- (print_header): Don't assume that major and minor device numbers can
- fit into uintmax_t.
- (write_directory_file): Remove unused decl.
- (STRINGIFY_BIGINT): Assume b always points to UINTMAX_STRSIZE_BOUND
- chars; the old `sizeof (b)' broke when b was a pointer not an array.
- (chdir_from_initial_wd): New decl.
- (addname): New 2nd arg.
- 1999-08-18 Paul Eggert <eggert@twinsun.com>
- Don't depend on ac_cv_func variables.
- From Albert Chin-A-Young <china@thewrittenword.com>.
- 1999-08-18 Paul Eggert <eggert@twinsun.com>
- we did not find end of array correctly.
- Don't assume find_next_block yields nonnull.
- (read_header): Fix computation of signed checksums on machines where
- char is unsigned.
- Do not consider a block to be zero unless all its bytes are zero,
- even the checksum bytes. Do not attempt to parse the checksum of
- a zero block. Fix memory leak with long names and links.
- (from_chars): Accommodate a buggy tar that outputs leading NUL
- if the previous field overflows.
- \?, for portability to non-ASCII hosts.
- 1999-08-16 Paul Eggert <eggert@twinsun.com>
- directories, even if we are root.
- POSIX-compliant headers that do not contain null bytes in the
- header or link names.
- 1999-08-14 Paul Eggert <eggert@twinsun.com>
- (AC_HEADER_SYS_WAIT): Add.
- (AC_REPLACE_FUNCS): Add waitpid.
- (tar_cv_header_union_wait, HAVE_UNION_WAIT): Remove.
- (WIFSTOPPED): Likewise.
- (WEXITSTATUS, WIFSIGNALED): Default to Solaris 7 versions.
- (close_archive): Use waitpid, POSIX-style, instead of old BSD style.
- (new_volume): Likewise.
- Don't declare if defined.
- Invoke `time' the same way everyone else does.
- Check validity of --listed-incremental file contents a bit better.
- Do not worry about --after-date-option; tar.c now checks this.
- Don't assume years fit into four digits.
- Don't append trailing newline.
- (print_header): Report ??? if localtime returns null;
- Don't assume years fit into four digits.
- when --absolute-names is not specified.
- Include text of ignored filesystem prefix in warning.
- (create_archive): Check for excluded names when doing incremental
- pass through directory.
- (dump_file): Do not dump old files explicitly given on command line
- when using --listed-incremental. Do not strip ./ prefix from names.
- -g and -N are now incompatible options.
- 1999-08-11 Jeff Dairiki <dairiki@dairiki.org>
- incremental headers as POSIX prefixes.
- 1999-08-11 Paul Eggert <eggert@twinsun.com>
- Renamed from tar.info and header.texi; adjust actions so that
- they work in other directories.
- Patterns containing / now exclude only file names whose prefix match.
- (add_exclude_file): New ADD_FUNC parameter.
- (excluded_pathname): Remove decl.
- Remove; no longer needed since we don't use FNM_ macros.
- (excluded_filename): Renamed from excluded_filename_opts.
- (excluded_filename, excluded_pathname): Remove.
- (add_exclude_file): New ADD_FUNC parameter.
- (<fnmatch.h>): Include unconditionally.
- (child_open_for_compress): Dup after closing, to avoid possible file
- descriptor exhaustion.
- (flush_write): Use FILESYSTEM_PREFIX_LEN instead of MSDOS ifdef.
- (flush_read): Likewise.
- (excluded_with_slash, excluded_without_slash): New vars.
- (excluded): Remove.
- (base_64_digits): New decl.
- (gid_to_chars, major_to_chars, minor_to_chars, mode_to_chars,
- off_to_chars, size_to_chars, time_to_chars, uid_to_chars,
- uintmax_to_chars,
- GID_TO_CHARS, MAJOR_TO_CHARS, MINOR_TO_CHARS, MODE_TO_CHARS,
- OFF_TO_CHARS, SIZE_TO_CHARS, TIME_TO_CHARS, UID_TO_CHARS,
- UINTMAX_TO_CHARS):
- Renamed from gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct,
- off_to_oct, size_to_oct, time_to_oct, uid_to_oct, uintmax_to_oct,
- GID_TO_OCT, MAJOR_TO_OCT, MINOR_TO_OCT, MODE_TO_OCT, OFF_TO_OCT,
- SIZE_TO_OCT, TIME_TO_OCT, UID_TO_OCT, UINTMAX_TO_OCT,
- respectively. All definitions and uses changed.
- (excluded_name): New decl.
- Open files with O_NONBLOCK instead of O_NDELAY.
- (base_8_digits): New macro.
- (MAX_VAL_WITH_DIGITS): New macro.
- (to_base): First half of old to_oct. Support base 64 too.
- (to_chars): Other half of old to_oct, for 64-bit support.
- (GID_NOBODY, UID_NOBODY): Don't define if the headers don't.
- (gid_substitute, uid_substitute): Look up names dynamically if
- GID_NOBODY and UID_NOBODY aren't defined; use -2 if all else fails.
- (mode_to_chars): Renamed from mode_to_oct.
- Support negative values in all the _to_chars functions.
- (start_header): Use FILESYSTEM_PREFIX_LEN instead of MSDOS ifdef.
- Abort if archive format is DEFAULT_FORMAT when it shouldn't be.
- (dump_file): Inspect entire pathname, not just new file name
- component, when deciding whether to exclude it.
- Open files with O_NONBLOCK instead of O_NDELAY.
- Inspect entire pathname, not just new file name
- component, when deciding whether to exclude it.
- (from_chars): Renamed from from_oct. New parameter specifying
- the negative of the minimum allowed value. Support negative
- and base-64 values.
- (base64_map): New var.
- (base64_init): New function.
- (print_header): Output numeric uids and gids if numeric_owner_option.
- (<fnmatch.h>): Include unconditionally.
- (excluded_name): New function, taking over duties of excluded_pathname.
- All uses changed.
- (main): Use it to support symbolic open flags.
- (rmt_open__): Do not allow newlines in the path.
- Propagate errno correctly.
- Decode symbolic open flags, if present.
- New macros.
- New -y or --bzip2 option.
- (add_filtered_exclude): New function.
- (decode_options): Put excluded patterns with / into
- excluded_with_slash, and without / into excluded_without_slash.
- Compare newer_mtime_option to its new initial value
- TYPE_MINIMUM (time_t) when deciding whether more than one
- threshold date was specified.
- 1999-07-20 Paul Eggert <eggert@twinsun.com>
- before exiting.
- ERROR ((TAREXIT_FAILURE, ... -> FATAL_ERROR ((0,
- for consistency.
- (S_ISMPB, S_ISMPC, S_ISNWK): Remove unused macros.
- (S_ISBLK, S_ISCHR, S_ISCTG, S_ISFIFO, S_ISLNK, S_ISSOCK):
- Define to 0 if the corresponding S_IF* macro is not defined.
- (mkfifo): Do not define if already defined, or if S_IFIFO
- is not defined.
- S_ISLNK, to determine whether to invoke readlink.
- Do not chmod unless we are root or the -p option was given;
- this matches historical practice.
- (unlink_destination): New function, which checks for unlink failures.
- (maybe_recoverable): Stay quiet if -U.
- (extract_archive): Use O_EXCL if unlink_first_option.
- Report unlink failures.
- Use HAVE_SYMLINK, not S_ISLNK, to determine whether symlink exists.
- Use HAVE_MKFIFO || defined mkfifo, not S_ISFIFO, to determine whether
- mkfifo exists.
- S_ISHIDDEN, not AIX, to determine whether to invoke S_ISHIDDEN.
- "Virtual memory exhausted" -> "Memory exhausted",
- to conform to the other places this message is issued.
- Replace #ifdef S_ISLNK with #ifdef HAVE_SYMLINK.
- Remove typo that caused us to omit the first char
- of the basename.
- 1999-07-16 Paul Eggert <eggert@twinsun.com>
- components matches an excluded pattern, even if the path name was
- specified on the command line.
- (FILESYSTEM_PREFIX_LEN, ISSLASH): New macros.
- (excluded_filename_opts): New function.
- (excluded_pathname): New function.
- xstrtol.c moved here from libtar_a_SOURCES.
- (libtar_a_SOURCES): Move xstrtol.c to EXTRA_DIST.
- Remove xstrtoul.c; no longer needed.
- Set newer_time_option to TYPE_MINIMUM, so that
- negative timestamps are handled correctly.
- Replace invocations of xstrtol and xstrtoul with xstrtoumax, for
- uniformity (and so that we don't need to have the other fns).
- (main): Remove call to init_total_written; no longer needed.
- checks for unsigned long and long long.
- (tarlong): Now double.
- (TARLONG_FORMAT): New macro.
- (BITS_PER_BYTE, BITS_PER_TARLONG, SUPERDIGIT, BITS_PER_SUPERDIGIT,
- LONGS_PER_TARLONG, SIZEOF_TARLONG, struct tarlong,
- zerop_tarlong_helper, lessp_tarlong_helper, clear_tarlong_helper,
- add_to_tarlong_helper, mult_tarlong_helper, print_tarlong_helper,
- zerop_tarlong, lessp_tarlong, clear_tarlong, add_to_tarlong,
- mult_tarlong, print_tarlong): Remove. All callers replaced with
- arithmetic ops.
- Remove; replaced with prev_written + bytes_written.
- (prev_written): New var.
- (init_total_written): Remove.
- (print_total_written): Use TARLONG_FORMAT instead of print_tarlong.
- Make sure that we can shift, multiply
- and divide unsigned long long values; Ultrix cc can't do it.
- Check for any unknown bits, not just unknown bits left of the leftmost
- known bit.
- Don't quote spaces if C quoting style.
- Use C quoting style for error; omit trailing NULs.
- 1999-07-14 Paul Eggert <eggert@twinsun.com>
- <inttypes.h> defines strtoumax as a macro (and not as a function).
- HP-UX 10.20 does this.
- 1999-07-12 Paul Eggert <eggert@twinsun.com>
- (LIBOBJS): Add mktime.o to automake 1.4 bug workaround.
- Do not assume that S_IFBLK and S_IFCHR are defined.
- (dump_file): Remove unnecessary check for screwy apollo lossage.
- Do not assume S_IFBLK and S_IFCHR are defined.
- Test whether S_IFCHR and S_IFBLK are nonzero,
- not whether they are defined, for consistency with other tests.
- Don't succeed on files that we can't access due to
- permissions problems.
- (open_archive): Fix wording on fatal error message.
- Don't bother to stat /dev/null if the archive is not a character
- special device.
- Report an error, not a warning, for I/O errors.
- (process_rawdata, process_dumpdir, diff_sparse_files):
- Change ungrammatical "Data differs" to "Contents differ".
- (get_stat_data): Find hidden files on AIX.
- Accept file name as argument; all uses changed.
- (get_stat_data, diff_archive): Use system error message for
- nonexistent files rather than rolling our own.
- (diff_archive): Unknown file types are errors, not warnings.
- Normalize spelling of message to "File type differs".
- Use get_stat_data to get link status, for consistency.
- Do not inspect st_rdev for fifos.
- Do not assume st_mode values contain only file types and mode bits.
- Check for mode changes and device number changes separately.
- Open the file before statting it, to avoid a race.
- Complain about file shrinkage only when we reach EOF.
- 1999-07-08 Paul Eggert <eggert@twinsun.com>
- Add basename.h, exclude.h. Remove full-write.h.
- (libtar_a_SOURCES): Add exclude.c.
- New files.
- (rmt_open__): Use base_name to compute base name.
- Include basename.h, exclude.h; don't include full-write.h.
- (exclude_option): Remove decl.
- (excluded): New decl.
- (add_exclude, add_exclude_file, check_exclude): Remove decls.
- Use excluded_filename instead of check_exclude.
- Check base name of incoming file name, not entire file name, when
- deciding whether to exclude it.
- Use excluded_filename instead of check_exclude.
- Don't bother to stat excluded file names.
- allocated_exclude_pool_size, simple_exclude_array,
- simple_excludes, allocated_simple_excludes,
- pattern_exclude_array, pattern_excludes,
- allocated_pattern_excludes, add_exclude, add_exclude_file,
- check_exclude):
- Remove; now done in ../lib/exclude.c.
- Use new add_exclude_file and add_exclude functions.
- 1999-07-05 Paul Eggert <eggert@twinsun.com>
- (safe_read): Renamed from full_read. All uses changed.
- (libtar_a_SOURCES): Rename full-read.c to safe-read.c.
- defining, to avoid preprocessor warnings with --disable-nls
- on hosts whose locale.h includes libintl.h.
- expands to a macro, which occurs in HP-UX 10.20 with strtoumax.
- (strtol, strtoul): New decls (for pre-ANSI hosts), to replace
- the above decl.
- 1999-07-02 Paul Eggert <eggert@twinsun.com>
- remove README, Makefile.am.in.
- (Makefile.am): Remove rule; it didn't work in BSD/OS 4.0.
- not AM_FUNC_MKTIME.
- (SIGCHLD): Define to SIGCLD if SIGCLD is defined but SIGCHLD is not.
- (main): Ensure SIGCHLD is not ignored.
- (BACKUP_OPTION, DELETE_OPTION, EXCLUDE_OPTION, GROUP_OPTION,
- MODE_OPTION, NEWER_MTIME_OPTION, NO_RECURSE_OPTION, NULL_OPTION,
- OWNER_OPTION, POSIX_OPTION, PRESERVE_OPTION, RECORD_SIZE_OPTION,
- RSH_COMMAND_OPTION, SUFFIX_OPTION, USE_COMPRESS_PROGRAM_OPTION,
- VOLNO_FILE_OPTION, OBSOLETE_ABSOLUTE_NAMES,
- OBSOLETE_BLOCK_COMPRESS, OBSOLETE_BLOCKING_FACTOR,
- OBSOLETE_BLOCK_NUMBER, OBSOLETE_READ_FULL_RECORDS, OBSOLETE_TOUCH,
- OBSOLETE_VERSION_CONTROL): Make sure they can't be valid chars, so
- they don't overlap with char codes. Use an enum instead of a lot
- of #defines.
- (CTYPE_DOMAIN, ISDIGIT, ISODIGIT, ISPRINT, ISSPACE, S_ISUID,
- S_ISGID, S_IRUSR, S_IWUSR, S_IXUSR, S_IRGRP, S_IWGRP, S_IXGRP,
- S_IROTH, S_IWOTH, S_IXOTH, MODE_WXUSR, MODE_R, MODE_RW,
- MODE_RWX, MODE_ALL, SEEK_SET, SEEK_CUR, SEEK_END, CHAR_MAX,
- LONG_MAX): New macros.
- (read_directory_file): Cast ISSPACE arg to unsigned char.
- (remove_any_file): Add brackets to pacify gcc -Wall.
- (ISODIGIT, ISSPACE): Remove; now in system.h.
- (decode_header): No need to AND mode with 07777; MODE_FROM_OCT
- does this now.
- (from_oct): Cast ISSPACE arg to unsigned char.
- external form.
- internal form. Do not complain about unrecognized mode bits.
- TGREAD, TGWRITE, TGEXEC, TOREAD, TOWRITE, TOEXEC): Remove undefs.
- Do not assume mode bits have traditional Unix values.
- child_open_for_uncompress, open_archive, (close_archive): Likewise.
- (extract_sparse_file): Do not use data_block uninitialized.
- Check for lseek failures.
- Convert lseek whence values to portable integers on the wire.
- instead of integers.
- on a negative file descriptor.
- message to be internationalized; \a doesn't work with msgfmt.
- Remove -E or --ending-file.
- as some old shells mishandle pipeline exit status.
- 1999-06-28 Paul Eggert <eggert@twinsun.com>
- Handle EINTR correctly.
- Prefer full_read to read and full_write to write.
- Likewise.
- report_numbered_error): Likewise.
- rmt_write__, rmt_ioctl__): Likewise.
- lib/xmalloc.c, src/arith.c, src/misc.c.
- New macros. All uses of STDIN and STDOUT changed.
- instead of 0 and STDOUT_FILENO instead of 1.
- instead of fileno (stdin) and fileno (stdout) or 0 and 1.
- in the presence of NFS clock skew.
- 1999-06-25 Paul Eggert <eggert@twinsun.com>
- (child_open_for_compress, flush_write, flush_read): Use it to write
- buffers.
- (open_archive): Report error if fstat of archive fails.
- Improve efficiency of check for /dev/null.
- Also, fix some corner cases with remote archives and /dev/null checking.
- (close_archive): Test for input fifo only if not remote.
- Truncate output archive only if it's not remote.
- Don't terminate if you see . or ..; just skip them.
- 1999-06-18 Paul Eggert <eggert@twinsun.com>
- Output sizes using a format that's more compatible with
- traditional tar (and with GNU Emacs).
- MODE_TO_OCT, SIZE_TO_OCT, UID_TO_OCT, UINTMAX_TO_OCT):
- Don't subtract 1 from size.
- Output a trailing NUL unless the value won't fit without it.
- (finish_header): No need to append NUL to chksum, now that
- to_oct is doing it.
- 1999-06-16 Paul Eggert <eggert@twinsun.com>
- @INTLLIBS@ might invoke rpl_realloc.
- (intconv): Remove; use xstrto* fns instead.
- ("xstrtol.h"): Include.
- (check_decimal): Remove.
- (long_options, usage, OPTION_STRING, decode_options):
- Remove -y, --bzip2, --unbzip2.
- (decode_options): Use xget_version instead of get_version.
- Check for overflow with -b and -L and RECORD_SIZE_OPTION.
- Replace invocations of check_decimal with xstrtoumax.
- lib/malloc.c, lib/mktime.c, lib/realloc.c, lib/strtol.c, lib/strtoul.c,
- lib/strtoull.c, lib/strtoumax.c, lib/utime.c, lib/xstrtol.c,
- lib/xstrtol.h, lib/xstrtoul.c, lib/xstrtoumax.c,
- m4/Makefile.am.in, m4/README, m4/ccstdc.m4, m4/d-ino.m4,
- m4/gettext.m4, m4/inttypes_h.m4, m4/isc-posix.m4,
- m4/jm-mktime.m4, m4/largefile.m4, m4/lcmessage.m4,
- m4/malloc.m4, m4/progtest.m4, m4/realloc.m4, m4/uintmax_t.m4,
- m4/ulonglong.m4, m4/utimbuf.m4, m4/utime.m4, m4/utimes.m4,
- m4/xstrtoumax.m4: New files.
- (AC_SYS_LARGEFILE): Renamed from AC_LFS.
- (jm_AC_HEADER_INTTYPES_H): Replaces inline code.
- (jm_STRUCT_DIRENT_D_INO, jm_AC_TYPE_UINTMAX_T, jm_AC_PREREQ_XSTRTOUMAX): Add.
- (AC_CHECK_FUNCS): Remove lchown.
- (AC_REPLACE_FUNCS): Remove basename, dirname.
- Add lchown, strtol, strtoul.
- (jm_FUNC_MKTIME): Add.
- (LIBOBJS): Replace .o with $U.o, so that the .o files in LIBOBJS
- are also built via the ANSI2KNR-filtering rules.
- Use a no-op line to work around bug in automake 1.4 with malloc and
- realloc.
- (AC_OUTPUT): Add m4/Makefile.
- Add lchown.c, malloc.c, mktime.c, realloc.c,
- strtol.c, strtoul.c, strtoull.c, strtoumax.c, utime.c.
- (noinst_HEADERS): Add lchown.h, modechange.h, xstrtol.h.
- (libtar_a_SOURCES): Add addext.c, basename.c, xstrtol.c,
- xstrtoul.c, xstrtoumax.c. Remove getversion.c.
- ($(srcdir)/getdate.c:): Remove `expect conflicts' line.
- Move include of backupfile.h to common.h.
- Pass backup_type to find_backup_file_name.
- UINTMAX_STRSIZE_BOUND.
- Fix @xref typos reported by latest makeinfo.
- (SUBDIRS): Add m4.
- (M4DIR, ACINCLUDE_INPUTS): New macros.
- ($(srcdir)/acinclude.m4): New rule.
- HAVE_INTTYPES_H, HAVE_LC_MESSAGES, HAVE_STPCPY): Remve #undefs;
- now generated automatically by autoconf.
- 1999-05-15 Paul Eggert <eggert@twinsun.com>
- 1999-04-09 Paul Eggert <eggert@twinsun.com>
- (we were allocating too much storage).
- (uintmax_t): Don't declare; configure now does this.
- 1999-03-22 Paul Eggert <eggert@twinsun.com>
- Don't use -mabi=n32 with GCC on IRIX 6.2; it's the default.
- (AC_LFS): -n32, -o32, and -n64 are CPPFLAGS, not CFLAGS.
- (jm_FUNC_MALLOC, jm_FUNC_REALLOC): New macros.
- New macros; needed for latest GNU xmalloc.c.
- (libtar_a_SOURCES): Add quotearg.c.
- (from_oct): Add forward decl.
- (read_header): Return HEADER_FAILURE if we can't parse the checksum.
- (from_oct): Report an error only if TYPE is nonzero.
- Quote any funny characters in bad header.
- 1999-03-20 Paul Eggert <eggert@twinsun.com>
- (AC_LFS_SPACE_APPEND): Assume $2 is quoted properly; all callers
- changed.
- (AC_LFS): Simplify AIX revision number test.
- 1999-03-17 Paul Eggert <eggert@twinsun.com>
- Remove; it doesn't work that well
- with AC_CANONICAL_HOST.
- (fp_WITH_INCLUDED_MALLOC): Remove; we'll just use the system malloc.
- Upgrade version numbers of build software.
- 1999-03-07 Paul Eggert <eggert@twinsun.com>
- where bindtextdomain and gettext require -lintl.
- (AC_LFS_FLAGS): Simplify so that it only gets the flags;
- `no' means it failed.
- (AC_LFS_SPACE_APPEND, AC_LFS_MACRO_VALUE): New macros.
- (AC_LFS): Use them. Set _FILE_OFFSET_BITS, _LARGEFILE_SOURCE, and
- _LARGE_FILES from LFS_CFLAGS, so that in the normal case we don't need
- to add anything to the command line (it's all in config.h).
- Put any extra -D and -I options into CPPFLAGS, the rest into CFLAGS.
- 1999-03-01 Paul Eggert <eggert@twinsun.com>
- mode_from_oct, off_from_oct, size_from_oct, time_from_oct,
- uid_from_oct, uintmax_from_oct): Use TYPE_MAXIMUM instead of macros
- like OFF_MAX, which are not reliable
- (e.g. OFF_MAX in AIX 4.2 is incorrect).
- SIZE_MAX, TIME_MAX,UID_MAX, UINTMAX_MAX): Remove; no longer used.
- Don't use statx if _LARGE_FILES; it doesn't work under AIX 4.2.
- Have statx depend on STX_HIDDEN, not AIX.
- New parameter substitute, giving a substitute value to use
- when the original value is out of range. Do not append a space to the
- output; modern tars don't. When a value is out of range, specify the
- maximum value, not the number of bits.
- (GID_NOBODY, UID_NOBODY): New macros.
- (gid_to_oct, uid_to_oct): Use them as substitutes.
- (finish_header): Do not assume that UINTMAX_TO_OCT appends a space.
- (dump_file): Check whether the file changed as we read it.
- 1999-02-19 Paul Eggert <eggert@twinsun.com>
- returns a type compatible with char *; it doesn't on SunOS
- 4.1.4 with Sun cc, since <string.h> doesn't declare memcpy.
- Add.
- (AC_LINK_FILES): Omit; AM_GNU_GETTEXT now does this.
- (AC_OUTPUT): Omit munging of po/Makefile; AM_GNU_GETTEXT now does this.
- Update to latest gettext version (serial 5).
- (AC_LFS_FLAGS): New macro
- (AC_LFS): Use it. Append to CFLAGS, LDFLAGS, LDLIBS instead of
- working only with unset variables. Append to CFLAGS, not CPPFLAGS.
- Work properly in cross-compilation scenario, by checking for getconf
- with AC_CHECK_TOOL and by ditching uname in favor of
- AC_CANONICAL_HOST and $host_os. Add --disable-lfs option.
- replace FORCE_ALLOCA_H with HAVE_ALLOCA_H.
- since getdate.y now uses ANSI code.
- intl/cat-compat.c, intl/dcgettext.c, intl/dgettext.c,
- intl/explodename.c, intl/finddomain.c, intl/gettext.c,
- intl/gettext.h, intl/gettextP.h, intl/hash-string.h,
- intl/l10nflist.c, intl/libgettext.h, intl/loadinfo.h,
- intl/loadmsgcat.c, intl/localealias.c, intl/textdomain.c:
- Update to GNU gettext 0.10.35, with patches as per GCC snapshot 990109.
- 1999-02-01 Paul Eggert <eggert@twinsun.com>
- 1999-02-01 Paul Eggert <eggert@twinsun.com>
- files: they were trashing the tar file header.
- Add -y or --bzip2 or --bunzip2 option.
- 1999-01-30 Paul Eggert <eggert@twinsun.com>
- cached_no_such_uid, cached_no_such_gid): New vars.
- (uid_to_uname, gid_to_gname, uname_to_uid, gname_to_gid):
- Cache failures, too.
- Don't pass names longer than UNAME_FIELD_SIZE to
- uname_to_uid, as it messes up the cache. Similarly for gname_to_uid.
- 1999-01-27 Paul Eggert <eggert@twinsun.com>
- rmtlseek position arg to off_t, for benefit of K&R compilers
- with long long.
- off_to_oct, size_to_oct, time_to_oct, uid_to_oct):
- Cast arg to uintmax_t for benefit of pre-ANSI compilers with long long.
- mode_from_oct, off_from_oct, size_from_oct, time_from_oct,
- uid_from_oct): Likewise.
- 1999-01-25 Paul Eggert <eggert@twinsun.com>
- 1999-01-22 Paul Eggert <eggert@twinsun.com>
- (DEFS): New macro, defining LOCALEDIR.
- (tar.o, tar._o, rmt.o, rmt._o): Remove.
- (INCLUDES): Add -I..
- 1999-01-21 Paul Eggert <eggert@twinsun.com>
- (DEFS): New macro, defining LOCALEDIR.
- (tar.o, tar._o, rmt.o, rmt._o): Remove.
- (INCLUDES): Add `-I..'.
- 1999-01-20 Paul Eggert <eggert@twinsun.com>
- `lfs.7' changed to `64000' in version number
- to conform to gnits standards.
- mkinstalldirs, ansi2knr.c: Update to latest public versions.
- Rebuild with automake 1.4 and autoconf 2.13, to work around some
- porting problems.
- 1998-12-07 Paul Eggert <eggert@twinsun.com>
- Accept file names as specified by POSIX.1-1996 section 10.1.1.
- 1998-11-30 Paul Eggert <eggert@twinsun.com>
- if we are using --same-owner this is needed e.g. on Solaris 2.5.1.
- 1998-11-15 Paul Eggert <eggert@twinsun.com>
- ac_getconfs, ac_result): Special case for HP-UX 10.20 or later.
- 1998-10-28 Paul Eggert <eggert@twinsun.com>
- not merely nonzero.
- On many installations, rexec is disabled.
- 1998-08-07 Paul Eggert <eggert@twinsun.com>
- for nameless users and groups.
- 1998-02-17 Paul Eggert <eggert@twinsun.com>
- 1998-02-02 Paul Eggert <eggert@twinsun.com>
- This is an unofficial version.
- 1997-12-17 Paul Eggert <eggert@twinsun.com>
- (NFS_FILE_STAT): Use most significant bit of st_dev,
- even if it's unsigned.
- 1997-12-08 Paul Eggert <eggert@twinsun.com>
- 1997-11-19 Paul Eggert <eggert@twinsun.com>
- Don't ignore cache variable if it's already set.
- 1997-11-10 Paul Eggert <eggert@twinsun.com>
- (move_archive): Don't assume mt_count is of type daddr_t.
- 1997-10-30 Paul Eggert <eggert@twinsun.com>
- Set to appropriate values if large file support
- needs explicit enabling.
- (HAVE_INTTYPES_H, HAVE_ST_FSTYPE_STRING, daddr_t, major_t, minor_t,
- ssize_t):
- New macros to configure.
- (AC_TYPE_MODE_T, AC_TYPE_PID_T, AC_TYPE_OFF_T): Add.
- major_t, minor_t, ssize_t): New macros.
- Fix typo: %uld -> %lu. Use unsigned when long long
- (%lld -> %llu).
- (add_to_tarlong_helper, mult_tarlong_helper): 2nd arg is now unsigned long.
- (add_to_tarlong, mult_tarlong): Cast 2nd arg to unsigned long.
- 2nd arg is now unsigned long.
- (prepare_record_buffer): Arg is now size_t.
- Remove now-useless casts.
- (main): Use `long' for status, so that it can store ssize_t.
- Use daddr_t, mode_t, size_t, off_t when appropriate.
- Convert daddr_t and off_t values ourselves, since they might be longer
- than long. Convert other types using `long' primitives.
- When processing MTIOCTOP, do not try to pass resulting
- count back, since it won't work (it could be too large) and it's
- not expected anyway.
- (append_file) Use off_t, size_t, ssize_t when appropriate. Remove
- now-useless casts. Use unsigned long to print *_t types, except use
- STRINGIFY_BIGINT for off_t.
- (update_archive): Cast -1 to dev_t when necessary.
- Now returns 1 if successful, 0 otherwise, and returns
- uintmax_t value into new arg. Check for arithmetic overflow.
- (decode_options): Avoid overflow if record_size fits in size_t but not int.
- Check for overflow on user or group ids.
- diff_sparse_files, diff_archive):
- Use off_t, pid_t, size_t, ssize_t when appropriate.
- Remove now-useless casts. Use unsigned long to print *_t types,
- except use STRINGIFY_BIGINT for off_t.
- (process_noop, process_rawdata, process_dumpdir, read_and_process):
- Size arg is now size_t.
- (diff_sparse_files): Arg is now off_t. Check for size_t overflow
- when allocating buffer.
- (do_command, rmt_open__, rmt_read__, rmt_lseek__, rmt_ioctl__):
- Use pid_t, size_t, ssize_t when appropriate. Remove now-useless casts.
- Use unsigned long to print *_t types, except use STRINGIFY_BIGINT for
- off_t.
- (get_status_string, get_status_off): New function.
- (get_status): Now returns long, so that it can store ssize_t.
- Invoke get_status_string to do the real work.
- (rmt_read__, rmt_write__): Now returns ssize_t. Size arg is now size_t.
- (rmt_lseek__): Now returns off_t, using new get_status_off function.
- (rmt_ioctl__): Convert mt_count by hand,
- since it might be longer than long.
- Check for overflow when converting off_t to size_t.
- Use off_t, size_t when appropriate. Remove now-useless casts.
- (ST_NBLOCKS): Do not overflow if st_size is near maximum.
- Return number of ST_NBLOCKSIZE-byte blocks,
- not number of 512-byte blocks;
- this also helps to avoid overflow.
- (st_blocks): Declare if needed.
- (ST_NBLOCKSIZE): New macro.
- (<limits.h>, <inttypes.h>): Include if available.
- (CHAR_BIT): New macro.
- (uintmax_t): New typedef.
- (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_STRLEN_BOUND,
- UINTMAX_STRSIZE_BOUND, GID_MAX, MAJOR_MAX, MINOR_MAX, MODE_MAX,
- OFF_MAX, SIZE_MAX, TIME_MAX, UID_MAX, UINTMAX_MAX): New macros.
- Fix typo in error message: FILE* was passed, but char*
- was wanted.
- (read_name_from_file, name_gather, addname, name_match, name_scan,
- add_exclude): Use size_t when appropriate. Remove now-useless casts.
- (exclude_pool_size, allocated_exclude_pool_size): Now size_t.
- (extract_sparse_file): Args now use off_t.
- (set_mode, set_stat, make_directories, extract_sparse_file,
- extract_archive): Use off_t, size_t, ssize_t when appropriate. Remove
- now-useless casts. Use unsigned long to print *_t types, except use
- STRINGIFY_BIGINT for off_t.
- Use size_t when appropriate. Remove now-useless casts.
- print_header, print_for_mkdir):
- Use mode_t, off_t, size_t when appropriate. Remove
- now-useless casts. Use unsigned long to print *_t types, except use
- STRINGIFY_BIGINT for off_t.
- (read_header): Check for overflow when converting header size.
- (from_oct): Now static. Now returns uintmax_t. `where' arg is now
- const char *. Size arg is now size_t. Now takes new type and maxval
- args. Compute result using uintmax_t, not long. Report error if
- field does not contain octal number in range.
- (gid_from_oct, major_from_oct, minor_from_oct, mode_from_oct,
- off_from_oct, size_from_oct, time_from_oct, uid_from_oct,
- uintmax_from_oct): New functions.
- (stringify_uintmax_t_backwards): New function.
- (decode_mode, print_for_mkdir): Mode arg is now mode_t.
- (skip_file): Offset arg is now off_t.
- real_s_totsize, real_s_sizeleft, current_block_ordinal):
- Now off_t.
- (write_error): Arg is now ssize_t.
- (child_pid): Now pid_t.
- (available_space_after): Now size_t.
- (child_open_for_compress, child_open_for_uncompress, flush_write,
- open_archive, flush_write, write_error, flush_read, close_archive):
- Use pid_t, ssize_t, size_t when appropriate. Remove now-useless
- casts. Use unsigned long to print *_t types, except use
- STRINGIFY_BIGINT for off_t.
- (move_archive): Arg is now daddr_t. Check for overflow when
- computing offset.
- (move_archive, delete_archive_members): Use daddr_t, off_t when
- appropriate. Remove now-useless casts.
- (rmt_lseek): Now returns off_t.
- Now static. Value arg is now uintmax_t. Accept new args
- giving name of type of octal field, for error messages. Report an
- error if the value is too large to fit in the field.
- (gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct, off_to_oct,
- size_to_oct, time_to_oct, uid_to_oct, uintmax_to_oct): New functions.
- (write_eot, write_long, finish_header, deal_with_sparse,
- finish_sparse_file, dump_file): Use dev_t, off_t, ssize_t, size_t when
- appropriate. Remove now-useless casts. Use unsigned long to print
- (find_new_file_size): 1st arg is now off_t*.
- (finish_sparse_file): Args now use off_t, not long.
- Check for lseek error.
- (create_archive, dump_file): Cast -1 to dev_t when necessary.
- (dump_file): Device arg is now dev_t.
- Avoid overflow when testing whether file has holes
- by using the new ST_NBLOCKSIZE macro.
- get_directory_contents, add_hierarchy_to_namelist, gnu_restore):
- Use size_t for sizes.
- (struct directory, get_directory_contents, add_hierarchy_to_namelist):
- Use dev_t, ino_t for devices and inodes.
- (gnu_restore): Use off_t for file offsets.
- (struct directory): Use char for flags. Add new flag `nfs'.
- (nfs): New constant
- (NFS_FILE_STAT): New macro.
- (note_directory): Accept struct stat * instead of
- device and inode number. All callers changed.
- (note_directory, get_directory_contents):
- Use NFS_FILE_STAT to determine whether directory is an NFS directory.
- (write_dir_file): Cast time_t to unsigned long before printing as %lu.
- available_space_after):
- Use size_t for sizes.
- (save_sizeleft, save_totsize, current_block_ordinal, skip_file):
- Use off_t for file offsets.
- (struct name): dir_contents is now const char *, not char *.
- (dump_file, get_directory_contents): Use dev_t for devices.
- (to_oct): Remove decl.
- (GID_TO_OCT, MAJOR_TO_OCT, MINOR_TO_OCT, MODE_TO_OCT, SIZE_TO_OCT,
- UID_TO_OCT, UINTMAX_TO_OCT, OFF_TO_OCT, TIME_TO_OCT, STRINGIFY_BIGINT,
- GID_FROM_OCT, MAJOR_FROM_OCT, MINOR_FROM_OCT, MODE_FROM_OCT,
- OFF_FROM_OCT, SIZE_FROM_OCT, TIME_FROM_OCT, UID_FROM_OCT,
- UINTMAX_FROM_OCT): New macros.
- (gid_to_oct, major_to_oct, minor_to_oct, mode_to_oct, off_to_oct,
- size_to_oct, time_to_oct, uid_to_oct, uintmax_to_oct,
- stringify_uintmax_t_backwards, gid_from_oct, major_from_oct,
- minor_from_oct, mode_from_oct, off_from_oct, size_from_oct,
- time_from_oct, uid_from_oct, uintmax_from_oct): New decls.
- (print_for_mkdir): 2nd arg is now mode_t.
- -----
- See ChangeLog.1 for earlier changes.
- -----
- Copyright (C) 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007
- Free Software Foundation, Inc.
- This file is part of GNU tar.
- GNU tar is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3, or (at your option)
- any later version.
- GNU tar is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with GNU tar; see the file COPYING. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
- Local Variables:
- mode: change-log
- version-control: never
- End:
|