xiaoxiang781216 commented on code in PR #7912: URL: https://github.com/apache/nuttx/pull/7912#discussion_r1051570647
########## net/local/local_connect.c: ########## @@ -238,7 +238,9 @@ int psock_local_connect(FAR struct socket *psock, { FAR struct local_conn_s *client; FAR struct sockaddr_un *unaddr = (FAR struct sockaddr_un *)addr; + FAR const char *unpath = unaddr->sun_path; FAR struct local_conn_s *conn = NULL; + local_type_e type = LOCAL_TYPE_PATHNAME; Review Comment: Done. ########## net/local/local_sockif.c: ########## @@ -399,8 +400,15 @@ static int local_getsockname(FAR struct socket *psock, /* Copy the path into the user address structure */ - strlcpy(unaddr->sun_path, conn->lc_path, namelen); - unaddr->sun_path[pathlen - 1] = '\0'; + if (conn->lctype = LOCAL_TYPE_ABSTRACT) Review Comment: Done. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org