[asterisk-bugs] [Asterisk 0010811]: Wrong definition of AST_KEY_DIR

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Sep 24 15:27:56 CDT 2007


The following issue has been set as RELATED TO issue 0010267. 
====================================================================== 
http://bugs.digium.com/view.php?id=10811 
====================================================================== 
Reported By:                paravoid
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   10811
Category:                   Core/BuildSystem
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           1.4.11  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             09-24-2007 01:34 CDT
Last Modified:              09-24-2007 12:10 CDT
====================================================================== 
Summary:                    Wrong definition of AST_KEY_DIR
Description: 
Makefile has this:
  $(INSTALL) -m 644 keys/iaxtel.pub $(DESTDIR)$(ASTDATADIR)/keys

main/asterisk.c:2399 has this:
  } else if (!strcasecmp(v->name, "astdatadir")) {
    ast_copy_string(ast_config_AST_DATA_DIR, v->value,
sizeof(ast_config_AST_DATA_DIR));
    snprintf(ast_config_AST_KEY_DIR, sizeof(ast_config_AST_KEY_DIR),
"%s/keys", v->value);

build_tools/make_defaults_h:17 however:
  #define AST_KEY_DIR    "${INSTALL_PATH}${ASTVARLIBDIR}/keys"

This, obviously, needs to be changed to:
  #define AST_KEY_DIR    "${INSTALL_PATH}${ASTDATADIR}/keys"

It's so trivial that I'm not even attaching a unified diff :)

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0010267 [patch] Allow the astdb in a userconfig...
====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
09-24-07 15:27  Corydon76      Relationship added       related to 0010267  
======================================================================




More information about the asterisk-bugs mailing list