From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,2f613ccaa18a39c6 X-Google-Attributes: gid1164f8,public From: jkb@mrc-lmb.cam.ac.uk (James Bonfield) Subject: Re: SunOS can't untar OSF/1 tar files? Date: 1996/10/23 Message-ID: <54lcod$5iq@lyra.csx.cam.ac.uk>#1/1 X-Deja-AN: 191703129 references: <54ifma$196@enva1.env.uea.ac.uk> organization: MRC Laboratory of Molecular Biology, Cambridge UK newsgroups: comp.sys.dec In article <54ifma$196@enva1.env.uea.ac.uk> zebra@enva1.env.uea.ac.uk (J.S.Brainard) writes: >We have made the recent discovery that SunOS 4.1.3/4 can't tar -xvf >tar files created under OSF/1 3.x. This is a real nuisance since these >two are the dominant OS's at our site. Also, I have recently written >some software I would like to distribute by anon. ftp. Working mostly >on alpha platforms I naturally used the alpha to tar my code up -- >but this means SunOS users can't untar it! And there are an awful lot >of SunOS users out there. We had this problem too, although we didn't finmd out until we'd distributed quite a large number of tapes to people. To fix this we took two measures. 1. Copy the old tar program from OSF/1 V2.x and use this instead. 2. Wrote a converter program. To get a copy see: ftp://ftp.mrc-lmb.cam.ac.uk/ftp/pub/staden/src/tarfix-1.2.shar It's actually a modified copy of another program, but it does the job. The problem is that the SunOS 4 systems look at the filename to figure out whether something is a directory or not. If it is, then it'll have a / on the end. In addition to this the file type info should also contain the ISDIR flag set. However SunOS 4 only checks the file name. OSF/1 only adds the ISDIR bit. Arguably the OSF system is correct - most other systems seem to cope happily with it. Anyway, with a conversion program there's no need to recreate all your existing tars. I suspect gnu tar would work too, which is a 3rd option only if these tars are for your own local use. James -- James Bonfield (jkb@mrc-lmb.cam.ac.uk) Tel: 01223 402499 Fax: 01223 412282 Medical Research Council - Laboratory of Molecular Biology, Hills Road, Cambridge, CB2 2QH, England. Also see Staden Package WWW site at http://www.mrc-lmb.cam.ac.uk/pubseq/