[asterisk-commits] tilghman: trunk r42621 - /trunk/apps/app_record.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Sep 9 14:51:07 MST 2006


Author: tilghman
Date: Sat Sep  9 16:51:07 2006
New Revision: 42621

URL: http://svn.digium.com/view/asterisk?rev=3D42621&view=3Drev
Log:
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)

Modified:
    trunk/apps/app_record.c

Modified: trunk/apps/app_record.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_record.c?rev=3D4262=
1&r1=3D42620&r2=3D42621&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/apps/app_record.c (original)
+++ trunk/apps/app_record.c Sat Sep  9 16:51:07 2006
@@ -209,7 +209,7 @@
 				ast_copy_string(tmp + tmplen, &(fname.piece[i][1]), sizeof(tmp) - tmpl=
en);
 			}
 			count++;
-		} while ( ast_fileexists(tmp, ext, chan->language) !=3D -1 );
+		} while (ast_fileexists(tmp, ext, chan->language) > 0);
 		pbx_builtin_setvar_helper(chan, "RECORDED_FILE", tmp);
 	} else
 		strncpy(tmp, filename, sizeof(tmp)-1);



More information about the asterisk-commits mailing list