]> git.wh0rd.org - dump.git/commitdiff
Fix dump output message when using default level.
authorStelian Pop <stelian@popies.net>
Thu, 18 Jun 2009 09:35:14 +0000 (09:35 +0000)
committerStelian Pop <stelian@popies.net>
Thu, 18 Jun 2009 09:35:14 +0000 (09:35 +0000)
CHANGES
dump/main.c

diff --git a/CHANGES b/CHANGES
index c7adb0b28b63259b589bf7c8cf37c4501ce3bec1..f75d16c6140f08c3e8853104ee452218836e97ff 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,4 +1,4 @@
-$Id: CHANGES,v 1.295 2008/09/04 19:21:07 stelian Exp $
+$Id: CHANGES,v 1.296 2009/06/18 09:35:14 stelian Exp $
 
 Changes between versions 0.4b41 and 0.4b42 (released xxxxxxxxxxxxxxx)
 =====================================================================
 
 Changes between versions 0.4b41 and 0.4b42 (released xxxxxxxxxxxxxxx)
 =====================================================================
@@ -55,6 +55,10 @@ Changes between versions 0.4b41 and 0.4b42 (released xxxxxxxxxxxxxxx)
        actually based on the Tower of Hanoi algorithm. The man page
        was updated accordingly.
 
        actually based on the Tower of Hanoi algorithm. The man page
        was updated accordingly.
 
+13.    Fix missing level information from dump output when using
+       the default level (RedHat bug #493635). Thanks to Adam Tkac
+       <atkac@redhat.com> for the patch.
+
 Changes between versions 0.4b40 and 0.4b41 (released January 2, 2006)
 =====================================================================
 
 Changes between versions 0.4b40 and 0.4b41 (released January 2, 2006)
 =====================================================================
 
index b73a7887012475bfdd86f4953e5c0110679f59cb..b3bbf7d4a45058bb38a815112b8430f6fb2fe3f1 100644 (file)
@@ -37,7 +37,7 @@
 
 #ifndef lint
 static const char rcsid[] =
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: main.c,v 1.94 2004/07/05 15:12:45 stelian Exp $";
+       "$Id: main.c,v 1.95 2009/06/18 09:35:14 stelian Exp $";
 #endif /* not lint */
 
 #include <config.h>
 #endif /* not lint */
 
 #include <config.h>
@@ -239,6 +239,8 @@ main(int argc, char *argv[])
                quit("TP_BSIZE must be a multiple of DEV_BSIZE\n");
        memset(&lastlevel, 0, NUM_STR_SIZE);
        memset(&level, 0, NUM_STR_SIZE);
                quit("TP_BSIZE must be a multiple of DEV_BSIZE\n");
        memset(&lastlevel, 0, NUM_STR_SIZE);
        memset(&level, 0, NUM_STR_SIZE);
+       /* Default dump level is zero. */
+       level[0] = '0';
 
        if (argc < 2)
                usage();
 
        if (argc < 2)
                usage();