ChangeLog.CVS 325 KB

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