ChangeLog 303 KB

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