public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* recvfrom/recvmsg
@ 2002-11-08 21:59 Paul Larson
  2002-11-11  4:00 ` recvfrom/recvmsg David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Larson @ 2002-11-08 21:59 UTC (permalink / raw)
  To: davem; +Cc: lkml

[-- Attachment #1: Type: text/plain, Size: 856 bytes --]


I was looking through the ltp test recvfrom01 and saw that test #4 is
failing where it did not used to fail.  I think the test program is
partially at fault here since it was expecting it to pass when you call
recvfrom with fromlen == -1.

Right now (2.5.46-bk current) I'm getting -1, errno 22 returned, but in
2.5.46 it was passing without error.  Was this change intentional
(probably) and is that the correct errno to return.  I checked SuS, but
I don't see anything related to that exact condition.

There is another test in the same program that also looks like it should
be failing.  Recvfrom, testcase 3 tries to do a recvfrom with (struct
sockaddr *)-1 passed as the from buffer.  Right now, it is passing
without an error, but that doesn't seem correct.

The same exact situation happens in recvmsg01.

Thanks,
Paul Larson


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 240 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-11  3:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-08 21:59 recvfrom/recvmsg Paul Larson
2002-11-11  4:00 ` recvfrom/recvmsg David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox