From b65f6f6b69dfc149a983afd87c498615887ef5f2 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Thu, 1 Aug 2002 01:16:22 +0000 Subject: [PATCH] When invoking NDINIT() in preparation for CREATE, set SAVENAME since we'll use nd.ni_cnp later. Submitted by: green Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs --- sys/kern/uipc_usrreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index 2a9cf8b8217e..a946ff3dd47d 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -606,7 +606,7 @@ unp_bind(unp, nam, td) strncpy(buf, soun->sun_path, namelen); buf[namelen] = 0; /* null-terminate the string */ restart: - NDINIT(&nd, CREATE, NOFOLLOW | LOCKPARENT, UIO_SYSSPACE, + NDINIT(&nd, CREATE, NOFOLLOW | LOCKPARENT | SAVENAME, UIO_SYSSPACE, buf, td); /* SHOULD BE ABLE TO ADOPT EXISTING AND wakeup() ALA FIFO's */ error = namei(&nd);