ChangeLog 302 KB

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