+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
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) {
"while resetting context");
exit(1);
}
+ ext2fs_close(fs);
goto restart;
}
if (run_result & E2F_FLAG_SIGNAL_MASK)
+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
#include <stdio.h>
#include <string.h>
-#include <linux/types.h>
+#include <asm/types.h>
#include "e2p.h"
+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
#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);
+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
BASE=`basename $ROOT`
TMP=ct$$.c
-if ! test -f $FILE ; then
+if test ! -f $FILE ; then
echo "$FILE: File not found"
exit 1;
fi