Many files:
  Update version information in ChangeLogs, release notes,
  documentation, etc.  for release of version 1.13.

diff --git a/ChangeLog b/ChangeLog
index 7df042d..852cecd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+1998-12-15  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+	* Release of E2fsprogs 1.13
+
 1998-11-27  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
 	* configure.in: Add paths.h to header files for which we search.
diff --git a/INSTALL.elfbin b/INSTALL.elfbin
index fab2858..2d592a5 100644
--- a/INSTALL.elfbin
+++ b/INSTALL.elfbin
@@ -1,12 +1,14 @@
 NOTE: This is the ELF version of the binary distribution.  If you have
-a DLL system, please compile e2fsprogs from sources yourself.
+a DLL system, please compile e2fsprogs from sources yourself.  (In
+fact, in general you're better off compiling e2fsprogs from sources
+instead of using precompiled binaries.)
 
 	To install the binary distribution of the second extended file
 system management programs, just follow the steps:
 
 1) Install this tar file using the following command:
 
-	gunzip < e2fsprogs-1.09-elfbin.tar.gz | (cd /; tar Sxvpf - )
+	gunzip < e2fsprogs-1.13-elfbin.tar.gz | (cd /; tar Sxvpf - )
 
 2) Run ldconfig to update the shared library pointers.
 
diff --git a/Makefile.in b/Makefile.in
index cbb17bb..5ccae84 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -93,10 +93,11 @@
 	(cd tests; make check)
 
 distribution_tar_file:
-	rm -rf /tmp/dest
+	$(RM) -r /tmp/dest
 	make DESTDIR=/tmp/dest install
 	cd ..
 	cp -r $(srcdir)/README $(srcdir)/install-utils /tmp/dest
+	$(RM) -r /tmp/dest/install-utils/CVS /tmp/dest/install-utils/ChangeLog
 	cp $(srcdir)/INSTALL.@BINARY_TYPE@ /tmp/dest/INSTALL
 	(cd /tmp/dest; $(TAR) cf - . ) | gzip -9 \
 		> e2fsprogs-@E2FSPROGS_VERSION@-@BINARY_TYPE@.tar.gz
diff --git a/README b/README
index f0c6876..eaeaac5 100644
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
-	This is the new version (1.12) of the second extended file system
+	This is the new version (1.13) of the second extended file system
 management programs.
 
 	From time to time, I release new versions of e2fsprogs, to fix
diff --git a/RELEASE-NOTES b/RELEASE-NOTES
index 36a1206..a4d4e27 100644
--- a/RELEASE-NOTES
+++ b/RELEASE-NOTES
@@ -1,3 +1,67 @@
+E2fsprogs 1.13 (December 15, 1998)
+==================================
+
+Fixed a bug in debugfs where an error messages weren't getting printed
+when the ext2 library routines to read inodes returned errors in the
+stat, cmri and rm commands.
+
+Fixed a bug in mke2fs so that if a ridiculous inode ratio parameter is
+provided, it won't create an inode table smaller than the minimum
+number of inodes required for a proper ext2 filesystem.
+
+Fsck now parses the /etc/fstab file directly (instead of using
+getmntent()), so that it can distinguish between a missing pass number
+field and pass number field of zero.  This caused problems for
+diskless workstations where all of the filesystems in /etc/fstab have
+an explicit pass number of zero, and fsck could not distinguish this
+from a /etc/fstab file with missing pass numbers.
+
+E2fsck will create a /lost+found directory if there isn't one in the
+filesystem, since it's safer to create the lost+found directory before
+it's needed.
+
+Fixed e2fsck so that it would detect bogus immutable inodes which
+happen to be sockets and FIFO files, and offer to clear them.
+
+If a filesystem has multiple reasons why it needs to be checked, and
+one of the reasons is that it is uncleanly mounted, e2fsck will print
+that as the reason why the filesystem is being checked.
+
+Cleaned up the output routines of mke2fs so that it doesn't overflow
+an 80 column display when formating really big filesystems.
+
+Added a sanity check to e2fsck to make sure that file descriptors 0,
+1, 2 are open before opening the hard disk.  This avoids a problem
+where a broken program might exec e2fsck with those file descriptors
+closed, which would cause disastrous results if the kernel returns a
+file descriptor for the block device which is also used by FILE *
+stdout.
+
+Fixed up the e2fsck progress reporting functions so that the values
+reliably reach 100% at the completion of all of the e2fsck passes.
+
+Fixed minor documentation bugs in man pages and usage messages.
+
+Programmer's notes:
+-------------------
+
+Fixed a number of lint warnings in the ext2fs library and potential
+portability problems from other OS's header files that might define
+CPP macros for names like "max" and "min".
+
+ext2fs_badblocks_list_add() has been made more efficient when it needs
+to grow the bad blocks list.
+
+Fixed a bug in e2fsck which caused it to dereference a freed pointer
+just before exiting.
+
+Fixed the substition process for generating the mk_cmds and compile_et
+scripts so that they will work outside of the build tree.
+
+Add sanity check to e2fsck so that if an internal routine
+(ext2fs_get_dir_info) returns NULL, avoid dereferencing the pointer
+and causing a core dump.  This should never happen, but...
+
 E2fsprogs 1.12 (July 9, 1998)
 ==================================
 
