Browse Source

Fix error message in gfsec-split.

The only way get_config_path can fail is if it cannot create the
configuration directory where the configuration is to be stored, so
let's make the error message reflect that.
master
Damien Goutte-Gattat 2 months ago
parent
commit
f96cb541ff
  1. 2
      src/gfsec-split.c

2
src/gfsec-split.c

@ -395,7 +395,7 @@ main(int argc, char **argv)
secret_file = argv[optind++];
if ( ! (config_path = get_config_path(config_path, secret_file)) )
err(EXIT_FAILURE, _("Cannot create configuration file"));
err(EXIT_FAILURE, _("Cannot create configuration directory"));
if ( file_exists(config_path) != -1 ) {
warn(_("Configuration file %s already exists"), config_path);
if ( ! ask_confirmation(_("Overwrite (y/N)?")) )

Loading…
Cancel
Save