ChangeLog 300 KB

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