Browse Source

Fix lookup for configuration file.

Gfsec-use was looking for configuration files in a 'gfsecret.conf'
directory instead of 'gfsecret'.
master
Damien Goutte-Gattat 3 months ago
parent
commit
e1ab52f326
  1. 4
      src/gfsec-use.c

4
src/gfsec-use.c

@ -96,9 +96,9 @@ get_config_path(const char *filename)
char *path;
if ( ! filename )
xasprintf(&path, "%s/gfsecret.conf/default.conf", xdg->config_home);
xasprintf(&path, "%s/gfsecret/default.conf", xdg->config_home);
else if ( file_exists(filename) == -1 )
xasprintf(&path, "%s/gfsecret.conf/%s.conf", xdg->config_home, filename);
xasprintf(&path, "%s/gfsecret/%s.conf", xdg->config_home, filename);
else
path = xstrdup(filename);

Loading…
Cancel
Save