ChangeLog 223 KB

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