diff --git a/configure b/configure
index 36b6fd8..c782f71 100644
--- a/configure
+++ b/configure
@@ -1678,7 +1678,7 @@
 fi
 echo "$ac_t""$CPP" 1>&6
 
-for ac_hdr in stdlib.h unistd.h stdarg.h errno.h mntent.h dirent.h getopt.h setjmp.h linux/fd.h linux/major.h sys/disklabel.h sys/sockio.h sys/time.h sys/stat.h sys/types.h net/if.h netinet/in.h
+for ac_hdr in stdlib.h unistd.h stdarg.h errno.h mntent.h paths.h dirent.h getopt.h setjmp.h linux/fd.h linux/major.h sys/disklabel.h sys/sockio.h sys/time.h sys/stat.h sys/types.h net/if.h netinet/in.h
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
diff --git a/debugfs/ChangeLog b/debugfs/ChangeLog
index 9efaf7c..2cff5a8 100644
--- a/debugfs/ChangeLog
+++ b/debugfs/ChangeLog
@@ -1,3 +1,7 @@
+1998-12-15  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+	* Release of E2fsprogs 1.13
+
 1998-12-03  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
 	* Makefile.in: Updated dependencies.
diff --git a/doc/ChangeLog b/doc/ChangeLog
index 288f78b..4abdce9 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -1,3 +1,7 @@
+1998-12-15  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+	* Release of E2fsprogs 1.13
+
 1998-07-09  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
 	* Release of E2fsprogs 1.12
diff --git a/doc/libext2fs.texinfo b/doc/libext2fs.texinfo
index 0ad2d39..53d899b 100644
--- a/doc/libext2fs.texinfo
+++ b/doc/libext2fs.texinfo
@@ -61,7 +61,7 @@
 @title The EXT2FS Library
 @subtitle The EXT2FS Library
 @subtitle Version 1.13
-@subtitle July 1998
+@subtitle December 1998
 
 @author by Theodore Ts'o
 
diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog
index b569938..45bb6d5 100644
--- a/e2fsck/ChangeLog
+++ b/e2fsck/ChangeLog
@@ -1,3 +1,7 @@
+1998-12-15  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+	* Release of E2fsprogs 1.13
+
 1998-12-03  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
 	* Makefile.in: Updated dependencies.
diff --git a/e2fsprogs.lsm b/e2fsprogs.lsm
index f43183f..4f6d2be 100644
--- a/e2fsprogs.lsm
+++ b/e2fsprogs.lsm
@@ -1,21 +1,20 @@
 Begin3
 Title:          EXT2 Filesystem utilities
