4
0

ChangeLog 211 KB

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