Support major/minor device numbers over 127 (bz#450109)
This commit is contained in:
parent
8fe6e47b68
commit
39fcc651a7
23
cpio-2.9-dev_number.patch
Normal file
23
cpio-2.9-dev_number.patch
Normal file
@ -0,0 +1,23 @@
|
||||
diff -ruN cpio-2.9.90.orig/src/copyin.c cpio-2.9.90/src/copyin.c
|
||||
--- cpio-2.9.90.orig/src/copyin.c 2008-07-11 13:20:27.000000000 +0200
|
||||
+++ cpio-2.9.90/src/copyin.c 2008-07-18 10:16:24.000000000 +0200
|
||||
@@ -1269,15 +1269,15 @@
|
||||
swab_array ((char *) short_hdr, 13);
|
||||
}
|
||||
|
||||
- file_hdr->c_dev_maj = major (short_hdr->c_dev);
|
||||
- file_hdr->c_dev_min = minor (short_hdr->c_dev);
|
||||
+ file_hdr->c_dev_maj = major ((unsigned short)short_hdr->c_dev);
|
||||
+ file_hdr->c_dev_min = minor ((unsigned short)short_hdr->c_dev);
|
||||
file_hdr->c_ino = short_hdr->c_ino;
|
||||
file_hdr->c_mode = short_hdr->c_mode;
|
||||
file_hdr->c_uid = short_hdr->c_uid;
|
||||
file_hdr->c_gid = short_hdr->c_gid;
|
||||
file_hdr->c_nlink = short_hdr->c_nlink;
|
||||
- file_hdr->c_rdev_maj = major (short_hdr->c_rdev);
|
||||
- file_hdr->c_rdev_min = minor (short_hdr->c_rdev);
|
||||
+ file_hdr->c_rdev_maj = major ((unsigned short)short_hdr->c_rdev);
|
||||
+ file_hdr->c_rdev_min = minor ((unsigned short)short_hdr->c_rdev);
|
||||
file_hdr->c_mtime = (unsigned long) short_hdr->c_mtimes[0] << 16
|
||||
| short_hdr->c_mtimes[1];
|
||||
|
@ -3,7 +3,7 @@
|
||||
Summary: A GNU archiving program
|
||||
Name: cpio
|
||||
Version: 2.9.90
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPLv3+
|
||||
Group: Applications/Archiving
|
||||
URL: http://www.gnu.org/software/cpio/
|
||||
@ -15,6 +15,7 @@ Patch2: cpio-2.9-rh.patch
|
||||
Patch3: cpio-2.9-chmodRaceC.patch
|
||||
Patch4: cpio-2.9-exitCode.patch
|
||||
Patch5: cpio-2.9-dir_perm.patch
|
||||
Patch6: cpio-2.9-dev_number.patch
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun): /sbin/install-info
|
||||
BuildRequires: texinfo, autoconf, gettext
|
||||
@ -41,6 +42,7 @@ Install cpio if you need a program to manage file archives.
|
||||
%patch3 -p1 -b .chmodRaceC
|
||||
%patch4 -p1 -b .exitCode
|
||||
%patch5 -p1 -b .dir_perm
|
||||
%patch6 -p1 -b .dev_number
|
||||
|
||||
autoheader
|
||||
|
||||
@ -81,6 +83,9 @@ fi
|
||||
%{_infodir}/*.info*
|
||||
|
||||
%changelog
|
||||
* Fri Jul 18 2008 Kamil Dudka <kdudka@redhat.com> 2.9.90-2
|
||||
- Support major/minor device numbers over 127 (bz#450109)
|
||||
|
||||
* Tue Jun 02 2008 Ondrej Vasik <ovasik@redhat.com> 2.9.90-1
|
||||
- new upstream alpha version 2.9.90 + removed applied patches
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user