ChangeLog 321 KB

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