home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / utils / bug / 2069 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.6 KB  |  47 lines

  1. Newsgroups: gnu.utils.bug
  2. Path: sparky!uunet!stanford.edu!agate!spool.mu.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!abars.ATt.COM!dao
  3. From: dao@abars.ATt.COM (David A Oshinsky)
  4. Subject: (none)
  5. Message-ID: <9211162206.AA28646@life.ai.mit.edu>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Mon, 16 Nov 1992 22:03:37 GMT
  10. Approved: bug-gnu-utils@prep.ai.mit.edu
  11. Lines: 34
  12.  
  13. This is to report a bug in gnu cpio version 2.1.  The bug is as follows:
  14.  
  15. When gnu cpio 2.1 reads an old-style (short header) binary cpio file,
  16. it does not read the proper c_dev and c_ino fields into the new cpio
  17. header.  This can cause serious problems since cpio bases the decision
  18. to create hard links (for those files with nlinks > 1) on the values of
  19. the c_ino field.
  20.  
  21. The following patch, when applied to copyin.c, fixes the bug (changes are
  22. made in the read_in_binary() function):
  23.  
  24. 217c217
  25. <    number), which are already filled in.  */
  26. ---
  27. >    number), which are already filled in.
  28. 218a219,223
  29. >    Note AT&T DAO 11/16/92: above comment is inaccurate since the first 6
  30. >    bytes of the short binary header includes the magic number, device number,
  31. >    and the inode number (not just the magic number !!!!).
  32. > */
  33. 241a247,251
  34. >   /* AT&T DAO 11/16/92 to fix a SERIOUS bug:  initialize c_dev and    */
  35. >   /* c_ino fields of short_hdr (from bytes 3 through 6 of file_hdr) !!! */
  36. >   short_hdr.c_dev = ((struct old_cpio_header *)file_hdr)->c_dev;
  37. >   short_hdr.c_ino = ((struct old_cpio_header *)file_hdr)->c_ino;
  38.  
  39.  
  40.         David Oshinsky
  41.         AT&T
  42.         uucp: att!abars!dao
  43.         phone: (908)870-7693
  44.  
  45.