ChangeLog 204 KB

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