]> granicus.if.org Git - strace/commitdiff
signal: fix thinko in sa_restorer
authorMike Frysinger <vapier@gentoo.org>
Sun, 10 Aug 2014 02:12:55 +0000 (22:12 -0400)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 10 Aug 2014 09:23:22 +0000 (09:23 +0000)
Previous commit here re-added the bugs trying to be fixed due to a
logic thinko.  The patches were tested in isolation and hand merged
later.  Oops.

* signal.c (struct new_sigaction): Change || to &&.

signal.c

index 6a565f5a955f1b07d0a5cd0c7c7d36c2ceead496..9a7c82f0b10393fa5b36101937e3381a2adb5736 100644 (file)
--- a/signal.c
+++ b/signal.c
@@ -1134,9 +1134,9 @@ struct new_sigaction
 #else
        void (*__sa_handler)(int);
        unsigned long sa_flags;
-# if !defined(ALPHA) || !defined(HPPA)
+# if !defined(ALPHA) && !defined(HPPA)
        void (*sa_restorer)(void);
-# endif /* !ALPHA || !HPPA */
+# endif /* !ALPHA && !HPPA */
 #endif /* !MIPS */
        /* Kernel treats sa_mask as an array of longs. */
        unsigned long sa_mask[NSIG / sizeof(long) ? NSIG / sizeof(long) : 1];