]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Allow the default "0" to be returned if the STAT fails
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 31 Dec 2007 20:27:26 +0000 (20:27 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 31 Dec 2007 20:27:26 +0000 (20:27 +0000)
(Closes issue #11659)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@95470 65c4cc65-6c06-0410-ace0-fbb531ad65f3

funcs/func_env.c

index f60adb6d58c9ed1cbfeeb69285d31b9318b13f06..01ec4958debcad1821db2673aba64bc540bede0a 100644 (file)
@@ -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':