[LTP] [PATCH ltp] syscalls/bind03: Add version compare according to behaviour difference.

Cyril Hrubis chrubis@suse.cz
Fri Aug 31 11:34:55 CEST 2018


Hi!
> According to bind(2) manpge, bind() should return EINVAL when the socket 
> is already
> bound to an address.  Commit 0fb4455 actually change the errno to 
> EADDRINUSE, but
> i am not sure if this change is a expeceted behavior.

As Michal Kubecek writes in the commit message of the patch I've linked,
the kernel has changed the order of checks which returns different errno
than it used to for no good reason. I would like to be conservative in
this case and have the previous behavior restored, but I suppose that's
up to kernel guys to decide.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list