4
0

ChangeLog 294 KB

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