chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemd-sleep: add support for freeze and standby
[elogind.git]
/
src
/
core
/
main.c
diff --git
a/src/core/main.c
b/src/core/main.c
index 22cec4ed15d9a3d4fafd7b2f9eecf8368839df77..7fc06bea05480e5b51d6d5fc6f472dc9e763720f 100644
(file)
--- a/
src/core/main.c
+++ b/
src/core/main.c
@@
-668,7
+668,7
@@
static int parse_config_file(void) {
const char *fn;
int r;
const char *fn;
int r;
- fn = arg_running_as == SYSTEMD_SYSTEM ?
SYSTEM_CONFIG_FILE : USER_CONFIG_FILE
;
+ fn = arg_running_as == SYSTEMD_SYSTEM ?
PKGSYSCONFDIR "/system.conf" : PKGSYSCONFDIR "/user.conf"
;
f = fopen(fn, "re");
if (!f) {
if (errno == ENOENT)
f = fopen(fn, "re");
if (!f) {
if (errno == ENOENT)