Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The old implementation could not distinguish between a config file given as command line parameter and the compiled default. Older versions of bareos (15.2.x) did handle command line parameter as follows: If the parameter is a path (contains a "/"), it will be as expected (absolute path or path relative to the current directory). If the parameter is a filename (does not contain a "/"), it will be treated as relative to the compiled config directory (e.g. /etc/bareos/). This is inconsistent. A prior patch changed this behavior. However, this patch extends the search for the config file. No config file paramter given: * use default config file, fall back to default config include directories. Config file parameter is given and it is an existing file: * this file will be used. It can be specified either an absolute or a relative path (relative to the current directory). Config file parameter is given and it is a directory: * tries to find the default config filename in the configured directory. If that fails, it tries to find the config include directories under the configured directory. Parameter is given but does not exists: * For backward compability (for programs not adapted to the new mechanism like bat and tray-monitor): * try to find the given path relative to the default config directory.
- Loading branch information
1 parent
9d6c3e6
commit 9555e7c
Showing
21 changed files
with
171 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.