Re: [PATCH 2/5][next] nfsd: avoid -Wflex-array-member-not-at-end warnings

2024-10-16 Thread NeilBrown
t sockaddr_legacy rq_saddr; > > I was hoping to find a struct definition that was simply a union of > sockaddr_in and sockaddr_in6, which we have in nfs-utils but I guess > not here in the kernel. > > Can we use "struct sockaddr_storage" safely here? Then above, > re

Re: [PATCH] SUNRPC: Replace strlcpy() with strscpy()

2023-11-16 Thread NeilBrown
cl_nodename)); > + ssize_t copied; > + > + copied = strscpy(clnt->cl_nodename, > + nodename, sizeof(clnt->cl_nodename)); > + > + clnt->cl_nodelen = copied < 0 > + ? sizeof(clnt->cl_nodename) - 1 > +