diff options
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/at/at.c | 5 | ||||
-rw-r--r-- | usr.bin/rlogin/rlogin.c | 5 | ||||
-rw-r--r-- | usr.bin/sup/src/run.c | 3 | ||||
-rw-r--r-- | usr.bin/sup/src/supcmain.c | 3 | ||||
-rw-r--r-- | usr.bin/sup/src/supfilesrv.c | 4 |
5 files changed, 13 insertions, 7 deletions
diff --git a/usr.bin/at/at.c b/usr.bin/at/at.c index 12cce81c830..71bb4a29592 100644 --- a/usr.bin/at/at.c +++ b/usr.bin/at/at.c @@ -1,4 +1,4 @@ -/* $OpenBSD: at.c,v 1.14 1997/10/06 18:31:01 deraadt Exp $ */ +/* $OpenBSD: at.c,v 1.15 1998/06/03 16:20:26 deraadt Exp $ */ /* $NetBSD: at.c,v 1.4 1995/03/25 18:13:31 glass Exp $ */ /* @@ -73,7 +73,7 @@ enum { ATQ, ATRM, AT, BATCH, CAT }; /* what program we want to run */ /* File scope variables */ #ifndef lint -static char rcsid[] = "$OpenBSD: at.c,v 1.14 1997/10/06 18:31:01 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: at.c,v 1.15 1998/06/03 16:20:26 deraadt Exp $"; #endif char *no_export[] = @@ -189,6 +189,7 @@ writefile(runtimer, queue) * Install the signal handler for SIGINT; terminate after removing the * spool file if necessary */ + memset(&act, 0, sizeof act); act.sa_handler = sigc; sigemptyset(&(act.sa_mask)); act.sa_flags = 0; diff --git a/usr.bin/rlogin/rlogin.c b/usr.bin/rlogin/rlogin.c index 0cb10e4576d..df6b434e04d 100644 --- a/usr.bin/rlogin/rlogin.c +++ b/usr.bin/rlogin/rlogin.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rlogin.c,v 1.19 1998/03/25 20:22:08 art Exp $ */ +/* $OpenBSD: rlogin.c,v 1.20 1998/06/03 16:20:33 deraadt Exp $ */ /* $NetBSD: rlogin.c,v 1.8 1995/10/05 09:07:22 mycroft Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)rlogin.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: rlogin.c,v 1.19 1998/03/25 20:22:08 art Exp $"; +static char rcsid[] = "$OpenBSD: rlogin.c,v 1.20 1998/06/03 16:20:33 deraadt Exp $"; #endif #endif /* not lint */ @@ -397,6 +397,7 @@ doit(omask) * Use sigaction() instead of signal() to avoid getting SIGCHLDs * for stopped children. */ + memset(&sa, 0, sizeof sa); sigemptyset(&sa.sa_mask); sa.sa_flags = SA_RESTART | SA_NOCLDSTOP; sa.sa_handler = catch_child; diff --git a/usr.bin/sup/src/run.c b/usr.bin/sup/src/run.c index c243a05dd2e..6974bc57189 100644 --- a/usr.bin/sup/src/run.c +++ b/usr.bin/sup/src/run.c @@ -1,4 +1,4 @@ -/* $OpenBSD: run.c,v 1.4 1997/04/01 07:35:16 todd Exp $ */ +/* $OpenBSD: run.c,v 1.5 1998/06/03 16:20:35 deraadt Exp $ */ /* * Copyright (c) 1991 Carnegie Mellon University @@ -187,6 +187,7 @@ int usepath; _exit (0377); } + memset(&ignoresig, 0, sizeof ignoresig); ignoresig.sa_handler = SIG_IGN; /* ignore INT and QUIT signals */ sigemptyset(&ignoresig.sa_mask); ignoresig.sa_flags = 0; diff --git a/usr.bin/sup/src/supcmain.c b/usr.bin/sup/src/supcmain.c index 65c9eb99a9b..aa8a7b32cfb 100644 --- a/usr.bin/sup/src/supcmain.c +++ b/usr.bin/sup/src/supcmain.c @@ -1,4 +1,4 @@ -/* $OpenBSD: supcmain.c,v 1.7 1997/09/16 11:01:19 deraadt Exp $ */ +/* $OpenBSD: supcmain.c,v 1.8 1998/06/03 16:20:36 deraadt Exp $ */ /* * Copyright (c) 1992 Carnegie Mellon University @@ -370,6 +370,7 @@ char **argv; prtime (); } else { /* ignore network pipe signals */ + memset(&ign, 0, sizeof ign); ign.sa_handler = SIG_IGN; ign.sa_flags = 0; sigemptyset(&ign.sa_mask); diff --git a/usr.bin/sup/src/supfilesrv.c b/usr.bin/sup/src/supfilesrv.c index dae2c03811a..b8bbe48653e 100644 --- a/usr.bin/sup/src/supfilesrv.c +++ b/usr.bin/sup/src/supfilesrv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: supfilesrv.c,v 1.14 1998/05/18 19:13:39 deraadt Exp $ */ +/* $OpenBSD: supfilesrv.c,v 1.15 1998/06/03 16:20:38 deraadt Exp $ */ /* * Copyright (c) 1992 Carnegie Mellon University @@ -351,12 +351,14 @@ char **argv; (void) serviceend (); exit (0); } + memset(&ign, 0, sizeof ign); ign.sa_handler = SIG_IGN; sigemptyset(&ign.sa_mask); ign.sa_flags = 0; (void) sigaction (SIGHUP,&ign,NULL); (void) sigaction (SIGINT,&ign,NULL); (void) sigaction (SIGPIPE,&ign,NULL); + memset(&chld, 0, sizeof chld); chld.sa_handler = chldsig; sigemptyset(&chld.sa_mask); chld.sa_flags = 0; |