no longer pass proc to vn_open (now in ndp)
authorJohn Heidemann <heideman@ucbvax.Berkeley.EDU>
Tue, 4 Feb 1992 15:26:55 +0000 (07:26 -0800)
committerJohn Heidemann <heideman@ucbvax.Berkeley.EDU>
Tue, 4 Feb 1992 15:26:55 +0000 (07:26 -0800)
SCCS-vsn: sys/kern/kern_sig.c 7.41

usr/src/sys/kern/kern_sig.c

index bfc498e..3280d02 100644 (file)
@@ -4,7 +4,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)kern_sig.c  7.40 (Berkeley) %G%
+ *     @(#)kern_sig.c  7.41 (Berkeley) %G%
  */
 
 #define        SIGPROP         /* include signal properties table */
  */
 
 #define        SIGPROP         /* include signal properties table */
@@ -1005,10 +1005,8 @@ coredump(p)
            p->p_rlimit[RLIMIT_CORE].rlim_cur)
                return (EFAULT);
        sprintf(name, "core.%s", p->p_comm);
            p->p_rlimit[RLIMIT_CORE].rlim_cur)
                return (EFAULT);
        sprintf(name, "core.%s", p->p_comm);
-       nd.ni_dirp = name;
-       nd.ni_segflg = UIO_SYSSPACE;
-       nd.ni_cnd.cn_proc = p;
-       if (error = vn_open(&nd, p, O_CREAT|FWRITE, 0644))
+       NDINIT(&nd, LOOKUP, FOLLOW, UIO_SYSSPACE, name, p);
+       if (error = vn_open(&nd, O_CREAT|FWRITE, 0644))
                return (error);
        vp = nd.ni_vp;
        if (vp->v_type != VREG || VOP_GETATTR(vp, &vattr, cred, p) ||
                return (error);
        vp = nd.ni_vp;
        if (vp->v_type != VREG || VOP_GETATTR(vp, &vattr, cred, p) ||