-Version:        1.12
-Entered-date:   9Jul97
+Version:        1.13
+Entered-date:   20Dec98
 Description:    The filesystem utilities for the EXT2 filesystem, including 
 		e2fsck, mke2fs, dumpe2fs, fsck, and others.
 Keywords:       utilities, fsck, filesystem, Ext2fs
 Author:         tytso@mit.edu (Theodore Tso)
 Maintained-by:  tytso@mit.edu (Theodore Tso)
 Primary-site:   tsx-11.mit.edu /pub/linux/packages/ext2fs
-		686kB e2fsprogs-1.12.tar.gz
-		237kB e2fsprogs-1.12-elfbin.tar.gz
-		166kB e2fsprogs-1.12-dllbin.tar.gz
-		236kB e2fsprogs-1.12-0.i386.rpm
-		82kB  e2fsprogs-devel-1.12-0.i386.rpm
-		688kB e2fsprogs-1.12-0.src.rpm
-                1kB   e2fsprogs-1.12.lsm
+		692kB e2fsprogs-1.13.tar.gz
+		241kB e2fsprogs-1.13-elfbin.tar.gz
+		239kB e2fsprogs-1.13-0.i386.rpm
+		83kB  e2fsprogs-devel-1.13-0.i386.rpm
+		694kB e2fsprogs-1.13-0.src.rpm
+                1kB   e2fsprogs-1.13.lsm
 Alternate-site: 
-Platforms:	linux 1.2.x/1.3.x/2.0.x/2.1.x
+Platforms:	linux 1.2.x/1.3.x/2.0.x/2.1.x/2.2.x
 Copying-policy: GPL
 End
diff --git a/e2fsprogs.spec b/e2fsprogs.spec
index 59299e5..55f5739 100644
--- a/e2fsprogs.spec
+++ b/e2fsprogs.spec
@@ -1,10 +1,10 @@
 Summary: Tools for the second extended (ext2) filesystem 
 Name: e2fsprogs
-Version: 1.12
+Version: 1.13
 Release: 0
 Copyright: GPL
 Group: Utilities/System
-Source: ftp://tsx-11.mit.edu/pub/linux/packages/ext2fs/e2fsprogs-1.12.tar.gz
+Source: ftp://tsx-11.mit.edu/pub/linux/packages/ext2fs/e2fsprogs-1.13.tar.gz
 BuildRoot: /tmp/e2fsprogs-root
 
 %description
@@ -60,7 +60,7 @@
 %attr(-, root, root) /lib/libext2fs.so.2.4
 %attr(-, root, root) /lib/libss.so.2.0
 %attr(-, root, root) /lib/libcom_err.so.2.0
-%attr(-, root, root) /lib/libuuid.so.1.1
+%attr(-, root, root) /lib/libuuid.so.1.2
 
 %attr(-, root, root) /usr/bin/chattr
 %attr(-, root, root) /usr/bin/lsattr
diff --git a/include/linux/ChangeLog b/include/linux/ChangeLog
index c73bee2..f56814f 100644
--- a/include/linux/ChangeLog
+++ b/include/linux/ChangeLog
@@ -1,3 +1,7 @@
+1998-12-15  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+	* Release of E2fsprogs 1.13
+
 1998-07-09  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
 	* Release of E2fsprogs 1.12
diff --git a/install-utils/ChangeLog b/install-utils/ChangeLog
index 510cda1..c2e4d6e 100644
--- a/install-utils/ChangeLog
+++ b/install-utils/ChangeLog
@@ -1,3 +1,7 @@
+1998-12-15  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+	* Release of E2fsprogs 1.13
+
 1998-07-09  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
 	* Release of E2fsprogs 1.12
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 3f0a3bc..918a2bb 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,7 @@
+1998-12-15  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+	* Release of E2fsprogs 1.13
+
 1998-07-09  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
 	* Release of E2fsprogs 1.12
diff --git a/lib/e2p/ChangeLog b/lib/e2p/ChangeLog
index 8e0656b..d80f412 100644
--- a/lib/e2p/ChangeLog
+++ b/lib/e2p/ChangeLog
@@ -1,3 +1,7 @@
+1998-12-15  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+	* Release of E2fsprogs 1.13
+
 1998-12-02  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
 	* Makefile.in: Updated dependencies.
