Menu

#2123 Add ability for client library to specify configuration file

New_Feature
pending-fixed
sfcb (1090)
5
2011-06-10
2011-01-26
No

Both, SFCB daemon and client library use a configuration file. While the SFCB daemon can be configured to use a specific file (by means of the '-c' option), the client library will always use the default configuration file, SFCB_CONFDIR "/sfcb.cfg"!

We propose to allow the user to specify a different configuration file through an environment variable "SFCB_CONFIG_FILE".
The included patch implements this.
Also, I have taken the liberty to replace two strcpy() calls by strncpy() calls to make the code a bit more robust.

The patch is against sblim-sfcb-1.3.10

Discussion

  • Josef Moellers

    Josef Moellers - 2011-01-26

    Patch to add environment variable "SFCB_CONFIG_FILE"

     
  • Josef Moellers

    Josef Moellers - 2011-02-16

    Set the Category and Group to appropriate values.

     
  • Josef Moellers

    Josef Moellers - 2011-02-16
    • labels: --> sfcb
    • milestone: --> New_Feature
     
  • Chris Buccella

    Chris Buccella - 2011-02-16
    • assigned_to: nobody --> buccella
     
  • Chris Buccella

    Chris Buccella - 2011-06-10
    • status: open --> pending-fixed
     
  • Chris Buccella

    Chris Buccella - 2011-06-10

    committed to CVS HEAD and git master

     

Log in to post a comment.