Subject: Re: cvs commit: src/lib/libc/db/hash hash_buf.c
To: Jon Ribbens <jon@oaktree.co.uk>
From: matthew green <mrg@eterna.com.au>
List: tech-userlevel
Date: 10/19/1996 03:06:43
here it is.

.mrg.


Index: kern_sig.c
===================================================================
RCS file: /cvsroot/src/sys/kern/kern_sig.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -c -r1.57 -r1.58
*** kern_sig.c	1996/10/13 02:32:34	1.57
--- kern_sig.c	1996/10/18 08:39:34	1.58
***************
*** 1,4 ****
! /*	$NetBSD: kern_sig.c,v 1.57 1996/10/13 02:32:34 christos Exp $	*/
  
  /*
   * Copyright (c) 1982, 1986, 1989, 1991, 1993
--- 1,4 ----
! /*	$NetBSD: kern_sig.c,v 1.58 1996/10/18 08:39:34 mrg Exp $	*/
  
  /*
   * Copyright (c) 1982, 1986, 1989, 1991, 1993
***************
*** 1045,1063 ****
  	register struct proc *p;
  {
  	register struct vnode *vp;
- 	register struct pcred *pcred = p->p_cred;
- 	register struct ucred *cred = pcred->pc_ucred;
  	register struct vmspace *vm = p->p_vmspace;
  	struct nameidata nd;
  	struct vattr vattr;
  	int error, error1;
  	char name[MAXCOMLEN+6];		/* progname.core */
  	struct core core;
  
! 	if (pcred->p_svuid != pcred->p_ruid ||
! 	    cred->cr_uid != pcred->p_ruid ||
! 	    pcred->p_svgid != pcred->p_rgid ||
! 	    cred->cr_gid != pcred->p_rgid)
  		return (EFAULT);
  	if (USPACE + ctob(vm->vm_dsize + vm->vm_ssize) >=
  	    p->p_rlimit[RLIMIT_CORE].rlim_cur)
--- 1045,1059 ----
  	register struct proc *p;
  {
  	register struct vnode *vp;
  	register struct vmspace *vm = p->p_vmspace;
+ 	register struct ucred *cred = p->p_cred->pc_ucred;
  	struct nameidata nd;
  	struct vattr vattr;
  	int error, error1;
  	char name[MAXCOMLEN+6];		/* progname.core */
  	struct core core;
  
! 	if (p->p_flag & P_SUGID)
  		return (EFAULT);
  	if (USPACE + ctob(vm->vm_dsize + vm->vm_ssize) >=
  	    p->p_rlimit[RLIMIT_CORE].rlim_cur)