Page MenuHomeFreeBSD

D58768.diff
No OneTemporary

D58768.diff

diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c
--- a/sys/kern/uipc_usrreq.c
+++ b/sys/kern/uipc_usrreq.c
@@ -294,7 +294,7 @@
struct thread *, struct socket **);
static int unp_connect_peer(struct socket *, struct unpcb *,
struct sockaddr **, struct thread *, bool);
-static int unp_connectat_peer(struct thread *, int, const char *,
+static int unp_resolve_peer(struct thread *, int, const char *,
struct socket **);
static int unp_vnode_peer(struct vnode *, struct thread *,
struct socket **);
@@ -3006,7 +3006,7 @@
else
sa = NULL;
- error = unp_connectat_peer(td, fd, buf, &so2);
+ error = unp_resolve_peer(td, fd, buf, &so2);
if (error != 0)
goto out;
error = unp_connect_peer(so, sotounpcb(so2), &sa, td,
@@ -3090,9 +3090,9 @@
}
/*
- * Resolve a connectat(2) target -- descriptor 'fd' together with the pathname
- * in 'buf' (null when len == 0) -- to a referenced peer unix socket in
- * '*so2p', covering all four ways a peer can be named:
+ * Resolve a peer named by descriptor 'fd' together with the pathname in 'buf'
+ * -- empty to name the peer by the descriptor alone -- to a referenced peer
+ * unix socket in '*so2p', covering all four ways a peer can be named:
*
* empty path + socket fd the descriptor is the peer socket
* empty path + O_PATH vnode EMPTYPATH resolves the socket's vnode
@@ -3102,7 +3102,7 @@
* The caller must release the returned socket with sorele().
*/
static int
-unp_connectat_peer(struct thread *td, int fd, const char *buf,
+unp_resolve_peer(struct thread *td, int fd, const char *buf,
struct socket **so2p)
{
struct nameidata nd;

File Metadata

Mime Type
text/plain
Expires
Thu, Aug 20, 11:15 PM (6 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36529166
Default Alt Text
D58768.diff (1 KB)

Event Timeline