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
This commit is contained in:
parent
2a3888bfac
commit
97fc11c244
1 changed files with 1 additions and 1 deletions
2
file.c
2
file.c
|
@ -720,7 +720,7 @@ struct ast_filestream *ast_writefile(char *filename, char *type, char *comment,
|
||||||
}
|
}
|
||||||
myflags = 0;
|
myflags = 0;
|
||||||
/* set the O_TRUNC flag if and only if there is no O_APPEND specified */
|
/* 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;
|
f = formats;
|
||||||
while(f) {
|
while(f) {
|
||||||
if (!strcasecmp(f->name, type)) {
|
if (!strcasecmp(f->name, type)) {
|
||||||
|
|
Loading…
Reference in a new issue