* Tue Feb 23 2010 Eric Sandeen <sandeen@redhat.com> 1.41.10-4
- Fix for e2fsck -fD corruption
This commit is contained in:
parent
4345ad56d2
commit
d6a3380764
33
e2fsprogs-1.41.10-fsck-D-fix.patch
Normal file
33
e2fsprogs-1.41.10-fsck-D-fix.patch
Normal file
@ -0,0 +1,33 @@
|
||||
E2fsprogs 1.41.10 introduced a regression (in commit b71e018) where
|
||||
e2fsck -fD can corrupt non-indexed directories when are exists one or
|
||||
more file names which alphabetically sort before ".". This can happen
|
||||
with ext2 filesystems or for small directories (take less than a
|
||||
block) which contain filenames that begin with a space or some other
|
||||
punctuation mark.
|
||||
|
||||
Fix this by making sure we never reorder the '.' or '..' entry in the
|
||||
directory, since they must be first.
|
||||
|
||||
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
|
||||
---
|
||||
e2fsck/rehash.c | 7 ++++++-
|
||||
1 files changed, 6 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git a/e2fsck/rehash.c b/e2fsck/rehash.c
|
||||
index 780742e..ceb8543 100644
|
||||
--- a/e2fsck/rehash.c
|
||||
+++ b/e2fsck/rehash.c
|
||||
@@ -763,7 +763,12 @@ retry_nohash:
|
||||
|
||||
/* Sort the list */
|
||||
resort:
|
||||
- qsort(fd.harray, fd.num_array, sizeof(struct hash_entry), hash_cmp);
|
||||
+ if (fd.compress)
|
||||
+ qsort(fd.harray+2, fd.num_array-2, sizeof(struct hash_entry),
|
||||
+ hash_cmp);
|
||||
+ else
|
||||
+ qsort(fd.harray, fd.num_array, sizeof(struct hash_entry),
|
||||
+ hash_cmp);
|
||||
|
||||
/*
|
||||
* Look for duplicates
|
@ -4,7 +4,7 @@
|
||||
Summary: Utilities for managing ext2, ext3, and ext4 filesystems
|
||||
Name: e2fsprogs
|
||||
Version: 1.41.10
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
|
||||
# License tags based on COPYING file distinctions for various components
|
||||
License: GPLv2
|
||||
@ -13,6 +13,7 @@ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
||||
Source1: ext2_types-wrapper.h
|
||||
|
||||
Patch2: e2fsprogs-1.40.4-sb_feature_check_ignore.patch
|
||||
Patch3: e2fsprogs-1.41.10-fsck-D-fix.patch
|
||||
|
||||
Url: http://e2fsprogs.sourceforge.net/
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
@ -136,6 +137,10 @@ It was originally inspired by the Multics SubSystem library.
|
||||
# after an selinux install...
|
||||
%patch2 -p1 -b .featurecheck
|
||||
|
||||
# E2fsprogs 1.41.10 introduced a regression (in commit b71e018) where
|
||||
# e2fsck -fD can corrupt non-indexed directories
|
||||
%patch3 -p1 -b .fsckD
|
||||
|
||||
%build
|
||||
%configure --enable-elf-shlibs --enable-nls --disable-uuidd --disable-fsck \
|
||||
--disable-e2initrd-helper --disable-libblkid --disable-libuuid
|
||||
@ -294,6 +299,9 @@ exit 0
|
||||
%{_libdir}/pkgconfig/ss.pc
|
||||
|
||||
%changelog
|
||||
* Tue Feb 23 2010 Eric Sandeen <sandeen@redhat.com> 1.41.10-4
|
||||
- Fix for e2fsck -fD corruption
|
||||
|
||||
* Fri Feb 12 2010 Eric Sandeen <sandeen@redhat.com> 1.41.10-3
|
||||
- And drop virtual provides for static libs
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user