[asterisk-bugs] [JIRA] (ASTERISK-27846) ast_coredumper: Fix OUTPUT directory

Friendly Automation (JIRA) noreply at issues.asterisk.org
Thu May 31 05:17:54 CDT 2018


    [ https://issues.asterisk.org/jira/browse/ASTERISK-27846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=243618#comment-243618 ] 

Friendly Automation commented on ASTERISK-27846:
------------------------------------------------

Change 8991 merged by Joshua Colp:
ast_coredumper:  Fix output directory and variable precedence

[https://gerrit.asterisk.org/8991|https://gerrit.asterisk.org/8991]

> ast_coredumper: Fix OUTPUT directory
> ------------------------------------
>
>                 Key: ASTERISK-27846
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27846
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Addons/General
>    Affects Versions: 15.3.0
>            Reporter: Ted G
>            Assignee: George Joseph
>            Severity: Minor
>
> The OUTPUTDIR functionality seems to be broken in ast_coredumper:
> gz/tmp# /var/lib/asterisk/scripts/ast_coredumper
> OUTPUTDIR /some/directory doesn't exists or is not a directory
> gz/tmp# /var/lib/asterisk/scripts/ast_coredumper /tmp/core
> OUTPUTDIR /some/directory doesn't exists or is not a directory
> gz/tmp# export OUTPUTDIR=/tmp ; echo $OUTPUTDIR
> /tmp
> gz/tmp# /var/lib/asterisk/scripts/ast_coredumper /tmp/core
> OUTPUTDIR /some/directory doesn't exists or is not a directory
> gz/tmp# asterisk -V
> Asterisk 15.3.0
> Looks like the problem is ast_debug_tools.conf is taking precedence over the environment setting.
> [ -f /etc/asterisk/ast_debug_tools.conf ] && source /etc/asterisk/ast_debug_tools.conf
> [ -f ~/ast_debug_tools.conf ] && source ~/ast_debug_tools.conf
> [ -f ./ast_debug_tools.conf ] && source ./ast_debug_tools.conf
> This doesn't seem like the appropriate behavior to me.  The user should be able to change the output directory on the command line and not have to edit a config file every time. Also, it seems like /tmp should be the default directory instead of /some/directory which would probably never exist.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list