From 62614cf50e5f719954f23b7a9819a70b2d3ec44c Mon Sep 17 00:00:00 2001 From: Stelian Pop Date: Thu, 23 Jul 2009 09:34:07 +0000 Subject: [PATCH] Use OPEN() instead of open() for toc files. --- CHANGES | 9 ++++++++- dump/main.c | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index e73a76c..3e0e7c4 100644 --- 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 for + reporting the bug (Sourceforge bug #2820629) Changes between versions 0.4b41 and 0.4b42 (released June 18, 2009) =================================================================== diff --git a/dump/main.c b/dump/main.c index b3bbf7d..74ca0be 100644 --- a/dump/main.c +++ b/dump/main.c @@ -37,7 +37,7 @@ #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 @@ -543,7 +543,7 @@ main(int argc, char *argv[]) } (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", -- 2.39.5