]> granicus.if.org Git - sudo/commitdiff
Fix SIG_UNBLOCK emulation
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 14 Sep 2010 13:21:59 +0000 (09:21 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 14 Sep 2010 13:21:59 +0000 (09:21 -0400)
--HG--
branch : 1.7

sigaction.c

index aee0abfd052d1968738f420ca40a855de08dd143..670e87eccc3cee72d2ceca365e9da653cd8a6837 100644 (file)
@@ -121,7 +121,7 @@ sigprocmask(how, set, oset)
                mask = sigblock(*set);
                break;
            case SIG_UNBLOCK:
-               mask = sigsetmask(~*set);
+               mask = sigsetmask(sigblock(0) & ~(*set));
                break;
            case SIG_SETMASK:
                mask = sigsetmask(*set);