]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
su: (pty) remove unnecessary call
authorKarel Zak <kzak@redhat.com>
Thu, 8 Aug 2019 13:32:13 +0000 (15:32 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 8 Oct 2019 11:11:54 +0000 (13:11 +0200)
The pty code has to save the original signal mask without application
assistance.

Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/su-common.c

index d4a995f43637e06550803e0dbe119bcb726a5bfe..1f4fc9777dd602dbabb296be69486596ccbdf275 100644 (file)
@@ -498,9 +498,6 @@ static void create_watching_parent(struct su_context *su)
        if (su->force_pty) {
                struct ul_pty_callbacks *cb;
 
-               /* no-op, just save original signal mask to pty */
-               sigprocmask(SIG_BLOCK, NULL, ul_pty_get_orig_sigset(su->pty));
-
                /* set callbacks */
                ul_pty_set_callback_data(su->pty, (void *) su);