Blame SOURCES/cpio-2.9-dev_number.patch

dd3c47
diff -ruN cpio-2.9.90.orig/src/copyin.c cpio-2.9.90/src/copyin.c
dd3c47
--- cpio-2.9.90.orig/src/copyin.c	2008-07-11 13:20:27.000000000 +0200
dd3c47
+++ cpio-2.9.90/src/copyin.c	2008-07-18 10:16:24.000000000 +0200
dd3c47
@@ -1269,15 +1269,15 @@
dd3c47
       swab_array ((char *) short_hdr, 13);
dd3c47
     }
dd3c47
 
dd3c47
-  file_hdr->c_dev_maj = major (short_hdr->c_dev);
dd3c47
-  file_hdr->c_dev_min = minor (short_hdr->c_dev);
dd3c47
+  file_hdr->c_dev_maj = major ((unsigned short)short_hdr->c_dev);
dd3c47
+  file_hdr->c_dev_min = minor ((unsigned short)short_hdr->c_dev);
dd3c47
   file_hdr->c_ino = short_hdr->c_ino;
dd3c47
   file_hdr->c_mode = short_hdr->c_mode;
dd3c47
   file_hdr->c_uid = short_hdr->c_uid;
dd3c47
   file_hdr->c_gid = short_hdr->c_gid;
dd3c47
   file_hdr->c_nlink = short_hdr->c_nlink;
dd3c47
-  file_hdr->c_rdev_maj = major (short_hdr->c_rdev);
dd3c47
-  file_hdr->c_rdev_min = minor (short_hdr->c_rdev);
dd3c47
+  file_hdr->c_rdev_maj = major ((unsigned short)short_hdr->c_rdev);
dd3c47
+  file_hdr->c_rdev_min = minor ((unsigned short)short_hdr->c_rdev);
dd3c47
   file_hdr->c_mtime = (unsigned long) short_hdr->c_mtimes[0] << 16
dd3c47
                       | short_hdr->c_mtimes[1];
dd3c47