summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2015-11-12 12:20:59 +0100
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2015-11-12 22:46:51 +0100
commit44f6c01d79710b030a8a73c25fe9620b41c8b0e4 (patch)
tree675da41270270678b43cbea1022337ce2637af59 /src
parentbf3c2c6b76cf8cf582dc2c33bd3d50cd4db25e2c (diff)
Add -bP config_file
The -bP configure_file is still supported, but should fade out eventually. config_file matches better the expansion $config_file.
Diffstat (limited to 'src')
-rw-r--r--src/src/readconf.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/src/readconf.c b/src/src/readconf.c
index 10ebc5e17..6767465a0 100644
--- a/src/src/readconf.c
+++ b/src/src/readconf.c
@@ -2534,7 +2534,9 @@ causes the value of any main configuration variable to be output if the
second argument is NULL. There are some special values:
all print all main configuration options
- configure_file print the name of the configuration file
+ config_file print the name of the configuration file
+ (configure_file will still work, for backward
+ compatibility)
routers print the routers' configurations
transports print the transports' configuration
authenticators print the authenticators' configuration
@@ -2602,7 +2604,8 @@ if (type == NULL)
return;
}
- if (Ustrcmp(name, "configure_file") == 0)
+ if ( Ustrcmp(name, "configure_file") == 0
+ ||Ustrcmp(name, "config_file") == 0)
{
printf("%s\n", CS config_main_filename);
return;