> hi,
>
> fchown on a socket is not portable.
oops, s/fchown/fchmod/
YAMAMOTO Takashi
>
> i don't think it makes sense even on linux. (not confirmed)
>
> YAMAMOTO Takashi
>
>
> diff --git a/lib/socket-util.c b/lib/socket-util.c
> index 12bbc71..2b75dee 100644
> --- a/lib/socket-util.c
> +++ b/lib/socket-util.c
> @@ -349,7 +349,7 @@ make_unix_socket(int style, bool nonblock, bool passcred
> OVS_UNUSED,
>
> error = make_sockaddr_un(bind_path, &un, &un_len, &dirfd);
> if (!error && (bind(fd, (struct sockaddr*) &un, un_len)
> - || fchmod(fd, S_IRWXU))) {
> + || chmod(bind_path, S_IRWXU))) {
> error = errno;
> }
> if (dirfd >= 0) {
> _______________________________________________
> discuss mailing list
> [email protected]
> http://openvswitch.org/mailman/listinfo/discuss
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss