]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Ignore failure to set window size.
authorNicolas François <nicolas.francois@centraliens.net>
Mon, 19 Aug 2013 22:15:10 +0000 (00:15 +0200)
committerNicolas François <nicolas.francois@centraliens.net>
Mon, 19 Aug 2013 22:15:10 +0000 (00:15 +0200)
* src/su.c: Ignore failure to set window size in case of SIGWINCH.

ChangeLog
src/su.c

index 926b745b2f1e192bacf962e7ec02928cd2e81f53..0ffedc5edd905b2677e005b35d68a93b3887430d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2013-08-19  Nicolas François  <nicolas.francois@centraliens.net>
 
        * src/su.c: Ignore close() failure before exiting.
+       * src/su.c: Ignore failure to set window size in case of SIGWINCH.
 
 2013-08-19  Nicolas François  <nicolas.francois@centraliens.net>
 
index aa0d696c2366ce8ec15e11b390ccace9de7f6856..a60d2a2fd34083b7962d40a133c2710ffd05d449 100644 (file)
--- a/src/su.c
+++ b/src/su.c
@@ -476,7 +476,7 @@ static void handle_session (void)
                                if (caught == SIGWINCH) {
                                        caught = 0;
                                        if (ioctl (STDIN_FILENO, TIOCGWINSZ, &winsz) != -1)
-                                               ioctl (fd_pts, TIOCSWINSZ, &winsz);
+                                               (void) ioctl (fd_pts, TIOCSWINSZ, &winsz);
                                }
 
                                FD_ZERO (&inp_fds);