]> git.wh0rd.org - dump.git/commitdiff
Use OPEN() instead of open() for toc files.
authorStelian Pop <stelian@popies.net>
Thu, 23 Jul 2009 09:34:07 +0000 (09:34 +0000)
committerStelian Pop <stelian@popies.net>
Thu, 23 Jul 2009 09:34:07 +0000 (09:34 +0000)
CHANGES
dump/main.c

diff --git a/CHANGES b/CHANGES
index e73a76c126f51ab9f294143b89be74c30de3ffa1..3e0e7c45e78f46409fad4ce25c4064e3d53e8501 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,4 +1,11 @@
-$Id: CHANGES,v 1.302 2009/06/18 10:17:58 stelian Exp $
+$Id: CHANGES,v 1.303 2009/07/23 09:34:07 stelian Exp $
+
+Changes between versions 0.4b42 and 0.4b43 (released ?????????????)
+===================================================================
+
+1.     Fix a bug in dump making impossible to handle large toc files
+       (> 2 GB). Thanks to X DUGi <xdugi@users.sourceforge.net> for
+       reporting the bug (Sourceforge bug #2820629)
 
 Changes between versions 0.4b41 and 0.4b42 (released June 18, 2009)
 ===================================================================
 
 Changes between versions 0.4b41 and 0.4b42 (released June 18, 2009)
 ===================================================================
index b3bbf7d4a45058bb38a815112b8430f6fb2fe3f1..74ca0be0d72aaa9adf9721087bccb1e60f26b5e1 100644 (file)
@@ -37,7 +37,7 @@
 
 #ifndef lint
 static const char rcsid[] =
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: main.c,v 1.95 2009/06/18 09:35:14 stelian Exp $";
+       "$Id: main.c,v 1.96 2009/07/23 09:34:07 stelian Exp $";
 #endif /* not lint */
 
 #include <config.h>
 #endif /* not lint */
 
 #include <config.h>
@@ -543,7 +543,7 @@ main(int argc, char *argv[])
        }
 
        (void)setuid(getuid()); /* rmthost() is the only reason to be setuid */
        }
 
        (void)setuid(getuid()); /* rmthost() is the only reason to be setuid */
-       if (Apath && (Afile = open(Apath, O_WRONLY|O_CREAT|O_TRUNC,
+       if (Apath && (Afile = OPEN(Apath, O_WRONLY|O_CREAT|O_TRUNC,
                                   S_IRUSR | S_IWUSR | S_IRGRP |
                                   S_IWGRP | S_IROTH | S_IWOTH)) < 0) {
                msg("Cannot open %s for writing: %s\n",
                                   S_IRUSR | S_IWUSR | S_IRGRP |
                                   S_IWGRP | S_IROTH | S_IWOTH)) < 0) {
                msg("Cannot open %s for writing: %s\n",