summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-06-29 16:59:13 +0000
committerMark Spencer <markster@digium.com>2003-06-29 16:59:13 +0000
commit97fc11c24420ec233600d1c1d74ec7096f2539f4 (patch)
tree16aab5ae45a680d952e8c3e0a98c4a43c97dda6c /file.c
parent2a3888bfac3075957de3f20a4709aef3f8b5e5c8 (diff)
When writing files, trunkate unless append mode is specified
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1136 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'file.c')
-rwxr-xr-xfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 4f684ae8c..0c30afdce 100755
--- a/file.c
+++ b/file.c
@@ -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)) {