summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2013-03-29 15:20:23 +0100
committerHans de Goede <hdegoede@redhat.com>2013-03-29 15:20:23 +0100
commitc648290d68903a0d21b382eb94c48bb41a296b81 (patch)
tree23edcba5671331faa5d9652c74238ad919c658ba /src
parente107565749893ee719a9d11d85205be895b4f175 (diff)
downloadvd_agent-c648290d68903a0d21b382eb94c48bb41a296b81.tar.gz
vd_agent-c648290d68903a0d21b382eb94c48bb41a296b81.tar.xz
vd_agent-c648290d68903a0d21b382eb94c48bb41a296b81.zip
systemd-login: Fix supression of ENOENT errors
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/systemd-login.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemd-login.c b/src/systemd-login.c
index 7907fe0..92104de 100644
--- a/src/systemd-login.c
+++ b/src/systemd-login.c
@@ -73,7 +73,7 @@ const char *session_info_get_active_session(struct session_info *si)
si->session = NULL;
r = sd_seat_get_active("seat0", &si->session, NULL);
/* ENOENT happens when a seat is switching from one session to another */
- if (r < 0 && r != ENOENT)
+ if (r < 0 && r != -ENOENT)
syslog(LOG_ERR, "Error getting active session: %s",
strerror(-r));