summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Nguyen <Ton.Nguyen@Sun.COM>2009-02-24 10:10:38 -0800
committerTony Nguyen <Ton.Nguyen@Sun.COM>2009-02-24 10:10:38 -0800
commit77e01d41d44b2e8d121c8ab6f07828f307c1a1c3 (patch)
tree2d2f866342a3c6f1be5eec0d436194ac77c79475
parentede7616dd3d88cda07ba148ab19e700804507747 (diff)
downloadillumos-joyent-77e01d41d44b2e8d121c8ab6f07828f307c1a1c3.tar.gz
6658421 auditreduce can core on SEGV
-rw-r--r--usr/src/cmd/auditreduce/main.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/usr/src/cmd/auditreduce/main.c b/usr/src/cmd/auditreduce/main.c
index 8fc0239de2..3137bd9e9c 100644
--- a/usr/src/cmd/auditreduce/main.c
+++ b/usr/src/cmd/auditreduce/main.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,12 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 1987-2000, 2002 Sun Microsystems, Inc.
- * All rights reserved.
+ * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* The Secure SunOS audit reduction tool - auditreduce.
* Document SM0071 is the primary source of information on auditreduce.
@@ -988,6 +985,10 @@ init_sig(void)
perror(gettext("auditreduce: SIGXFSZ signal failed"));
return (-1);
}
+ if (signal(SIGSEGV, int_handler) == SIG_ERR) {
+ perror(gettext("auditreduce: SIGSEGV signal failed"));
+ return (-1);
+ }
return (0);
}