diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2014-01-03 11:10:49 +0100 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2014-01-03 23:06:21 +0100 |
commit | d02442c0d7de4748403d8b4af764b36ac2e9e7a3 (patch) | |
tree | 5637478d2e93fc2a09059b33acc5397393d80f99 /src/main.c | |
parent | e0dcdd3634c63dd6bf4ade9f07ccef90193d17b8 (diff) | |
download | ratpoison-d02442c0d7de4748403d8b4af764b36ac2e9e7a3.zip |
Open $sysconfdir/ratpoisonrc, don't hardcode /etc.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -420,7 +420,7 @@ read_startup_files (char *alt_rcfile) else { /* first check $HOME/.ratpoisonrc and if that does not exist then try - /etc/ratpoisonrc */ + $sysconfdir/ratpoisonrc */ homedir = getenv ("HOME"); if (!homedir) @@ -439,7 +439,7 @@ read_startup_files (char *alt_rcfile) filename, strerror (errno))); free (filename); - filename = xsprintf ("%s/ratpoisonrc", "/etc"); + filename = xsprintf ("%s/ratpoisonrc", SYSCONFDIR); if ((fileptr = fopen (filename, "r")) == NULL) if (errno != ENOENT) |