mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-11-27 20:14:46 +08:00
ChangeLog, unix.c:
unix.c (main): Reset the context before calling ext2fs_close(), to avoid referencing already freed memory. ChangeLog, llseek.c: llseek.c (ext2fs_llseek): Change ext2fs_llseek() in the non-Linux case to use EINVAL by default, unless it isn't defined, in which case we use EXT2_ET_INVALID_ARGUMENT instead. ChangeLog, mk_cmds.sh.in: mk_cmds.sh.in: Fixed portability bug in shell script; we were depending on a bash'ism. ChangeLog, uuid.c: uuid.c: Use asm/types.h instead of linux/types.h, to be consistent with other locations where we've had to do this to work around glibc.
This commit is contained in:
parent
04c5b028a9
commit
73f17cfc39
@ -1,3 +1,8 @@
|
||||
Mon Jan 4 02:28:59 1999 Theodore Y. Ts'o <tytso@mit.edu>
|
||||
|
||||
* unix.c (main): Reset the context before calling ext2fs_close(),
|
||||
to avoid referencing already freed memory.
|
||||
|
||||
1998-12-15 Theodore Ts'o <tytso@rsts-11.mit.edu>
|
||||
|
||||
* Release of E2fsprogs 1.13
|
||||
|
@ -646,7 +646,6 @@ restart:
|
||||
|
||||
run_result = e2fsck_run(ctx);
|
||||
if (run_result == E2F_FLAG_RESTART) {
|
||||
ext2fs_close(fs);
|
||||
printf("Restarting e2fsck from the beginning...\n");
|
||||
retval = e2fsck_reset_context(ctx);
|
||||
if (retval) {
|
||||
@ -654,6 +653,7 @@ restart:
|
||||
"while resetting context");
|
||||
exit(1);
|
||||
}
|
||||
ext2fs_close(fs);
|
||||
goto restart;
|
||||
}
|
||||
if (run_result & E2F_FLAG_SIGNAL_MASK)
|
||||
|
@ -1,3 +1,9 @@
|
||||
Mon Jan 4 02:34:53 1999 Theodore Y. Ts'o <tytso@mit.edu>
|
||||
|
||||
* uuid.c: Use asm/types.h instead of linux/types.h, to be
|
||||
consistent with other locations where we've had to do this
|
||||
to work around glibc.
|
||||
|
||||
1998-12-15 Theodore Ts'o <tytso@rsts-11.mit.edu>
|
||||
|
||||
* Release of E2fsprogs 1.13
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <linux/types.h>
|
||||
#include <asm/types.h>
|
||||
|
||||
#include "e2p.h"
|
||||
|
||||
|
@ -1,3 +1,10 @@
|
||||
Mon Jan 4 02:32:09 1999 Theodore Y. Ts'o <tytso@mit.edu>
|
||||
|
||||
* llseek.c (ext2fs_llseek): Change ext2fs_llseek() in the
|
||||
non-Linux case to use EINVAL by default, unless it isn't
|
||||
defined, in which case we use EXT2_ET_INVALID_ARGUMENT
|
||||
instead.
|
||||
|
||||
1998-12-15 Theodore Ts'o <tytso@rsts-11.mit.edu>
|
||||
|
||||
* Release of E2fsprogs 1.13
|
||||
|
@ -109,11 +109,15 @@ ext2_loff_t ext2fs_llseek (int fd, ext2_loff_t offset, int origin)
|
||||
|
||||
#else /* !linux */
|
||||
|
||||
#ifndef EINVAL
|
||||
#define EINVAL EXT2_ET_INVALID_ARGUMENT
|
||||
#endif
|
||||
|
||||
ext2_loff_t ext2fs_llseek (int fd, ext2_loff_t offset, int origin)
|
||||
{
|
||||
if ((sizeof(off_t) < sizeof(ext2_loff_t)) &&
|
||||
(offset >= ((ext2_loff_t) 1 << ((sizeof(off_t)*8) -1)))) {
|
||||
errno = EXT2_ET_INVALID_ARGUMENT;
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
return lseek (fd, (off_t) offset, origin);
|
||||
|
@ -1,3 +1,8 @@
|
||||
Mon Jan 4 00:05:14 1999 Theodore Y. Ts'o <tytso@mit.edu>
|
||||
|
||||
* mk_cmds.sh.in (TMP): Fixed portability bug in shell script; we
|
||||
were depending on a bash'ism.
|
||||
|
||||
1998-12-15 Theodore Ts'o <tytso@rsts-11.mit.edu>
|
||||
|
||||
* Release of E2fsprogs 1.13
|
||||
|
@ -26,7 +26,7 @@ ROOT=`echo $1 | sed -e s/.ct$//`
|
||||
BASE=`basename $ROOT`
|
||||
TMP=ct$$.c
|
||||
|
||||
if ! test -f $FILE ; then
|
||||
if test ! -f $FILE ; then
|
||||
echo "$FILE: File not found"
|
||||
exit 1;
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user