From 9e397b6bbab53731ad2d34d6cff17033bcd6ae88 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Sat, 9 Sep 2006 21:51:07 +0000 Subject: 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 --- apps/app_record.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/app_record.c') diff --git a/apps/app_record.c b/apps/app_record.c index 810806e48..ababa2380 100644 --- a/apps/app_record.c +++ b/apps/app_record.c @@ -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); -- cgit v1.2.3