From 418bf793f78925566e5c079515115a0f45220bdf Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 11 Aug 2018 21:29:43 -0600 Subject: [PATCH] Fix the return value of sudoers_io_change_winsize() on success. Otherwise, we only log a single window size change. --- plugins/sudoers/iolog.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/sudoers/iolog.c b/plugins/sudoers/iolog.c index 475ca25b1..48a897775 100644 --- a/plugins/sudoers/iolog.c +++ b/plugins/sudoers/iolog.c @@ -1177,6 +1177,9 @@ sudoers_io_change_winsize(unsigned int lines, unsigned int cols) if (errstr != NULL) goto done; + /* Success. */ + ret = 1; + done: last_time.tv_sec = now.tv_sec; last_time.tv_usec = now.tv_usec; -- 2.40.0