aboutsummaryrefslogtreecommitdiff
path: root/src/Startup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Startup.c')
-rw-r--r--src/Startup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Startup.c b/src/Startup.c
index 92cd526..618a106 100644
--- a/src/Startup.c
+++ b/src/Startup.c
@@ -755,7 +755,7 @@ static int CopyParFile (int recovered)
else
{
/* binary-copy the input parfile to the output parfile */
- flags = O_CREAT | O_WRONLY;
+ flags = O_CREAT | O_TRUNC | O_WRONLY;
if (recovered)
{
flags |= O_EXCL;
@@ -861,7 +861,7 @@ static int GenerateParFile (int recovered)
}
else
{
- flags = O_CREAT | O_WRONLY;
+ flags = O_CREAT | O_TRUNC | O_WRONLY;
if (recovered)
{
flags |= O_EXCL;