* callback.c (fdbad): Return EBADF rather than EINVAL for bad
file descriptors.
This commit is contained in:
parent
7f64858795
commit
fee17b3562
@ -1,3 +1,8 @@
|
||||
2011-02-25 Kevin Buettner <kevinb@redhat.com>
|
||||
|
||||
* callback.c (fdbad): Return EBADF rather than EINVAL for bad
|
||||
file descriptors.
|
||||
|
||||
2011-02-14 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* hw-alloc.c (hw_alloc_data): Delete zalloc_p.
|
||||
|
@ -121,7 +121,7 @@ fdbad (p, fd)
|
||||
{
|
||||
if (fd < 0 || fd > MAX_CALLBACK_FDS || p->fd_buddy[fd] < 0)
|
||||
{
|
||||
p->last_errno = EINVAL;
|
||||
p->last_errno = EBADF;
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user