diff options
author | bde <bde@FreeBSD.org> | 1999-01-01 14:41:51 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1999-01-01 14:41:51 +0000 |
commit | 779777b4597786f840c7bf050f36a843ad75229b (patch) | |
tree | 8561a098469c83a37c6c73cbcbccb5fea1b1b46e /sys | |
parent | b55ee2b7add6c886700dd36a3979e33a3fab2358 (diff) | |
download | FreeBSD-src-779777b4597786f840c7bf050f36a843ad75229b.zip FreeBSD-src-779777b4597786f840c7bf050f36a843ad75229b.tar.gz |
Fixed bitrot in a comment. Fixed some style bugs.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/imgact_aout.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/kern/imgact_aout.c b/sys/kern/imgact_aout.c index 446946e..9fbd203 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); |