OBS User unknown 2008-01-17 21:46:25 +00:00 committed by Git OBS Bridge
parent e2e27e68a5
commit 8033e75f32
13 changed files with 905 additions and 1677 deletions

View File

@ -2,15 +2,15 @@ Index: configure.in
=================================================================== ===================================================================
--- configure.in.orig --- configure.in.orig
+++ configure.in +++ configure.in
@@ -569,6 +569,7 @@ if test $cross_compiling = no; then @@ -611,6 +611,7 @@ if test $cross_compiling = no; then
else else
AC_CHECK_PROGS(BUILD_CC, gcc cc) AC_CHECK_PROGS(BUILD_CC, gcc cc)
fi fi
+AC_HEADER_TIME +AC_HEADER_TIME
AC_CHECK_HEADERS(stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mman.h sys/mkdev.h sys/prctl.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if_dl.h netinet/in.h utime.h) AC_CHECK_HEADERS(stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mman.h sys/mkdev.h sys/prctl.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h sys/syscall.h net/if_dl.h netinet/in.h utime.h)
AC_CHECK_HEADERS(sys/disk.h sys/mount.h,,, AC_CHECK_HEADERS(sys/disk.h sys/mount.h,,,
[[ [[
@@ -778,7 +779,7 @@ if test "$root_prefix" = NONE ; then @@ -820,7 +821,7 @@ if test "$root_prefix" = NONE ; then
else else
root_bindir='${root_prefix}/bin' root_bindir='${root_prefix}/bin'
root_sbindir='${root_prefix}/sbin' root_sbindir='${root_prefix}/sbin'

View File

@ -1,337 +0,0 @@
Index: e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/uuid/Makefile.in
===================================================================
--- e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329.orig/lib/uuid/Makefile.in
+++ e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/uuid/Makefile.in
@@ -19,6 +19,8 @@ SMANPAGES= uuid.3 uuid_clear.3 uuid_comp
OBJS= clear.o \
compare.o \
copy.o \
+ pv.o \
+ shm.o \
gen_uuid.o \
isnull.o \
pack.o \
@@ -30,6 +32,8 @@ OBJS= clear.o \
SRCS= $(srcdir)/clear.c \
$(srcdir)/compare.c \
$(srcdir)/copy.c \
+ $(srcdir)/pv.c \
+ $(srcdir)/shm.c \
$(srcdir)/gen_uuid.c \
$(srcdir)/isnull.c \
$(srcdir)/pack.c \
@@ -82,7 +86,7 @@ tst_uuid: tst_uuid.o $(DEPSTATIC_LIBUUID
uuid_time: $(srcdir)/uuid_time.c $(DEPLIBUUID)
@echo " LD $@"
- @$(CC) $(ALL_CFLAGS) -DDEBUG -o uuid_time $(srcdir)/uuid_time.c \
+ @$(CC) $(ALL_CFLAGS) $(ALL_LDFLAGS) -DDEBUG -o uuid_time $(srcdir)/uuid_time.c \
$(LIBUUID)
uuid.3: $(DEP_SUBSTITUTE) $(srcdir)/uuid.3.in
Index: e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/uuid/gen_uuid.c
===================================================================
--- e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329.orig/lib/uuid/gen_uuid.c
+++ e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/uuid/gen_uuid.c
@@ -74,6 +74,10 @@
#endif
#include "uuidP.h"
+#include "pv.h"
+#include "shm.h"
+#include <pthread.h>
+#include <stdio.h>
#ifdef HAVE_SRANDOM
#define srand(x) srandom(x)
@@ -247,54 +251,75 @@ static int get_node_id(unsigned char *no
/* Assume that the gettimeofday() has microsecond granularity */
#define MAX_ADJUSTMENT 10
+static pthread_once_t m_uuid_init_guard = PTHREAD_ONCE_INIT;
+static pthread_mutex_t m_uuid_mutex = PTHREAD_MUTEX_INITIALIZER;
+static int m_uuid_sem_id = -1;
+
+void m_uuid_init_once()
+{
+ m_uuid_sem_id = uuid_sem_init((int)'u');
+}
+
static int get_clock(uint32_t *clock_high, uint32_t *clock_low, uint16_t *ret_clock_seq)
{
- static int adjustment = 0;
- static struct timeval last = {0, 0};
- static uint16_t clock_seq;
- struct timeval tv;
- unsigned long long clock_reg;
-
+ unsigned long long clock_reg;
+ struct timeval tv;
+ static uint16_t clock_seq;
+ static int adjustment = 0;
+
+ int shm_id = shm_init((int)'s', sizeof(struct timeval));
+ struct timeval *clock_time = (struct timeval*)shm_addr(shm_id);
+
try_again:
gettimeofday(&tv, 0);
- if ((last.tv_sec == 0) && (last.tv_usec == 0)) {
+ if ((clock_time->tv_sec == 0) && (clock_time->tv_usec == 0)) {
get_random_bytes(&clock_seq, sizeof(clock_seq));
clock_seq &= 0x3FFF;
- last = tv;
- last.tv_sec--;
+ *clock_time = tv;
+ clock_time->tv_sec--;
}
- if ((tv.tv_sec < last.tv_sec) ||
- ((tv.tv_sec == last.tv_sec) &&
- (tv.tv_usec < last.tv_usec))) {
+ if ((tv.tv_sec < clock_time->tv_sec) ||
+ ((tv.tv_sec == clock_time->tv_sec) &&
+ (tv.tv_usec < clock_time->tv_usec))) {
clock_seq = (clock_seq+1) & 0x3FFF;
adjustment = 0;
- last = tv;
- } else if ((tv.tv_sec == last.tv_sec) &&
- (tv.tv_usec == last.tv_usec)) {
+ *clock_time = tv;
+ } else if ((tv.tv_sec == clock_time->tv_sec) &&
+ (tv.tv_usec == clock_time->tv_usec)) {
if (adjustment >= MAX_ADJUSTMENT)
goto try_again;
adjustment++;
} else {
adjustment = 0;
- last = tv;
+ *clock_time = tv;
}
-
+
+ clock_seq = (clock_seq+1) & 0x3FFF;
+
clock_reg = tv.tv_usec*10 + adjustment;
- clock_reg += ((unsigned long long) tv.tv_sec)*10000000;
- clock_reg += (((unsigned long long) 0x01B21DD2) << 32) + 0x13814000;
-
+ clock_reg += ((unsigned long)tv.tv_sec)*10000000;
+ clock_reg += (((unsigned long long)0x01B21DD2) << 23) + 0x13814000;
+
*clock_high = clock_reg >> 32;
*clock_low = clock_reg;
*ret_clock_seq = clock_seq;
+ shm_detach(clock_time);
return 0;
}
void uuid_generate_time(uuid_t out)
{
+ pthread_mutex_lock(&m_uuid_mutex);
+
+ pthread_once(&m_uuid_init_guard, m_uuid_init_once);
+
+ if(m_uuid_sem_id != -1)
+ uuid_sem_P(m_uuid_sem_id);
+
static unsigned char node_id[6];
static int has_init = 0;
struct uuid uu;
- uint32_t clock_mid;
+ uint32_t clock_mid;
if (!has_init) {
if (get_node_id(node_id) <= 0) {
@@ -314,6 +339,11 @@ void uuid_generate_time(uuid_t out)
uu.time_hi_and_version = ((clock_mid >> 16) & 0x0FFF) | 0x1000;
memcpy(uu.node, node_id, 6);
uuid_pack(&uu, out);
+
+ if(m_uuid_sem_id != -1)
+ uuid_sem_V(m_uuid_sem_id);
+
+ pthread_mutex_unlock(&m_uuid_mutex);
}
void uuid_generate_random(uuid_t out)
Index: e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/uuid/pv.c
===================================================================
--- /dev/null
+++ e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/uuid/pv.c
@@ -0,0 +1,88 @@
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <sys/sem.h>
+#include <sys/ipc.h>
+
+#if defined(PV_REPORT_VERBOSE)
+#include <stdio.h>
+
+#define report(msg) perror(msg)
+#else
+#define report(msg)
+#endif
+#include <errno.h>
+
+#include "pv.h"
+
+int uuid_sem_init(int project_id)
+{
+ key_t sem_key;
+ int sem_id;
+
+ sem_key = ftok("/", project_id);
+ if(sem_key == (key_t)-1)
+ {
+ report("Can't generate semaphore key");
+ return -1;
+ }
+
+ sem_id = semget(sem_key, 0, 0);
+ if(sem_id == -1)
+ {
+ sem_id = semget(sem_key, 1, IPC_CREAT | IPC_EXCL |
+ S_IRUSR | S_IWUSR | S_IRGRP |
+ S_IWGRP | S_IROTH | S_IWOTH);
+ if(sem_id != -1)
+ {
+ union semun {
+ int val;
+ struct semid_ds *buf;
+ unsigned short *array;
+ struct seminfo *__buf;
+ } arg;
+ arg.val = 1;
+
+ if(semctl(sem_id, 0, SETVAL, arg) == -1)
+ {
+ report("Can't initialize semaphore");
+
+ /* try to remove -- we've created it */
+ semctl(sem_id, 0, IPC_RMID, (int)0);
+ sem_id = -1;
+ }
+ }
+ else
+ if(errno == EEXIST)
+ {
+ if( (sem_id = semget(sem_key, 0, 0)) == -1)
+ {
+ report("Can't acquire / create semahore");
+ }
+ }
+ else
+ {
+ report("Can't neither acquire nor create semahore");
+ }
+ }
+ return sem_id;
+}
+
+static inline int sem_pv(int id, int op)
+{
+ struct sembuf sb;
+ sb.sem_num = 0;
+ sb.sem_op = op;
+ sb.sem_flg = SEM_UNDO;
+ return semop(id, &sb, 1);
+}
+
+int uuid_sem_P(int id)
+{
+ return sem_pv(id, -1);
+}
+
+int uuid_sem_V(int id)
+{
+ return sem_pv(id, 1);
+}
+
Index: e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/uuid/pv.h
===================================================================
--- /dev/null
+++ e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/uuid/pv.h
@@ -0,0 +1,9 @@
+#ifndef PV_H_INCLUDE_GUARD
+#define PV_H_INCLUDE_GUARD
+
+int uuid_sem_init(int project_id);
+int uuid_sem_P(int id);
+int uuid_sem_V(int id);
+
+#endif // PV_H_INCLUDE_GUARD
+
Index: e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/uuid/shm.c
===================================================================
--- /dev/null
+++ e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/uuid/shm.c
@@ -0,0 +1,55 @@
+#include <sys/ipc.h>
+#include <sys/types.h>
+#include <sys/shm.h>
+
+#if defined(SHM_REPORT_VERBOSE)
+#include <stdio.h>
+
+#define report(msg) perror(msg)
+#else
+#define report(msg)
+#endif
+#include <errno.h>
+
+#include "shm.h"
+
+int shm_init(int project_id, size_t size) {
+ key_t key;
+ int id;
+
+ key = ftok("/", project_id);
+ if (key == (key_t)-1) {
+ report("Can't generate shared memory key");
+ return -1;
+ }
+
+ id = shmget(key, 0, 0);
+ if (id == -1) {
+ id = shmget(key, size, 0666 | IPC_CREAT);
+ if (id == -1 && errno == EEXIST) {
+ if ((id = shmget(key, 0, 0)) == -1) {
+ report("Can't acquire/create shared memory");
+ }
+ }
+ else if (id == -1) {
+ report("Can neither acquire nor create shared memory");
+ }
+ }
+ return id;
+}
+
+void *shm_addr(int id) {
+ void *p;
+
+ p = shmat(id, NULL, 0);
+ if (p == (void *)-1)
+ report("Cannot attach shared memory");
+ return p;
+}
+
+void shm_detach(void *addr)
+{
+ if (shmdt(addr) == -1)
+ report("Cannot detach shared memory");
+}
+
Index: e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/uuid/shm.h
===================================================================
--- /dev/null
+++ e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/uuid/shm.h
@@ -0,0 +1,10 @@
+#ifndef SHM_H_INCLUDE_GUARD
+#define SHM_H_INCLUDE_GUARD
+
+#include <stddef.h>
+
+int shm_init(int project_id, size_t size);
+void *shm_addr(int id);
+void shm_detach(void *addr);
+
+#endif // SHM_H_INCLUDE_GUARD

View File

@ -1,32 +0,0 @@
commit db9097caca17401313c0dc840b4ae683e5b5c1df
Author: Eric Sandeen <sandeen@redhat.com>
Date: Tue Jul 17 20:40:25 2007 -0500
Fix big-endian byte-swapping bug in ext2fs_swap_inode_full()
We need to set t->i_file_acl before we test it in
ext2fs_inode_data_blocks()
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
diff --git a/lib/ext2fs/swapfs.c b/lib/ext2fs/swapfs.c
index a40caa9..6576c59 100644
--- a/lib/ext2fs/swapfs.c
+++ b/lib/ext2fs/swapfs.c
@@ -150,6 +150,7 @@ void ext2fs_swap_inode_full(ext2_filsys fs, struct ext2_inode_large *t,
t->i_dtime = ext2fs_swab32(f->i_dtime);
t->i_gid = ext2fs_swab16(f->i_gid);
t->i_links_count = ext2fs_swab16(f->i_links_count);
+ t->i_file_acl = ext2fs_swab32(f->i_file_acl);
if (hostorder)
has_data_blocks = ext2fs_inode_data_blocks(fs,
(struct ext2_inode *) f);
@@ -158,7 +159,6 @@ void ext2fs_swap_inode_full(ext2_filsys fs, struct ext2_inode_large *t,
has_data_blocks = ext2fs_inode_data_blocks(fs,
(struct ext2_inode *) t);
t->i_flags = ext2fs_swab32(f->i_flags);
- t->i_file_acl = ext2fs_swab32(f->i_file_acl);
t->i_dir_acl = ext2fs_swab32(f->i_dir_acl);
if (!islnk || has_data_blocks ) {
for (i = 0; i < EXT2_N_BLOCKS; i++)

View File

@ -1,13 +0,0 @@
Index: e2fsprogs-1.40.2/lib/ext2fs/ismounted.c
===================================================================
--- e2fsprogs-1.40.2.orig/lib/ext2fs/ismounted.c
+++ e2fsprogs-1.40.2/lib/ext2fs/ismounted.c
@@ -147,7 +147,7 @@ static errcode_t check_mntent_file(const
is_root:
#define TEST_FILE "/.ismount-test-file"
*mount_flags |= EXT2_MF_ISROOT;
- fd = open(TEST_FILE, O_RDWR|O_CREAT);
+ fd = open(TEST_FILE, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR);
if (fd < 0) {
if (errno == EROFS)
*mount_flags |= EXT2_MF_READONLY;

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:88eb576688ec0c1e567fb19fd4b4cb8c8939258c50dbddd18d82536d1e9faf2f
size 3566530

View File

@ -0,0 +1,13 @@
Index: e2fsprogs-1.40.4/lib/uuid/gen_uuid.c
===================================================================
--- e2fsprogs-1.40.4.orig/lib/uuid/gen_uuid.c
+++ e2fsprogs-1.40.4/lib/uuid/gen_uuid.c
@@ -409,7 +409,7 @@ static int get_uuid_via_daemon(int op, u
access_ret = access(uuidd_path, X_OK);
if (access_ret == 0 && start_attempts++ < 5) {
if ((pid = fork()) == 0) {
- execl(uuidd_path, "uuidd", "-qT", "300", 0);
+ execl(uuidd_path, "uuidd", "-qT", "300", NULL);
exit(1);
}
(void) waitpid(pid, 0, 0);

View File

@ -0,0 +1,15 @@
Index: e2fsprogs-1.40.4/lib/uuid/uuidd.h
===================================================================
--- e2fsprogs-1.40.4.orig/lib/uuid/uuidd.h
+++ e2fsprogs-1.40.4/lib/uuid/uuidd.h
@@ -35,8 +35,8 @@
#ifndef _UUID_UUIDD_H
#define _UUID_UUIDD_H
-#define UUIDD_SOCKET_PATH "/var/lib/libuuid/request"
-#define UUIDD_PIDFILE_PATH "/var/lib/libuuid/uuidd.pid"
+#define UUIDD_SOCKET_PATH "/var/run/uuidd/request"
+#define UUIDD_PIDFILE_PATH "/var/run/uuidd/uuidd.pid"
#define UUIDD_PATH "/usr/sbin/uuidd"
#define UUIDD_OP_GETPID 0

3
e2fsprogs-1.40.4.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dd033d3199d172130d38647d3a5f8003bd0719e6288e54889b00ccbadc52f783
size 3642074

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,58 @@
-------------------------------------------------------------------
Wed Jan 16 11:03:14 CET 2008 - mkoenig@suse.de
- update to version 1.40.4:
* Fix potential security vulnerability (CVE-2007-5497)
* Fix big-endian byte-swapping bug in ext2fs_swap_inode_full()
* Fix a bug in ext2fs_initialize() which causes mke2fs to fail while
allocating inode tables for some relatively rare odd disk sizes.
* Fix bug in ext2fs_check_desc() which will cause e2fsck to complain
about (valid) filesystems where the inode table extends to the last
block of the block group
* Change e2fsck so it will not complain if a file has blocks reallocated
up to the next multiple of a system's page size
* Change e2fsck so it uses sscanf() instead of atoi() so it non-numeric
arguments are detected as such and the parse error is reported to the
user
* Make the e2fsprogs program more robust so that they will not crash
when opening a corrupt filesystem where s_inode_size is zero.
* Fix e2fsck so that if the superblock is corrupt, but still looks
vaguely like an ext2/3/4 superblock, that it automatically tries to
fall back to the backup superblock, instead of failing with a hard
error
* Fix fsck to ignore /etc/fstab entries for bind mounts
* E2fsck will no longer mark a filesystem as invalid if it has time
errors and the user refuses to fix the problem.
* Enhance blkid's detection of FAT filesystems
* Enhance e2fsck so it will force the backup superblocks to be backed up
if the filesystem is consistent and key constants have been changed
(i.e., by an on-line resize) or by e2fsck in the course of its
operations.
* Enhance the blkid library so it will recognize squashfs filesystems
* Fix e2image so that in raw mode it does not create an image file which
is one byte too large
* Fix heuristics in blkid which could cause a disk without partitions to
be incorrectly skipped when a loopback device is present
* Avoid division by zero error when probing an invalid FAT filesystem in
the blkid library
* Fix sign-extension problem on 64-bit systems in in the com_err
library
* Format control characters and characters with the high eighth bit set
when printing the contents of the blkid cache, to prevent filesystems
with garbage labels from sending escape sequences
* Fix fsck to only treat the '#' character as a comment at the beginning
of the line in /etc/fstab
* Filter out the NEEDS_RECOVERY feature flag when writing out the backup
superblocks
* Improve time-based UUID generation. A new daemon uuidd, is started
automatically by libuuid if necessary
- new subpackage: uuid-runtime
containing uuidd and uuidgen
- removed obsolete patches
e2fsprogs-1.39-uuid_duplicates.patch
e2fsprogs-1.40.2-open_fix.patch
e2fsprogs-1.40-be_swap_fix.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Nov 26 14:39:17 CET 2007 - mkoenig@suse.de Mon Nov 26 14:39:17 CET 2007 - mkoenig@suse.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package e2fsprogs (Version 1.40.2) # spec file for package e2fsprogs (Version 1.40.4)
# #
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine # This file and all modifications and additions to the pristine
# package are under the same license as the package itself. # package are under the same license as the package itself.
# #
@ -11,22 +11,21 @@
# norootforbuild # norootforbuild
Name: e2fsprogs Name: e2fsprogs
# This breaks make check and changes the Makefiles at other places too, %define no_command_hiding 1
# do not use for production builds until it's carefully reviewed:
%define no_command_hiding 0
BuildRequires: libvolume_id-devel BuildRequires: libvolume_id-devel
License: GPL v2 or later License: GPL v2 or later
Group: System/Filesystems Group: System/Filesystems
Supplements: filesystem(ext2) filesystem(ext3) Supplements: filesystem(ext2) filesystem(ext3)
PreReq: %install_info_prereq PreReq: %install_info_prereq
AutoReqProv: on AutoReqProv: on
Version: 1.40.2 Version: 1.40.4
Release: 30 Release: 1
Summary: Utilities for the Second Extended File System Summary: Utilities for the Second Extended File System
Url: http://e2fsprogs.sourceforge.net Url: http://e2fsprogs.sourceforge.net
Source: %{name}-%{version}.tar.bz2 Source: %{name}-%{version}.tar.bz2
Source1: de.po Source1: de.po
Source2: README.SUSE Source2: README.SUSE
Source3: uuidd.rc
Patch0: elf.diff Patch0: elf.diff
Patch1: %{name}-1.35-libdir.diff Patch1: %{name}-1.35-libdir.diff
Patch2: %{name}-1.33-fsckdevdisplay.diff Patch2: %{name}-1.33-fsckdevdisplay.diff
@ -40,13 +39,12 @@ Patch10: close.patch
Patch11: fsck-ignore-mounted.patch Patch11: fsck-ignore-mounted.patch
Patch12: e2fsprogs-mkinstalldirs.patch Patch12: e2fsprogs-mkinstalldirs.patch
Patch13: e2fsprogs-special_make_targets.patch Patch13: e2fsprogs-special_make_targets.patch
Patch15: e2fsprogs-1.39-uuid_duplicates.patch
Patch16: e2fsprogs-1.39-resize2fs_manpage.patch Patch16: e2fsprogs-1.39-resize2fs_manpage.patch
Patch17: e2fsprogs-strncat.patch Patch17: e2fsprogs-strncat.patch
Patch20: e2fsprogs-blkid_probe_hfsplus.patch Patch20: e2fsprogs-blkid_probe_hfsplus.patch
Patch21: e2fsprogs-uninitialized.diff Patch21: e2fsprogs-uninitialized.diff
Patch22: e2fsprogs-1.40-be_swap_fix.patch Patch22: e2fsprogs-1.40.4-uuidd_pid_path.patch
Patch23: e2fsprogs-1.40.2-open_fix.patch Patch23: e2fsprogs-1.40.4-uuid_null.patch
# libcom_err patches # libcom_err patches
Patch30: libcom_err-no-static-buffer.patch Patch30: libcom_err-no-static-buffer.patch
Patch31: libcom_err-no-init_error_table.patch Patch31: libcom_err-no-init_error_table.patch
@ -177,6 +175,24 @@ detection.
Authors:
--------
Remy Card <card@masi.ibp.fr>
Theodore Ts'o <tytso@mit.edu>
%package -n uuid-runtime
Summary: Utilities for the Second Extended File System
Group: System/Filesystems
AutoReqProv: on
PreReq: %insserv_prereq permissions pwdutils
%description -n uuid-runtime
Utilities needed to create and maintain ext2 and ext3 file systems
under Linux. Included in this package are: chattr, lsattr, mke2fs,
mklost+found, tune2fs, e2fsck, resize2fs, and badblocks.
Authors: Authors:
-------- --------
Remy Card <card@masi.ibp.fr> Remy Card <card@masi.ibp.fr>
@ -186,6 +202,7 @@ Authors:
Summary: Library to generate UUIDs Summary: Library to generate UUIDs
Group: System/Filesystems Group: System/Filesystems
AutoReqProv: on AutoReqProv: on
Recommends: uuid-runtime
%description -n libuuid1 %description -n libuuid1
A library to generate universally unique IDs (UUIDs). A library to generate universally unique IDs (UUIDs).
@ -229,7 +246,6 @@ Authors:
%patch10 -p1 %patch10 -p1
%patch11 %patch11
%patch12 %patch12
%patch15 -p1
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch20 -p1 %patch20 -p1
@ -243,7 +259,7 @@ Authors:
%patch33 -p1 %patch33 -p1
%patch34 -p1 %patch34 -p1
%if %{no_command_hiding} %if %{no_command_hiding}
%patch99 %patch99 -p1
%endif %endif
cp %{S:1} po cp %{S:1} po
cp %{SOURCE2} . cp %{SOURCE2} .
@ -262,7 +278,6 @@ patch -p0 -i %{P:13}
--mandir=%{_mandir} --infodir=%{_infodir} --libdir=%{_libdir} \ --mandir=%{_mandir} --infodir=%{_infodir} --libdir=%{_libdir} \
--enable-elf-shlibs \ --enable-elf-shlibs \
--disable-evms \ --disable-evms \
--with-ldopts=-pthread \
CFLAGS="$RPM_OPT_FLAGS -fsigned-char" CFLAGS="$RPM_OPT_FLAGS -fsigned-char"
make make
@ -270,13 +285,16 @@ make
make install install-libs DESTDIR=$RPM_BUILD_ROOT lib=%{_lib} make install install-libs DESTDIR=$RPM_BUILD_ROOT lib=%{_lib}
%{find_lang} %{name} %{find_lang} %{name}
rm $RPM_BUILD_ROOT%{_libdir}/e2initrd_helper rm $RPM_BUILD_ROOT%{_libdir}/e2initrd_helper
mkdir -p $RPM_BUILD_ROOT/var/lib/libuuid/
mkdir -p $RPM_BUILD_ROOT/var/run/uuidd/
# init script for uuidd
mkdir -p $RPM_BUILD_ROOT/etc/init.d/
install -m 744 %{SOURCE3} $RPM_BUILD_ROOT/etc/init.d/uuidd
ln -sf ../../etc/init.d/uuidd $RPM_BUILD_ROOT/usr/sbin/rcuuidd
%check %check
%if !%{no_command_hiding}
# always run make check when e2fsprogs-no_cmd_hiding.patch is fixed!
make check make check
make gcc-wall make gcc-wall
%endif
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -307,12 +325,28 @@ rm -rf $RPM_BUILD_ROOT
%postun -n libblkid1 %postun -n libblkid1
/sbin/ldconfig /sbin/ldconfig
%pre -n uuid-runtime
/usr/sbin/groupadd -r uuidd 2>/dev/null || :
/usr/sbin/useradd -r -g uuidd -c "User for uuidd" \
-d /var/run/uuidd uuidd 2>/dev/null || :
%preun -n uuid-runtime
%{stop_on_removal uuidd}
%post -n uuid-runtime
%run_permissions
%postun -n uuid-runtime
%{restart_on_update uuidd}
%{insserv_cleanup}
%post -n libuuid1 %post -n libuuid1
/sbin/ldconfig /sbin/ldconfig
%postun -n libuuid1 %postun -n libuuid1
/sbin/ldconfig /sbin/ldconfig
# e2fsprogs %verifyscript -n uuid-runtime
%verify_permissions -e /usr/sbin/uuidd
%files -f %{name}.lang %files -f %{name}.lang
%defattr(-, root, root) %defattr(-, root, root)
@ -337,7 +371,6 @@ rm -rf $RPM_BUILD_ROOT
/sbin/findfs /sbin/findfs
/usr/bin/chattr /usr/bin/chattr
/usr/bin/lsattr /usr/bin/lsattr
/usr/bin/uuidgen
/usr/sbin/mklost+found /usr/sbin/mklost+found
/usr/sbin/filefrag /usr/sbin/filefrag
%{_infodir}/libext2fs.info.gz %{_infodir}/libext2fs.info.gz
@ -347,12 +380,10 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man5/e2fsck.conf.5.gz %{_mandir}/man5/e2fsck.conf.5.gz
%{_mandir}/man5/mke2fs.conf.5.gz %{_mandir}/man5/mke2fs.conf.5.gz
%{_mandir}/man8/*.8.gz %{_mandir}/man8/*.8.gz
# dummy devel package
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%doc README.SUSE %doc README.SUSE
# libblkid
%files -n libblkid1 %files -n libblkid1
%defattr(-, root, root) %defattr(-, root, root)
@ -365,7 +396,15 @@ rm -rf $RPM_BUILD_ROOT
/usr/include/blkid /usr/include/blkid
%_libdir/pkgconfig/blkid.pc %_libdir/pkgconfig/blkid.pc
%{_mandir}/man3/libblkid.3.gz %{_mandir}/man3/libblkid.3.gz
# libuuid
%files -n uuid-runtime
%defattr(-, root, root)
/usr/bin/uuidgen
%verify(not mode) %attr(0755,root,root) /usr/sbin/uuidd
%attr(-,uuidd,uuidd) %dir /var/lib/libuuid
%attr(-,uuidd,uuidd) %dir /var/run/uuidd
/etc/init.d/uuidd
/usr/sbin/rcuuidd
%files -n libuuid1 %files -n libuuid1
%defattr(-, root, root) %defattr(-, root, root)
@ -378,7 +417,6 @@ rm -rf $RPM_BUILD_ROOT
/usr/include/uuid /usr/include/uuid
%_libdir/pkgconfig/uuid.pc %_libdir/pkgconfig/uuid.pc
%{_mandir}/man3/uuid* %{_mandir}/man3/uuid*
# libext2fs
%files -n libext2fs2 %files -n libext2fs2
%defattr(-, root, root) %defattr(-, root, root)
@ -395,7 +433,6 @@ rm -rf $RPM_BUILD_ROOT
/usr/include/e2p /usr/include/e2p
%_libdir/pkgconfig/e2p.pc %_libdir/pkgconfig/e2p.pc
%_libdir/pkgconfig/ext2fs.pc %_libdir/pkgconfig/ext2fs.pc
# libcom_err
%files -n libcom_err2 %files -n libcom_err2
%defattr(-, root, root) %defattr(-, root, root)
@ -421,83 +458,135 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man3/com_err.3.gz %{_mandir}/man3/com_err.3.gz
%changelog %changelog
* Mon Nov 26 2007 - mkoenig@suse.de * Wed Jan 16 2008 mkoenig@suse.de
- update to version 1.40.4:
* Fix potential security vulnerability (CVE-2007-5497)
* Fix big-endian byte-swapping bug in ext2fs_swap_inode_full()
* Fix a bug in ext2fs_initialize() which causes mke2fs to fail while
allocating inode tables for some relatively rare odd disk sizes.
* Fix bug in ext2fs_check_desc() which will cause e2fsck to complain
about (valid) filesystems where the inode table extends to the last
block of the block group
* Change e2fsck so it will not complain if a file has blocks reallocated
up to the next multiple of a system's page size
* Change e2fsck so it uses sscanf() instead of atoi() so it non-numeric
arguments are detected as such and the parse error is reported to the
user
* Make the e2fsprogs program more robust so that they will not crash
when opening a corrupt filesystem where s_inode_size is zero.
* Fix e2fsck so that if the superblock is corrupt, but still looks
vaguely like an ext2/3/4 superblock, that it automatically tries to
fall back to the backup superblock, instead of failing with a hard
error
* Fix fsck to ignore /etc/fstab entries for bind mounts
* E2fsck will no longer mark a filesystem as invalid if it has time
errors and the user refuses to fix the problem.
* Enhance blkid's detection of FAT filesystems
* Enhance e2fsck so it will force the backup superblocks to be backed up
if the filesystem is consistent and key constants have been changed
(i.e., by an on-line resize) or by e2fsck in the course of its
operations.
* Enhance the blkid library so it will recognize squashfs filesystems
* Fix e2image so that in raw mode it does not create an image file which
is one byte too large
* Fix heuristics in blkid which could cause a disk without partitions to
be incorrectly skipped when a loopback device is present
* Avoid division by zero error when probing an invalid FAT filesystem in
the blkid library
* Fix sign-extension problem on 64-bit systems in in the com_err
library
* Format control characters and characters with the high eighth bit set
when printing the contents of the blkid cache, to prevent filesystems
with garbage labels from sending escape sequences
* Fix fsck to only treat the '#' character as a comment at the beginning
of the line in /etc/fstab
* Filter out the NEEDS_RECOVERY feature flag when writing out the backup
superblocks
* Improve time-based UUID generation. A new daemon uuidd, is started
automatically by libuuid if necessary
- new subpackage: uuid-runtime
containing uuidd and uuidgen
- removed obsolete patches
e2fsprogs-1.39-uuid_duplicates.patch
e2fsprogs-1.40.2-open_fix.patch
e2fsprogs-1.40-be_swap_fix.patch
* Mon Nov 26 2007 mkoenig@suse.de
- fix build: missing third argument to open - fix build: missing third argument to open
- do not remove buildroot in install section - do not remove buildroot in install section
* Fri Jul 27 2007 - mkoenig@suse.de * Fri Jul 27 2007 mkoenig@suse.de
- fix typo in specfile - fix typo in specfile
* Thu Jul 26 2007 - mkoenig@suse.de * Thu Jul 26 2007 mkoenig@suse.de
- Fix big-endian byte-swapping bug in ext2fs_swap_inode_full() - Fix big-endian byte-swapping bug in ext2fs_swap_inode_full()
e2fsprogs-1.40-be_swap_fix.patch e2fsprogs-1.40-be_swap_fix.patch
* Wed Jul 25 2007 - bk@suse.de * Wed Jul 25 2007 bk@suse.de
- e2fsprogs requires libext2fs2 of the same version number to work - e2fsprogs requires libext2fs2 of the same version number to work
- enable make check and make gcc-wall in %%check (executed last) - enable make check and make gcc-wall in %%check (executed last)
- shut up bogus gcc warning for use of uninitialised variables - shut up bogus gcc warning for use of uninitialised variables
* Wed Jul 25 2007 - mkoenig@suse.de * Wed Jul 25 2007 mkoenig@suse.de
- remove e2fsprogs-blkid_probe_ext4.patch - remove e2fsprogs-blkid_probe_ext4.patch
broken and it is way too early to support broken and it is way too early to support
* Wed Jul 18 2007 - mkoenig@suse.de * Wed Jul 18 2007 mkoenig@suse.de
- update to version 1.40.2 - update to version 1.40.2
bugfix release bugfix release
* Mon Jul 09 2007 - mkoenig@suse.de * Mon Jul 09 2007 mkoenig@suse.de
- update to version 1.40.1: - update to version 1.40.1:
* Bugfix release * Bugfix release
- removed patch (merged upstream) - removed patch (merged upstream)
e2fsprogs-1.39-cleanup.patch e2fsprogs-1.39-cleanup.patch
* Wed Jul 04 2007 - mkoenig@suse.de * Wed Jul 04 2007 mkoenig@suse.de
- update to version 1.40 - update to version 1.40
- branch off libraries: - branch off libraries:
libblkid1 libblkid1
libuuid1 libuuid1
libext2fs2 libext2fs2
- renaming libcom_err to libcom_err2 - renaming libcom_err to libcom_err2
* Tue Jun 19 2007 - mkoenig@suse.de * Tue Jun 19 2007 mkoenig@suse.de
- fix e2fsprogs-1.39-uuid_duplicates.patch [#189640] - fix e2fsprogs-1.39-uuid_duplicates.patch [#189640]
* detach shm segment after use * detach shm segment after use
* set SEM_UNDO for semaphore operations, otherwise we do not * set SEM_UNDO for semaphore operations, otherwise we do not
get a clean state after interruption by a signal get a clean state after interruption by a signal
* Wed Apr 25 2007 - pth@suse.de * Wed Apr 25 2007 pth@suse.de
- Fix German translations. - Fix German translations.
* Wed Apr 11 2007 - mkoenig@suse.de * Wed Apr 11 2007 mkoenig@suse.de
- blkid: fix hfsplus probing to detect HFS+ volumes embedded - blkid: fix hfsplus probing to detect HFS+ volumes embedded
in a HFS volume in a HFS volume
* Wed Apr 04 2007 - mkoenig@suse.de * Wed Apr 04 2007 mkoenig@suse.de
- add Supplements line [FATE#301966] - add Supplements line [FATE#301966]
* Fri Mar 30 2007 - mkoenig@suse.de * Fri Mar 30 2007 mkoenig@suse.de
- update to current hg version from 29-03-2007 - update to current hg version from 29-03-2007
* Fixes a lot of memory leaks and other bugs * Fixes a lot of memory leaks and other bugs
- remove merged patch: - remove merged patch:
e2fsprogs-1.39-check_fs_open-in-dump_unused.patch e2fsprogs-1.39-check_fs_open-in-dump_unused.patch
* Wed Mar 28 2007 - mkoenig@suse.de * Wed Mar 28 2007 mkoenig@suse.de
- blkid: add hfsplus volume detection (FATE#302071) - blkid: add hfsplus volume detection (FATE#302071)
- blkid: add experimental detection of ext4dev (FATE#301897) - blkid: add experimental detection of ext4dev (FATE#301897)
* Thu Jan 25 2007 - mkoenig@suse.de * Thu Jan 25 2007 mkoenig@suse.de
- fix segfault in debugfs when using without open fs [#238140] - fix segfault in debugfs when using without open fs [#238140]
* Mon Jan 22 2007 - mkoenig@suse.de * Mon Jan 22 2007 mkoenig@suse.de
- don't chmod -w headers in compile_et to avoid build - don't chmod -w headers in compile_et to avoid build
problems with some packages problems with some packages
* Fri Jan 19 2007 - mkoenig@suse.de * Fri Jan 19 2007 mkoenig@suse.de
- update to version 1.40-WIP-1114 (FATE#301897) - update to version 1.40-WIP-1114 (FATE#301897)
* support for ext4 * support for ext4
* several bugfixes * several bugfixes
- remove ext2resize from package, because the online resizing - remove ext2resize from package, because the online resizing
functionality has been merged into resize2fs since version 1.39 functionality has been merged into resize2fs since version 1.39
and ext2resize is unmaintained. and ext2resize is unmaintained.
* Tue Dec 19 2006 - meissner@suse.de * Tue Dec 19 2006 meissner@suse.de
- fixed build - fixed build
* Wed Nov 08 2006 - ro@suse.de * Wed Nov 08 2006 ro@suse.de
- provide libcom_err-devel in libcom_err - provide libcom_err-devel in libcom_err
* Thu Oct 19 2006 - mkoenig@suse.de * Thu Oct 19 2006 mkoenig@suse.de
- fix bug in uuid patch - fix bug in uuid patch
* Mon Oct 16 2006 - mkoenig@suse.de * Mon Oct 16 2006 mkoenig@suse.de
- fix build of shared lib - fix build of shared lib
* Thu Oct 12 2006 - mkoenig@suse.de * Thu Oct 12 2006 mkoenig@suse.de
- fix uuid bug [#189640] - fix uuid bug [#189640]
- fix blkid problem with empty FAT labels [#211110] - fix blkid problem with empty FAT labels [#211110]
- fix small typo in resize2fs man page - fix small typo in resize2fs man page
* Tue Sep 26 2006 - mkoenig@suse.de * Tue Sep 26 2006 mkoenig@suse.de
- fix bug in fsck udev/libvolume_id patch [#205671] - fix bug in fsck udev/libvolume_id patch [#205671]
* Wed Sep 20 2006 - mkoenig@suse.de * Wed Sep 20 2006 mkoenig@suse.de
- update to version 1.39: - update to version 1.39:
* Fix 32-bit cleanliness * Fix 32-bit cleanliness
* Change mke2fs to use /etc/mke2fs.conf * Change mke2fs to use /etc/mke2fs.conf
@ -536,185 +625,185 @@ rm -rf $RPM_BUILD_ROOT
* Make the resize inode part of the fs struct * Make the resize inode part of the fs struct
* Add the FL_IOCTL flag * Add the FL_IOCTL flag
* Bugfixes * Bugfixes
* Fri Aug 11 2006 - pth@suse.de * Fri Aug 11 2006 pth@suse.de
- Fix to comply with gettex 0.15. - Fix to comply with gettex 0.15.
- Move ext2resize sources to toplevel directory. - Move ext2resize sources to toplevel directory.
- Fix use of MKINSTALLDIRS. - Fix use of MKINSTALLDIRS.
* Fri Aug 04 2006 - kay.sievers@suse.de * Fri Aug 04 2006 kay.sievers@suse.de
- update libvolume_id integration to match util-linux - update libvolume_id integration to match util-linux
* Fri Jun 16 2006 - ro@suse.de * Fri Jun 16 2006 ro@suse.de
- added libvolume_id-devel to BuildRequires - added libvolume_id-devel to BuildRequires
- updated e2fsprogs-udev.patch to match header rename - updated e2fsprogs-udev.patch to match header rename
* Wed Feb 08 2006 - hare@suse.de * Wed Feb 08 2006 hare@suse.de
- Fix fsck -m (#146606) to really check filesystems. - Fix fsck -m (#146606) to really check filesystems.
* Mon Jan 30 2006 - hvogel@suse.de * Mon Jan 30 2006 hvogel@suse.de
- Document -I inode-size [#145445] - Document -I inode-size [#145445]
* Sun Jan 29 2006 - hvogel@suse.de * Sun Jan 29 2006 hvogel@suse.de
- fix hares patch - fix hares patch
* Fri Jan 27 2006 - hare@suse.de * Fri Jan 27 2006 hare@suse.de
- Add option to not return an error code for mounted - Add option to not return an error code for mounted
filesystems (#145400). filesystems (#145400).
* Wed Jan 25 2006 - mls@suse.de * Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires - converted neededforbuild to BuildRequires
* Fri Jan 20 2006 - hvogel@suse.de * Fri Jan 20 2006 hvogel@suse.de
- Support ext2/ext3 online resize - Support ext2/ext3 online resize
* Mon Dec 12 2005 - hvogel@suse.de * Mon Dec 12 2005 hvogel@suse.de
- remove lib/et/test_cases/imap_err* from the tarball because - remove lib/et/test_cases/imap_err* from the tarball because
they are not distributeable. they are not distributeable.
* Tue Dec 06 2005 - pth@suse.de * Tue Dec 06 2005 pth@suse.de
- remove unnecessary type-punning - remove unnecessary type-punning
- reduce compiler warnings - reduce compiler warnings
* Tue Nov 15 2005 - jblunck@suse.de * Tue Nov 15 2005 jblunck@suse.de
- added close.patch provided by Ted Tso (IBM) to fix bug #132708 - added close.patch provided by Ted Tso (IBM) to fix bug #132708
* Mon Nov 14 2005 - hare@suse.de * Mon Nov 14 2005 hare@suse.de
- Use devt when comparing devices - Use devt when comparing devices
- fsck: Use information provided by udev for detecting devices - fsck: Use information provided by udev for detecting devices
* Wed Oct 05 2005 - hvogel@suse.de * Wed Oct 05 2005 hvogel@suse.de
- fix too few arguments to a *printf function - fix too few arguments to a *printf function
- require libcom_err on e2fsprogs-devel - require libcom_err on e2fsprogs-devel
* Fri Sep 09 2005 - hvogel@suse.de * Fri Sep 09 2005 hvogel@suse.de
- add gross hack to avoid divide by zero in probe_reiserfs - add gross hack to avoid divide by zero in probe_reiserfs
[#115827] [#115827]
* Mon Aug 08 2005 - hvogel@suse.de * Mon Aug 08 2005 hvogel@suse.de
- added environment variable BLKID_SKIP_CHECK_MDRAID to work around - added environment variable BLKID_SKIP_CHECK_MDRAID to work around
broken software raid detection [Bug #100530] broken software raid detection [Bug #100530]
* Tue Jul 05 2005 - hvogel@suse.de * Tue Jul 05 2005 hvogel@suse.de
- update to version 1.38 - update to version 1.38
- mt reworked his patches a bit. See Bug #66534 - mt reworked his patches a bit. See Bug #66534
* Thu Jun 23 2005 - hvogel@suse.de * Thu Jun 23 2005 hvogel@suse.de
- call ldconfig in post/postun - call ldconfig in post/postun
- add version to devel package dependencie - add version to devel package dependencie
- readd missing patch (7) - readd missing patch (7)
* Thu Apr 28 2005 - hvogel@suse.de * Thu Apr 28 2005 hvogel@suse.de
- update to version 1.37 - update to version 1.37
- mt reworked one libcom_err patch a bit to provide more - mt reworked one libcom_err patch a bit to provide more
meaningfull error handling meaningfull error handling
- fix retuen value in inode.c - fix retuen value in inode.c
* Thu Mar 31 2005 - hvogel@suse.de * Thu Mar 31 2005 hvogel@suse.de
- split libcom_err to a subpackage - split libcom_err to a subpackage
- add mutex synchronization to e2fsprogs/lib/et - add mutex synchronization to e2fsprogs/lib/et
- removed usage of a static buffer in error_message() - removed usage of a static buffer in error_message()
- disabled init_error_table function - disabled init_error_table function
- disabled build of unused e2fsck.static - disabled build of unused e2fsck.static
* Fri Mar 18 2005 - hvogel@suse.de * Fri Mar 18 2005 hvogel@suse.de
- fix endian unsafeness in getopt (#73855) - fix endian unsafeness in getopt (#73855)
* Tue Feb 08 2005 - hvogel@suse.de * Tue Feb 08 2005 hvogel@suse.de
- Update to 1.36 final - Update to 1.36 final
* Tue Aug 10 2004 - pth@suse.de * Tue Aug 10 2004 pth@suse.de
- Update to 1.35 RC5 - Update to 1.35 RC5
* Wed Mar 17 2004 - pth@suse.de * Wed Mar 17 2004 pth@suse.de
- Don't build the EVMS plugin because it's out of date for - Don't build the EVMS plugin because it's out of date for
EVMS in kernel 2.6. EVMS in kernel 2.6.
* Thu Mar 04 2004 - pth@suse.de * Thu Mar 04 2004 pth@suse.de
- Add patch from Olaf Hering that makes fsck read a different - Add patch from Olaf Hering that makes fsck read a different
blkid file via BLKID_FILE environment var (#35156) blkid file via BLKID_FILE environment var (#35156)
* Thu Feb 19 2004 - kukuk@suse.de * Thu Feb 19 2004 kukuk@suse.de
- Remove obsolete recode call - Remove obsolete recode call
* Mon Jan 12 2004 - ro@suse.de * Mon Jan 12 2004 ro@suse.de
- removed run_ldconfig again - removed run_ldconfig again
* Sat Jan 10 2004 - adrian@suse.de * Sat Jan 10 2004 adrian@suse.de
- add %%run_ldconfig - add %%run_ldconfig
* Thu Oct 02 2003 - pthomas@suse.de * Thu Oct 02 2003 pthomas@suse.de
- Add patch from Kurt Garloff to make e2fsprogs compile - Add patch from Kurt Garloff to make e2fsprogs compile
with latest kernel headers (SCSI_BLK_MAJOR undefined). with latest kernel headers (SCSI_BLK_MAJOR undefined).
* Mon Sep 15 2003 - pthomas@suse.de * Mon Sep 15 2003 pthomas@suse.de
- Fix czech message catalog which has been transformed twice - Fix czech message catalog which has been transformed twice
from latin2 to utf-8 and add an iconv call to the spec file from latin2 to utf-8 and add an iconv call to the spec file
that will make building fail if the file is corrected upstream. that will make building fail if the file is corrected upstream.
* Sat Aug 30 2003 - agruen@suse.de * Sat Aug 30 2003 agruen@suse.de
- Fix an endianness bug in ext2fs_swap_inode: Fast symlinks that - Fix an endianness bug in ext2fs_swap_inode: Fast symlinks that
have extended attributes are acidentally byte swapped on have extended attributes are acidentally byte swapped on
big-endian machines. big-endian machines.
* Fri Aug 01 2003 - pthomas@suse.de * Fri Aug 01 2003 pthomas@suse.de
- Apply patch from Ted T'so for badblocks. - Apply patch from Ted T'so for badblocks.
* Thu Jul 31 2003 - pthomas@suse.de * Thu Jul 31 2003 pthomas@suse.de
- Update to 1.34. - Update to 1.34.
- Various fixes to libcom_err to make it really compatible - Various fixes to libcom_err to make it really compatible
to the heimdal version. to the heimdal version.
- Fix int<->pointer casts. - Fix int<->pointer casts.
- Fix places that may break strict aliasing. - Fix places that may break strict aliasing.
* Fri Jun 20 2003 - ro@suse.de * Fri Jun 20 2003 ro@suse.de
- added directory to filelist - added directory to filelist
* Wed May 14 2003 - pthomas@suse.de * Wed May 14 2003 pthomas@suse.de
- Use %%defattr - Use %%defattr
- Include all installed files. - Include all installed files.
* Tue Apr 29 2003 - mfabian@suse.de * Tue Apr 29 2003 mfabian@suse.de
- add libblkid.so* and libblkid.a to file lists - add libblkid.so* and libblkid.a to file lists
* Thu Apr 24 2003 - pthomas@suse.de * Thu Apr 24 2003 pthomas@suse.de
- Update to 1.33 and adapt patches. - Update to 1.33 and adapt patches.
- Add missing headers where necessary. - Add missing headers where necessary.
* Thu Apr 24 2003 - ro@suse.de * Thu Apr 24 2003 ro@suse.de
- fix install_info --delete call and move from preun to postun - fix install_info --delete call and move from preun to postun
* Fri Feb 07 2003 - ro@suse.de * Fri Feb 07 2003 ro@suse.de
- added install_info macros - added install_info macros
* Tue Oct 01 2002 - garloff@suse.de * Tue Oct 01 2002 garloff@suse.de
- Fix segfault in display of real device in presence of volume - Fix segfault in display of real device in presence of volume
name. #20422 name. #20422
* Tue Sep 03 2002 - mls@suse.de * Tue Sep 03 2002 mls@suse.de
- remove duplicate evms scan (already included in 1.28) - remove duplicate evms scan (already included in 1.28)
- fix volume group scan bug - fix volume group scan bug
* Mon Sep 02 2002 - agruen@suse.de * Mon Sep 02 2002 agruen@suse.de
- Update to 1.28. Includes very minor fixes in htree, which we have - Update to 1.28. Includes very minor fixes in htree, which we have
disabled anyway, one fix that we had in a separate patch, and disabled anyway, one fix that we had in a separate patch, and
has additional release notes. has additional release notes.
* Mon Aug 19 2002 - agruen@suse.de * Mon Aug 19 2002 agruen@suse.de
- Update to 1.28-WIP-0817, which includes Extended Attribute - Update to 1.28-WIP-0817, which includes Extended Attribute
and several smaller fixes. We disable htree support and don't and several smaller fixes. We disable htree support and don't
install the evms library for now. install the evms library for now.
- Remove `make gcc-wall' for now (as it does a `make clean' in - Remove `make gcc-wall' for now (as it does a `make clean' in
doc/). doc/).
* Thu Aug 15 2002 - mls@suse.de * Thu Aug 15 2002 mls@suse.de
- support jfs, reiserfs, evms in label/uuid scan (code stolen - support jfs, reiserfs, evms in label/uuid scan (code stolen
from util-linux:mount) from util-linux:mount)
* Sun Jul 28 2002 - kukuk@suse.de * Sun Jul 28 2002 kukuk@suse.de
- Remove unused tetex from neededforbuild - Remove unused tetex from neededforbuild
* Fri Jul 19 2002 - olh@suse.de * Fri Jul 19 2002 olh@suse.de
- use a better method for finding missed filelist entries - use a better method for finding missed filelist entries
* Fri Apr 12 2002 - sf@suse.de * Fri Apr 12 2002 sf@suse.de
- added %%{_libdir} - added %%{_libdir}
- added fix for lib/lib64 - added fix for lib/lib64
* Thu Mar 28 2002 - bk@suse.de * Thu Mar 28 2002 bk@suse.de
- fix man pages, filelist and add check for missing files in packs - fix man pages, filelist and add check for missing files in packs
* Wed Mar 27 2002 - bk@suse.de * Wed Mar 27 2002 bk@suse.de
- Update to 1.27, fixes resource limit problem for other archs and - Update to 1.27, fixes resource limit problem for other archs and
merges many patches merges many patches
* Thu Mar 07 2002 - pthomas@suse.de * Thu Mar 07 2002 pthomas@suse.de
- Add patch from Ted T'so to keep e2fsck from dumping - Add patch from Ted T'so to keep e2fsck from dumping
core when the journal inode is missing. core when the journal inode is missing.
* Mon Mar 04 2002 - pthomas@suse.de * Mon Mar 04 2002 pthomas@suse.de
- Fix implicit function declarations and some other gcc warnings. - Fix implicit function declarations and some other gcc warnings.
- Include patch from Kurt Garloff to make e2fsck display the - Include patch from Kurt Garloff to make e2fsck display the
device name in addition to the volume label. Adapt it to 1.26. device name in addition to the volume label. Adapt it to 1.26.
- Adapt BSD_disklables.diff to new code. - Adapt BSD_disklables.diff to new code.
- Set LC_CTYPE in addition to LC_MESSAGES. - Set LC_CTYPE in addition to LC_MESSAGES.
- Repack with bzip2. - Repack with bzip2.
* Fri Mar 01 2002 - bk@suse.de * Fri Mar 01 2002 bk@suse.de
- Update to 1.26. This release has a number of critical bug - Update to 1.26. This release has a number of critical bug
fixes over the previous release, version 1.25: fixes over the previous release, version 1.25:
* Fri Feb 15 2002 - pthomas@suse.de * Fri Feb 15 2002 pthomas@suse.de
- Use %%{_lib} and %%{_libdir}. - Use %%{_lib} and %%{_libdir}.
* Wed Feb 13 2002 - pthomas@suse.de * Wed Feb 13 2002 pthomas@suse.de
- Make heimdal-devel conflict e2fsprogs-devel. - Make heimdal-devel conflict e2fsprogs-devel.
Temporary solution for bug #13145 Temporary solution for bug #13145
* Thu Dec 13 2001 - pthomas@suse.de * Thu Dec 13 2001 pthomas@suse.de
- Add mkfs.ext2.8 because mkfs.8 from util-linux references it. - Add mkfs.ext2.8 because mkfs.8 from util-linux references it.
Fixes bug #12613. Fixes bug #12613.
* Fri Nov 23 2001 - pthomas@suse.de * Fri Nov 23 2001 pthomas@suse.de
- Add accidently left out e2image to file list. Fixes bug - Add accidently left out e2image to file list. Fixes bug
[#12009] [#12009]
* Wed Oct 31 2001 - ro@suse.de * Wed Oct 31 2001 ro@suse.de
- fix for axp: should malloc buffer _before_ use - fix for axp: should malloc buffer _before_ use
* Wed Oct 10 2001 - pthomas@suse.de * Wed Oct 10 2001 pthomas@suse.de
- Update to 1.25. - Update to 1.25.
- Remove patches not needed anymore. - Remove patches not needed anymore.
- Change mke2fs to output warnings to stderr not stdout. - Change mke2fs to output warnings to stderr not stdout.
- Repack as bz2. - Repack as bz2.
* Mon Sep 24 2001 - olh@suse.de * Mon Sep 24 2001 olh@suse.de
- replace ext2fs_d - replace ext2fs_d
* Fri Sep 21 2001 - pthomas@suse.de * Fri Sep 21 2001 pthomas@suse.de
- Add patch for mke2fs from 1.25 as that bug seems to be the - Add patch for mke2fs from 1.25 as that bug seems to be the
reason for the mk_initrd warning. reason for the mk_initrd warning.
* Wed Sep 12 2001 - pthomas@suse.de * Wed Sep 12 2001 pthomas@suse.de
- Update to 1.24a: - Update to 1.24a:
- Fix brown-paper bug in mke2fs which caused it to segfault. - Fix brown-paper bug in mke2fs which caused it to segfault.
- Revert the BLKGETSIZE64 support as this ioctl has been used - Revert the BLKGETSIZE64 support as this ioctl has been used
@ -729,84 +818,84 @@ rm -rf $RPM_BUILD_ROOT
specifiers when specifying the external journal device. specifiers when specifying the external journal device.
tune2fs will also search devices looking for the external tune2fs will also search devices looking for the external
journal device when removing. journal device when removing.
* Fri Aug 17 2001 - ro@suse.de * Fri Aug 17 2001 ro@suse.de
- update to 1.23 to enable external journals on ext3 - update to 1.23 to enable external journals on ext3
* Wed Aug 15 2001 - pthomas@suse.de * Wed Aug 15 2001 pthomas@suse.de
- Update to 1.22. - Update to 1.22.
- Drop fsck Patch as code changed. - Drop fsck Patch as code changed.
- Use LD_LIBRARY_PATH to run test programs. - Use LD_LIBRARY_PATH to run test programs.
* Fri Jun 08 2001 - pthomas@suse.de * Fri Jun 08 2001 pthomas@suse.de
- Remove incorrect use of AC_REQUIRE (fails with autoconf 2.5) - Remove incorrect use of AC_REQUIRE (fails with autoconf 2.5)
- Recompress tarball with bzip2. - Recompress tarball with bzip2.
* Thu Jan 18 2001 - schwab@suse.de * Thu Jan 18 2001 schwab@suse.de
- Add Obsoletes: ext2fs_d and Requires: e2fsprogs to devel - Add Obsoletes: ext2fs_d and Requires: e2fsprogs to devel
subpackage. subpackage.
* Mon Nov 06 2000 - pthomas@suse.de * Mon Nov 06 2000 pthomas@suse.de
- use _mandir and _infodir more consistently in spec file. - use _mandir and _infodir more consistently in spec file.
* Sun Nov 05 2000 - ro@suse.de * Sun Nov 05 2000 ro@suse.de
- renamed packages to e2fsprogs/e2fsprogs-devel - renamed packages to e2fsprogs/e2fsprogs-devel
* Fri Jun 09 2000 - kasal@suse.cz * Fri Jun 09 2000 kasal@suse.cz
- Build dynamic libraries. Partition Surprise requires them. - Build dynamic libraries. Partition Surprise requires them.
- Make /usr/lib/*.so symlinks relative. - Make /usr/lib/*.so symlinks relative.
* Thu Mar 23 2000 - kukuk@suse.de * Thu Mar 23 2000 kukuk@suse.de
- Don't erase BSD labels on Alpha - Don't erase BSD labels on Alpha
- Add Y2K fix to debugfs - Add Y2K fix to debugfs
* Wed Mar 22 2000 - kukuk@suse.de * Wed Mar 22 2000 kukuk@suse.de
- Fix ifdefs for gcc 2.95.2 - Fix ifdefs for gcc 2.95.2
* Tue Feb 22 2000 - garloff@suse.de * Tue Feb 22 2000 garloff@suse.de
- Bugfix for the change ... - Bugfix for the change ...
- ... and change version no of fsck to 1.18a to reflect the change. - ... and change version no of fsck to 1.18a to reflect the change.
* Sun Feb 20 2000 - garloff@suse.de * Sun Feb 20 2000 garloff@suse.de
- Patch to be more clever WRT to basenames (used to find out wheter - Patch to be more clever WRT to basenames (used to find out wheter
a fsck for this device is already running). a fsck for this device is already running).
- Give better message in case fsck fails, to tell the user what to - Give better message in case fsck fails, to tell the user what to
do. (e2fsck only displays the label, nowadays :-( ) do. (e2fsck only displays the label, nowadays :-( )
* Thu Feb 10 2000 - kukuk@suse.de * Thu Feb 10 2000 kukuk@suse.de
- Use autoconf to create new configure - Use autoconf to create new configure
* Wed Jan 19 2000 - ro@suse.de * Wed Jan 19 2000 ro@suse.de
- man,info -> /usr/share - man,info -> /usr/share
* Mon Jan 17 2000 - ro@suse.de * Mon Jan 17 2000 ro@suse.de
- fixed to build on kernels >= 2.3.39 - fixed to build on kernels >= 2.3.39
* Sat Nov 13 1999 - kukuk@suse.de * Sat Nov 13 1999 kukuk@suse.de
- Update to e2fsprogs 1.18 - Update to e2fsprogs 1.18
- Create new sub-package ext2fs_d which includes libs and headers - Create new sub-package ext2fs_d which includes libs and headers
* Mon Nov 08 1999 - ro@suse.de * Mon Nov 08 1999 ro@suse.de
-fixed coredump in e2fsck -fixed coredump in e2fsck
* Fri Oct 29 1999 - ro@suse.de * Fri Oct 29 1999 ro@suse.de
-e2fsprogs: 1.17 vital bugfix in e2fsck -e2fsprogs: 1.17 vital bugfix in e2fsck
* Sun Oct 24 1999 - ro@suse.de * Sun Oct 24 1999 ro@suse.de
- e2fsprogs: update to 1.16, sparse_super is default on when - e2fsprogs: update to 1.16, sparse_super is default on when
called on a > 2.2 kernel, can be overridden with -O none called on a > 2.2 kernel, can be overridden with -O none
* Fri Oct 15 1999 - garloff@suse.de * Fri Oct 15 1999 garloff@suse.de
- Disabled flushb again. (Moved to ddrescue.) - Disabled flushb again. (Moved to ddrescue.)
* Mon Sep 13 1999 - bs@suse.de * Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec. - ran old prepare_spec on spec file to switch to new prepare_spec.
* Wed Sep 01 1999 - ro@suse.de * Wed Sep 01 1999 ro@suse.de
- mke2fs: sparse superblocks default back to "off" - mke2fs: sparse superblocks default back to "off"
* Tue Aug 31 1999 - ro@suse.de * Tue Aug 31 1999 ro@suse.de
- update to 1.15 - update to 1.15
- cleanup diff and specfile - cleanup diff and specfile
* Sun Jul 18 1999 - garloff@suse.de * Sun Jul 18 1999 garloff@suse.de
- Enabled flushb compilation - Enabled flushb compilation
* Sat Jun 26 1999 - kukuk@suse.de * Sat Jun 26 1999 kukuk@suse.de
- Add fix for fsck core dump from beta list - Add fix for fsck core dump from beta list
* Tue Mar 16 1999 - ro@suse.de * Tue Mar 16 1999 ro@suse.de
- fixed configure call - fixed configure call
* Fri Mar 12 1999 - ro@suse.de * Fri Mar 12 1999 ro@suse.de
- update to 1.14 - update to 1.14
* Thu Oct 29 1998 - ro@suse.de * Thu Oct 29 1998 ro@suse.de
- respect change in 2.1.126 SCSI_DISK_MAJOR - respect change in 2.1.126 SCSI_DISK_MAJOR
* Tue Sep 01 1998 - ro@suse.de * Tue Sep 01 1998 ro@suse.de
- update to 1.12 - update to 1.12
* Sat Apr 26 1997 - florian@suse.de * Sat Apr 26 1997 florian@suse.de
- update to new version 1.10 - update to new version 1.10
* Sun Apr 13 1997 - florian@suse.de * Sun Apr 13 1997 florian@suse.de
- update to new version 1.08 - update to new version 1.08
- do not include ext2 libs and include files as they are only used by dump - do not include ext2 libs and include files as they are only used by dump
* Thu Jan 02 1997 - florian@suse.de * Thu Jan 02 1997 florian@suse.de
- update to new version 1.06 - update to new version 1.06
* Thu Jan 02 1997 - florian@suse.de * Thu Jan 02 1997 florian@suse.de
- update to newer version - update to newer version
- use now static libs instead of 4 small shared libs - use now static libs instead of 4 small shared libs
* Thu Jan 02 1997 - florian@suse.de * Thu Jan 02 1997 florian@suse.de
update to version 1.0.4 update to version 1.0.4

View File

@ -1,7 +1,7 @@
Index: e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/et/com_err.pc.in Index: e2fsprogs-1.40.4/lib/et/com_err.pc.in
=================================================================== ===================================================================
--- e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329.orig/lib/et/com_err.pc.in --- e2fsprogs-1.40.4.orig/lib/et/com_err.pc.in
+++ e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/et/com_err.pc.in +++ e2fsprogs-1.40.4/lib/et/com_err.pc.in
@@ -7,5 +7,5 @@ Name: com_err @@ -7,5 +7,5 @@ Name: com_err
Description: Common error description library Description: Common error description library
Version: @E2FSPROGS_VERSION@ Version: @E2FSPROGS_VERSION@
@ -10,10 +10,10 @@ Index: e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/et/com_err.pc.in
-Libs: -L${libdir} -lcom_err -Libs: -L${libdir} -lcom_err
+Cflags: -I${includedir} -pthread +Cflags: -I${includedir} -pthread
+Libs: -L${libdir} -lcom_err -pthread +Libs: -L${libdir} -lcom_err -pthread
Index: e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/et/error_message.c Index: e2fsprogs-1.40.4/lib/et/error_message.c
=================================================================== ===================================================================
--- e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329.orig/lib/et/error_message.c --- e2fsprogs-1.40.4.orig/lib/et/error_message.c
+++ e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/et/error_message.c +++ e2fsprogs-1.40.4/lib/et/error_message.c
@@ -20,6 +20,7 @@ @@ -20,6 +20,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
@ -22,7 +22,7 @@ Index: e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/et/error_message.c
#ifdef HAVE_SYS_PRCTL_H #ifdef HAVE_SYS_PRCTL_H
#include <sys/prctl.h> #include <sys/prctl.h>
#else #else
@@ -35,6 +36,17 @@ @@ -41,6 +42,17 @@
struct et_list * _et_list = (struct et_list *) NULL; struct et_list * _et_list = (struct et_list *) NULL;
struct et_list * _et_dynamic_list = (struct et_list *) NULL; struct et_list * _et_dynamic_list = (struct et_list *) NULL;
@ -40,13 +40,13 @@ Index: e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/et/error_message.c
const char * error_message (errcode_t code) const char * error_message (errcode_t code)
{ {
@@ -59,22 +71,32 @@ const char * error_message (errcode_t co @@ -66,22 +78,32 @@ const char * error_message (errcode_t co
goto oops; goto oops;
#endif #endif
} }
+ et_list_lock(); + et_list_lock();
for (et = _et_list; et; et = et->next) { for (et = _et_list; et; et = et->next) {
if (et->table->base == table_num) { if ((et->table->base & 0xffffffL) == (table_num & 0xffffffL)) {
/* This is the right table */ /* This is the right table */
- if (et->table->n_msgs <= offset) - if (et->table->n_msgs <= offset)
- goto oops; - goto oops;
@ -61,7 +61,7 @@ Index: e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/et/error_message.c
} }
} }
for (et = _et_dynamic_list; et; et = et->next) { for (et = _et_dynamic_list; et; et = et->next) {
if (et->table->base == table_num) { if ((et->table->base & 0xffffffL) == (table_num & 0xffffffL)) {
/* This is the right table */ /* This is the right table */
- if (et->table->n_msgs <= offset) - if (et->table->n_msgs <= offset)
- goto oops; - goto oops;
@ -79,7 +79,7 @@ Index: e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/et/error_message.c
oops: oops:
return "Unknown code"; return "Unknown code";
} }
@@ -143,6 +165,9 @@ errcode_t add_error_table(const struct e @@ -150,6 +172,9 @@ errcode_t add_error_table(const struct e
if (!(el = (struct et_list *) malloc(sizeof(struct et_list)))) if (!(el = (struct et_list *) malloc(sizeof(struct et_list))))
return ENOMEM; return ENOMEM;
@ -89,7 +89,7 @@ Index: e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/et/error_message.c
el->table = et; el->table = et;
el->next = _et_dynamic_list; el->next = _et_dynamic_list;
_et_dynamic_list = el; _et_dynamic_list = el;
@@ -153,6 +178,7 @@ errcode_t add_error_table(const struct e @@ -160,6 +185,7 @@ errcode_t add_error_table(const struct e
error_table_name(et->base), error_table_name(et->base),
(const void *) et); (const void *) et);
@ -97,7 +97,7 @@ Index: e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/et/error_message.c
return 0; return 0;
} }
@@ -161,9 +187,13 @@ errcode_t add_error_table(const struct e @@ -168,9 +194,13 @@ errcode_t add_error_table(const struct e
*/ */
errcode_t remove_error_table(const struct error_table * et) errcode_t remove_error_table(const struct error_table * et)
{ {
@ -112,7 +112,7 @@ Index: e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/et/error_message.c
init_debug(); init_debug();
while (el) { while (el) {
if (el->table->base == et->base) { if (el->table->base == et->base) {
@@ -177,6 +207,7 @@ errcode_t remove_error_table(const struc @@ -184,6 +214,7 @@ errcode_t remove_error_table(const struc
"remove_error_table: %s (0x%p)\n", "remove_error_table: %s (0x%p)\n",
error_table_name(et->base), error_table_name(et->base),
(const void *) et); (const void *) et);
@ -120,7 +120,7 @@ Index: e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/et/error_message.c
return 0; return 0;
} }
el2 = el; el2 = el;
@@ -186,6 +217,7 @@ errcode_t remove_error_table(const struc @@ -193,6 +224,7 @@ errcode_t remove_error_table(const struc
fprintf(debug_f, "remove_error_table FAILED: %s (0x%p)\n", fprintf(debug_f, "remove_error_table FAILED: %s (0x%p)\n",
error_table_name(et->base), error_table_name(et->base),
(const void *) et); (const void *) et);
@ -128,10 +128,10 @@ Index: e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/et/error_message.c
return ENOENT; return ENOENT;
} }
Index: e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/et/error_table.h Index: e2fsprogs-1.40.4/lib/et/error_table.h
=================================================================== ===================================================================
--- e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329.orig/lib/et/error_table.h --- e2fsprogs-1.40.4.orig/lib/et/error_table.h
+++ e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/et/error_table.h +++ e2fsprogs-1.40.4/lib/et/error_table.h
@@ -19,6 +19,8 @@ struct et_list { @@ -19,6 +19,8 @@ struct et_list {
const struct error_table *table; const struct error_table *table;
}; };
@ -141,10 +141,10 @@ Index: e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/et/error_table.h
#define ERRCODE_RANGE 8 /* # of bits to shift table number */ #define ERRCODE_RANGE 8 /* # of bits to shift table number */
#define BITS_PER_CHAR 6 /* # bits to shift per character in name */ #define BITS_PER_CHAR 6 /* # bits to shift per character in name */
Index: e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/et/et_c.awk Index: e2fsprogs-1.40.4/lib/et/et_c.awk
=================================================================== ===================================================================
--- e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329.orig/lib/et/et_c.awk --- e2fsprogs-1.40.4.orig/lib/et/et_c.awk
+++ e2fsprogs-1.39+1.40_WIP_20061114+PATCH20070329/lib/et/et_c.awk +++ e2fsprogs-1.40.4/lib/et/et_c.awk
@@ -225,6 +225,8 @@ END { @@ -225,6 +225,8 @@ END {
print " const struct error_table * table;" > outfile print " const struct error_table * table;" > outfile
print "};" > outfile print "};" > outfile

78
uuidd.rc Normal file
View File

@ -0,0 +1,78 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides: uuidd
# Required-Start: $time $local_fs $remote_fs
# Should-Start:
# Required-Stop: $time $local_fs $remote_fs
# Should-Stop:
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-Description: UUID generating daemon
# Description: UUID generating daemon
### END INIT INFO
#
# Check for missing binaries (stale symlinks should not happen)
# Note: Special treatment of stop for LSB conformance
UUIDD_BIN=/usr/sbin/uuidd
test -x $UUIDD_BIN || { echo "$UUIDD_BIN not installed";
if [ "$1" = "stop" ]; then exit 0;
else exit 5; fi; }
. /etc/rc.status
# Reset status of this service
rc_reset
case "$1" in
start)
echo -n "Starting uuidd "
/sbin/startproc $UUIDD_BIN
rc_status -v
;;
stop)
echo -n "Shutting down uuidd "
/sbin/killproc -TERM $UUIDD_BIN
rc_status -v
;;
try-restart|condrestart|force-reload)
## Do a restart only if the service was active before.
## Note: try-restart is now part of LSB (as of 1.9).
## RH has a similar command named condrestart.
if test "$1" = "condrestart"; then
echo "${attn} Use try-restart ${done}(LSB)${attn} rather than condrestart ${warn}(RH)${norm}"
fi
$0 status
if test $? = 0; then
$0 restart
else
rc_reset # Not running is not a failure.
fi
# Remember status and be quiet
rc_status
;;
restart)
$0 stop
$0 start
rc_status
;;
reload)
rc_failed 3
rc_status -v
;;
status)
echo -n "Checking for service uuidd "
/sbin/checkproc $UUIDD_BIN
rc_status -v
;;
*)
echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
exit 1
;;
esac
rc_exit