4
0

ChangeLog 196 KB

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