tags 307210 + patch
--
The patch below fixes the problem.

thanks,
lamont

========================================================================
diff -ur t/nufw-1.0/src/nuauth/authsrv.c nufw-1.0/src/nuauth/authsrv.c
--- t/nufw-1.0/src/nuauth/authsrv.c     2005-03-03 01:23:54.000000000 -0700
+++ nufw-1.0/src/nuauth/authsrv.c       2005-09-14 20:09:44.000000000 -0600
@@ -704,8 +704,8 @@
        myaudit->cache_hit_nb = 0;
 
 
+       memset(&act,0,sizeof(act));
        act.sa_handler=&process_poll;
-       act.sa_restorer = NULL;
        act.sa_flags = SIGPOLL;
        if (sigaction(SIGPOLL,&act,NULL) == -1){
                printf("could not set signal");
@@ -713,7 +713,6 @@
        }
 
        act.sa_handler=&process_usr1;
-       act.sa_restorer = NULL;
        act.sa_flags = SIGUSR1;
 
        if (sigaction(SIGUSR1,&act,NULL) == -1){
@@ -722,7 +721,6 @@
        }
 
        act.sa_handler=&process_usr2;
-       act.sa_restorer = NULL;
        act.sa_flags = SIGUSR2;
 
        if (sigaction(SIGUSR2,&act,NULL) == -1){
diff -ur t/nufw-1.0/src/nufw/main.c nufw-1.0/src/nufw/main.c
--- t/nufw-1.0/src/nufw/main.c  2005-03-03 01:23:33.000000000 -0700
+++ nufw-1.0/src/nufw/main.c    2005-09-14 20:39:00.000000000 -0600
@@ -320,8 +320,8 @@
         exit(1);
     }
 
+    memset(&act,0,sizeof(act));
     act.sa_handler = &process_usr1;
-    act.sa_restorer = NULL;
     act.sa_flags = SIGUSR1;
     if (sigaction(SIGUSR1,&act,NULL) == -1)
     {
@@ -330,7 +330,6 @@
     }
 
     act.sa_handler = &process_usr2;
-    act.sa_restorer = NULL;
     act.sa_flags = SIGUSR2;
     if (sigaction(SIGUSR2,&act,NULL) == -1)
     {
@@ -339,7 +338,6 @@
     }
 
     act.sa_handler = &process_poll;
-    act.sa_restorer = NULL;
     act.sa_flags = SIGPOLL;
     if (sigaction(SIGPOLL,&act,NULL) == -1)
     {
========================================================================


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to