]> granicus.if.org Git - sudo/commitdiff
Fix the return value of sudoers_io_change_winsize() on success.
authorTodd C. Miller <Todd.Miller@sudo.ws>
Sun, 12 Aug 2018 03:29:43 +0000 (21:29 -0600)
committerTodd C. Miller <Todd.Miller@sudo.ws>
Sun, 12 Aug 2018 03:29:43 +0000 (21:29 -0600)
Otherwise, we only log a single window size change.

plugins/sudoers/iolog.c

index 475ca25b141250b426cbf79b25f29f585f135398..48a897775d705c5c218e6d430e3c73f6c561ada1 100644 (file)
@@ -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;