diff options
author | marcel <marcel@FreeBSD.org> | 1999-09-28 13:43:21 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 1999-09-28 13:43:21 +0000 |
commit | 44711c1a0e45f0435a3a00cadbfe3e890eaf0c89 (patch) | |
tree | 7a0e8fdcb569cefe28fae2cc7c094acc0608801f /lib/libtermcap | |
parent | ffae785399df356992776b7d84880ae94ab5e0f6 (diff) | |
download | FreeBSD-src-44711c1a0e45f0435a3a00cadbfe3e890eaf0c89.zip FreeBSD-src-44711c1a0e45f0435a3a00cadbfe3e890eaf0c89.tar.gz |
Explicitly use sigemptyset to clear a sigset_t. Explicit
initialization of sa_flags added so that we can lose the bzero.
IIRC, this code is not used anymore since the addition of
ncurses. Commit the change anyway so, just to be safe.
$FreeBSD$ tag added
Diffstat (limited to 'lib/libtermcap')
-rw-r--r-- | lib/libtermcap/termcap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libtermcap/termcap.c b/lib/libtermcap/termcap.c index 7ce5f72..da46e21 100644 --- a/lib/libtermcap/termcap.c +++ b/lib/libtermcap/termcap.c @@ -29,6 +29,8 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. + * + * $FreeBSD$ */ #ifndef lint @@ -133,7 +135,8 @@ othersyscall: int unsafe; if (use_issetugid == 1) { - bzero(&sa, sizeof(sa)); + sigemptyset(&sa.sa_mask); + sa.sa_flags = 0; sa.sa_handler = SIG_IGN; if (sigaction(SIGSYS, &sa, &osa) >= 0) sigsys_installed = 1; |