aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1999-01-01 14:41:51 +0000
committerBruce Evans <bde@FreeBSD.org>1999-01-01 14:41:51 +0000
commit9fe425981ba034c013f2fd1bec2ca630e4035ec7 (patch)
treeff009fa6bbb63c87e4dc21efba67e5843aefd7a4
parent0a3e1d6535c68919fde758003059ccd8e391c2fc (diff)
Notes
-rw-r--r--sys/kern/imgact_aout.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/kern/imgact_aout.c b/sys/kern/imgact_aout.c
index 446946e8c58f..9fbd203177dd 100644
--- a/sys/kern/imgact_aout.c
+++ b/sys/kern/imgact_aout.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: imgact_aout.c,v 1.42 1998/09/14 05:36:49 jdp Exp $
+ * $Id: imgact_aout.c,v 1.43 1998/10/16 03:55:00 peter Exp $
*/
#include <sys/param.h>
@@ -232,8 +232,8 @@ exec_aout_imgact(imgp)
}
/*
- * Dump core, into a file named "progname.core", unless the process was
- * setuid/setgid.
+ * Dump core, into a file named as described in the comments for
+ * expand_name(), unless the process was setuid/setgid.
*/
int
aout_coredump(p)
@@ -248,7 +248,6 @@ aout_coredump(p)
char *name; /* name of corefile */
STOPEVENT(p, S_CORE, 0);
-
if (sugid_coredump == 0 && p->p_flag & P_SUGID)
return (EFAULT);
if (ctob(UPAGES + vm->vm_dsize + vm->vm_ssize) >=
@@ -257,7 +256,6 @@ aout_coredump(p)
name = expand_name(p->p_comm, p->p_ucred->cr_uid, p->p_pid);
if (name == NULL)
return (EFAULT); /* XXX -- not the best error */
-
NDINIT(&nd, LOOKUP, FOLLOW, UIO_SYSSPACE, name, p);
error = vn_open(&nd, O_CREAT | FWRITE, S_IRUSR | S_IWUSR);
free(name, M_TEMP);