4
0

ChangeLog 261 KB

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