diff options
author | rwatson <rwatson@FreeBSD.org> | 2002-08-01 01:16:22 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2002-08-01 01:16:22 +0000 |
commit | 07d1a754b06c2d22c01897140e53cde80802e605 (patch) | |
tree | 9311de634bab1a527b42e4072c99b2f92d1f9a94 /sys/kern/uipc_usrreq.c | |
parent | b151c78a3fe26af02191161cab9a9d9a7ef2bd04 (diff) | |
download | FreeBSD-src-07d1a754b06c2d22c01897140e53cde80802e605.zip FreeBSD-src-07d1a754b06c2d22c01897140e53cde80802e605.tar.gz |
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
Diffstat (limited to 'sys/kern/uipc_usrreq.c')
-rw-r--r-- | sys/kern/uipc_usrreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index 2a9cf8b..a946ff3 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); |