mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
In trunk, ast_fileexists now returns 0 for failure, instead of -1, as it did
in 1.2. This corrected a longstanding confusion about the return value. Unfortunately, it broke this app in the process. (Issue 7906) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42621 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -209,7 +209,7 @@ static int record_exec(struct ast_channel *chan, void *data)
|
||||
ast_copy_string(tmp + tmplen, &(fname.piece[i][1]), sizeof(tmp) - tmplen);
|
||||
}
|
||||
count++;
|
||||
} while ( ast_fileexists(tmp, ext, chan->language) != -1 );
|
||||
} while (ast_fileexists(tmp, ext, chan->language) > 0);
|
||||
pbx_builtin_setvar_helper(chan, "RECORDED_FILE", tmp);
|
||||
} else
|
||||
strncpy(tmp, filename, sizeof(tmp)-1);
|
||||
|
Reference in New Issue
Block a user