ChangeLog 259 KB

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