diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-06-29 16:59:13 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-06-29 16:59:13 +0000 |
commit | 04e30543dbf48e9041213f637bab8832761ac27c (patch) | |
tree | 16aab5ae45a680d952e8c3e0a98c4a43c97dda6c | |
parent | b5aa3db8153a7e5d7b31ecd2263e4e907fcfc1be (diff) |
When writing files, trunkate unless append mode is specified
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1136 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -720,7 +720,7 @@ struct ast_filestream *ast_writefile(char *filename, char *type, char *comment, } myflags = 0; /* set the O_TRUNC flag if and only if there is no O_APPEND specified */ - //if (!(flags & O_APPEND)) myflags = O_TRUNC; + if (!(flags & O_APPEND)) myflags = O_TRUNC; f = formats; while(f) { if (!strcasecmp(f->name, type)) { |