From: Tilghman Lesher Date: Mon, 31 Dec 2007 20:27:26 +0000 (+0000) Subject: Allow the default "0" to be returned if the STAT fails X-Git-Tag: 1.4.17~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d142f0271c2048571d55278e5782c40c6ffb4f3;p=thirdparty%2Fasterisk.git Allow the default "0" to be returned if the STAT fails (Closes issue #11659) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@95470 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/funcs/func_env.c b/funcs/func_env.c index f60adb6d58..01ec4958de 100644 --- a/funcs/func_env.c +++ b/funcs/func_env.c @@ -77,7 +77,7 @@ static int stat_read(struct ast_channel *chan, char *cmd, char *data, action = strsep(&data, "|"); if (stat(data, &s)) { - return -1; + return 0; } else { switch (*action) { case 'e':