diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-03-23 21:31:14 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-08-24 16:47:08 +0200 |
commit | ff922b481d88c83594c4a97352067f5b17b74e67 (patch) | |
tree | 02f44dd642b2224bd65d6e13f7e23aa63fb764d7 /src/login/logind-session.c | |
parent | 299f585a0692b6e7a438a25a6577fc6f777659ea (diff) |
fileio: accept FILE* in addition to path in parse_env_file()
Most our other parsing functions do this, let's do this here too,
internally we accept that anyway. Also, the closely related
load_env_file() and load_env_file_pairs() also do this, so let's be
systematic.
Diffstat (limited to 'src/login/logind-session.c')
-rw-r--r-- | src/login/logind-session.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/logind-session.c b/src/login/logind-session.c index 857f43827..e5adbdcf7 100644 --- a/src/login/logind-session.c +++ b/src/login/logind-session.c @@ -372,7 +372,7 @@ int session_load(Session *s) { assert(s); - r = parse_env_file(s->state_file, NEWLINE, + r = parse_env_file(NULL, s->state_file, NEWLINE, "REMOTE", &remote, "SCOPE", &s->scope, #if 0 /// elogind does not support systemd scope_jobs |