Re: device nodes extracted incorrectly in 1.5a64

Joerg Schilling <[email protected]>
Newsgroups gmane.comp.archivers.star.user
Message-ID <42FA237E.nail4NP1FZIAY@burner>
Mike <[email protected]> wrote:

> It appears that star 1.5a64 does not properly extract device
> nodes. The device minor number is in all cases the same as the major
> number (see below example).
>
> It is created correctly. A tar archive created with 1.5a64 is
> extracted correctly by 1.5a58.

Try to use this patch:

------- header.c -------
*** /tmp/sccs.JxaOOc    Wed Aug 10 17:54:53 2005
--- header.c    Wed Aug 10 17:54:42 2005
***************
*** 1887,1893 ****
                         */
                        c = ptb->ustar_dbuf.t_prefix[0];
                        ptb->ustar_dbuf.t_prefix[0] = '\0';
!                       stoli(ptb->ustar_dbuf.t_devmajor, &ul);
                        ptb->ustar_dbuf.t_prefix[0] = c;
                        info->f_rdevmin = ul;
                }
--- 1887,1893 ----
                         */
                        c = ptb->ustar_dbuf.t_prefix[0];
                        ptb->ustar_dbuf.t_prefix[0] = '\0';
!                       stoli(ptb->ustar_dbuf.t_devminor, &ul);
                        ptb->ustar_dbuf.t_prefix[0] = c;
                        info->f_rdevmin = ul;
                }


Jörg

-- 
 EMail:[email protected] (home) Jörg Schilling D-13353 Berlin
       [email protected]		(uni)  
       [email protected]	(work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.