diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-07-23 10:18:40 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-07-23 16:08:06 +0200 |
commit | b71282efea506950fb14b5a19b04de2fa21a13fd (patch) | |
tree | a6523932358c1534302a4dc215d9de57273ad43d /src/login | |
parent | 20fff3de756e176c54a310a24061b87b73115d8e (diff) | |
download | systemd-b71282efea506950fb14b5a19b04de2fa21a13fd.tar.gz |
logind: drop redundant session_id_valid() check
session_new() checks that as first step anyway, no need to do this
beforehand.
Diffstat (limited to 'src/login')
-rw-r--r-- | src/login/logind.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/login/logind.c b/src/login/logind.c index ebdc0965c1..175db697e5 100644 --- a/src/login/logind.c +++ b/src/login/logind.c @@ -474,12 +474,6 @@ static int manager_enumerate_sessions(Manager *m) { if (!dirent_is_file(de)) continue; - if (!session_id_valid(de->d_name)) { - log_warning("Invalid session file name '%s', ignoring.", de->d_name); - r = -EINVAL; - continue; - } - k = manager_add_session(m, de->d_name, &s); if (k < 0) { r = log_warning_errno(k, "Failed to add session by file name %s, ignoring: %m", de->d_name); |