gnupg2/gnupg-1.9.16-strsignal.patch
Michael Schwendt 2415545d9f - Merge changes from Rex's 1.9.16-1 (Thu Apr 21):
- opensc support unconditional
- remove hard-coded .gz from %post/%postun
- add %check section
- add pth patch
- Put back patch modified from 1.9.15-4 to make tests verbose and change
    signal.c to describe received signals better.
2005-05-10 16:23:11 +00:00

21 lines
594 B
Diff

diff -Nur gnupg-1.9.16-orig/common/signal.c gnupg-1.9.16/common/signal.c
--- gnupg-1.9.16-orig/common/signal.c 2004-12-21 11:03:00.000000000 +0100
+++ gnupg-1.9.16/common/signal.c 2005-05-10 07:55:06.000000000 +0200
@@ -73,12 +73,12 @@
static const char *
get_signal_name( int signum )
{
-#if defined(SYS_SIGLIST_DECLARED) && defined(NSIG)
- return (signum >= 0 && signum < NSIG) ? sys_siglist[signum] : "?";
-#else
- return "some signal";
-#endif
+ const char* tmp = strsignal(signum);
+ if (tmp)
+ return tmp;
+ else
+ return "some signal";
}
#endif /*!HAVE_DOSISH_SYSTEM*/