[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
libc0.3: ioctl() incorrectly decodes argument
From: |
Samuel Thibault |
Subject: |
libc0.3: ioctl() incorrectly decodes argument |
Date: |
Thu, 28 Jul 2005 02:03:09 +0200 |
User-agent: |
Mutt/1.5.9i-nntp |
Package: libc0.3
Version: 2.3.2.ds1-22
Severity: normal
Tags: patch, upstream
Hi,
The following code was failing with error
ioctl: (ipc/mig) server type check failure
#include <sys/ioctl.h>
#include <stdio.h>
int main(void)
{
if (ioctl(1, TIOCDRAIN) < 0)
perror("ioctl");
return 0;
}
And actually any ioctl with no parameter will trigger the same error. I
posted a bug and wrote the attached patch which corrects things. For
details, see upstream bts:
http://sources.redhat.com/bugzilla/show_bug.cgi?id=766
Regards,
Samuel
patch-ioctl
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- libc0.3: ioctl() incorrectly decodes argument,
Samuel Thibault <=