ChangeLog 293 KB

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