mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
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
This commit is contained in:
@@ -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':
|
||||
|
Reference in New Issue
Block a user