diff --git a/lib/et/ChangeLog b/lib/et/ChangeLog
index 2975049..5c53b29 100644
--- a/lib/et/ChangeLog
+++ b/lib/et/ChangeLog
@@ -1,3 +1,7 @@
+1998-12-15  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+	* Release of E2fsprogs 1.13
+
 1998-07-09  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
 	* Release of E2fsprogs 1.12
diff --git a/lib/ext2fs/ChangeLog b/lib/ext2fs/ChangeLog
index 8844c17..2b08e7c 100644
--- a/lib/ext2fs/ChangeLog
+++ b/lib/ext2fs/ChangeLog
@@ -1,3 +1,7 @@
+1998-12-15  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+	* Release of E2fsprogs 1.13
+
 1998-12-03  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
 	* Makefile.in: Updated dependencies.
diff --git a/lib/ss/ChangeLog b/lib/ss/ChangeLog
index 6f8bcf1..c763b72 100644
--- a/lib/ss/ChangeLog
+++ b/lib/ss/ChangeLog
@@ -1,3 +1,7 @@
+1998-12-15  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+	* Release of E2fsprogs 1.13
+
 1998-07-10  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
 	* mk_cmds.sh.in: Fix error message so that it says mk_cmds's
diff --git a/lib/uuid/ChangeLog b/lib/uuid/ChangeLog
index eeb708b..e514e5f 100644
--- a/lib/uuid/ChangeLog
+++ b/lib/uuid/ChangeLog
@@ -1,3 +1,7 @@
+1998-12-15  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+	* Release of E2fsprogs 1.13
+
 1998-12-04  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
 	* Makefile.in: Update version numbers of the UUID shared library,
diff --git a/misc/ChangeLog b/misc/ChangeLog
index 7fd6a2c..990a17c 100644
--- a/misc/ChangeLog
+++ b/misc/ChangeLog
@@ -1,3 +1,7 @@
+1998-12-15  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+	* Release of E2fsprogs 1.13
+
 1998-12-07  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
 	* mke2fs.8.in: Fixed stupid typo ("Raid options are _comma_
diff --git a/resize/ChangeLog b/resize/ChangeLog
index 1c5f3fe..d091ff6 100644
--- a/resize/ChangeLog
+++ b/resize/ChangeLog
@@ -1,3 +1,7 @@
+1998-12-15  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+	* Release of E2fsprogs 1.13
+
 1998-12-03  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
 	* Makefile.in: Updated dependencies.
diff --git a/tests/ChangeLog b/tests/ChangeLog
index c3bfa30..0fdfe67 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,3 +1,7 @@
+1998-12-15  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+	* Release of E2fsprogs 1.13
+
 1998-12-04  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
 	* f_badtable, f_illitable, f_lpf: Update to deal with the fact
diff --git a/tests/progs/ChangeLog b/tests/progs/ChangeLog
index 5ef6bc4..a93ff2f 100644
--- a/tests/progs/ChangeLog
+++ b/tests/progs/ChangeLog
@@ -1,3 +1,7 @@
+1998-12-15  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+	* Release of E2fsprogs 1.13
+
 1998-07-09  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
 	* Release of E2fsprogs 1.12
diff --git a/util/ChangeLog b/util/ChangeLog
index e1acb9c..180cd86 100644
--- a/util/ChangeLog
+++ b/util/ChangeLog
@@ -1,5 +1,9 @@
 1998-12-15  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
+	* Release of E2fsprogs 1.13
+
+1998-12-15  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
 	* subst.c (get_subst_symbol): Add [0-9] to the list of valid
 		characters for a substitution symbol.
 
diff --git a/version.h b/version.h
index 55444b7..d67069d 100644
--- a/version.h
+++ b/version.h
@@ -6,5 +6,5 @@
  * redistributed under the GNU Public License.
  */
 
-#define E2FSPROGS_VERSION "1.12"
-#define E2FSPROGS_DATE "9-Jul-98"
+#define E2FSPROGS_VERSION "1.13"
+#define E2FSPROGS_DATE "15-Dec-98"