1. Nicer [FIX] Re: Hi, am having trouble with cpio-2.4.2 on S.u.S.E. 6.0
Nicer (but functionally equivalent) patch to cpio-2.4.2:
The problem I reported earlier wasn't with gcc or libc, as has
been pointed out to me, but with an incorrect assumption in
copyout.c of cpio-2.4.2. The below patch, with it's two added
type-casts, takes care of that mistaken assumption (that all
system types are integers):
Forget my earlier patch... this one is far more beautiful:
________________________________________________________________
*** cpio-2.4.2/copyout.c.orig Wed Jan 10 17:10:45 1996
--- cpio-2.4.2/copyout.c Wed May 26 14:40:57 1999
***************
*** 113,122 ****
sprintf (ascii_header,
"%06o%06o%06lo%06lo%06lo%06lo%06lo%06o%011lo%06lo%011lo",
! file_hdr->c_magic & 0xFFFF, dev & 0xFFFF,
file_hdr->c_ino & 0xFFFF, file_hdr->c_mode & 0xFFFF,
file_hdr->c_uid & 0xFFFF, file_hdr->c_gid & 0xFFFF,
! file_hdr->c_nlink & 0xFFFF, rdev & 0xFFFF,
file_hdr->c_mtime, file_hdr->c_namesize & 0xFFFF,
file_hdr->c_filesize);
tape_buffered_write (ascii_header, out_des, 76L);
--- 113,122 ----
sprintf (ascii_header,
"%06o%06o%06lo%06lo%06lo%06lo%06lo%06o%011lo%06lo%011lo",
! file_hdr->c_magic & 0xFFFF, (unsigned int) (dev & 0xFFFF),
file_hdr->c_ino & 0xFFFF, file_hdr->c_mode & 0xFFFF,
file_hdr->c_uid & 0xFFFF, file_hdr->c_gid & 0xFFFF,
! file_hdr->c_nlink & 0xFFFF, (unsigned int) (rdev & 0xFFFF),
file_hdr->c_mtime, file_hdr->c_namesize & 0xFFFF,
file_hdr->c_filesize);
tape_buffered_write (ascii_header, out_des, 76L);
________________________________________________________________
Regards,
________________________________________________________________
Leif Erlingsson, Katrinebergsvagen 70, 146 50 Tullinge, Sweden
TEL +46 8 778-5038, MOB +46 709 14-0631, URL http://www.lege.com
2. StarOffice
3. Hi, am having trouble with cpio-2.4.2 on S.u.S.E. 6.0
4. registering a domain name
5. Apache +proxy +hpux 11
6. Hi, having trouble with networking
7. New files on TSX-11
8. I am having trouble with tcpip
9. I am having trouble rebuilding xchat
10. I am having troubles installing StarOffice 5.2 from the RedHat 7.2 distribution
11. Am I the only one having trouble with Netscape???
12. Am I the only one having troubles with apache beta 7?