summaryrefslogtreecommitdiff
path: root/ioctl.c
diff options
context:
space:
mode:
authorWichert Akkerman <wichert@deephackmode.org>2001-08-03 21:51:35 +0000
committerWichert Akkerman <wichert@deephackmode.org>2001-08-03 21:51:35 +0000
commit1c595a437d9a610b45b46da20be77aecd06e9d76 (patch)
tree5b4b997ab090e284d0bed8a0ade8327865d8d095 /ioctl.c
parentb50c90745809da023afe793f9ce19f39d5ca88ce (diff)
downloadstrace-1c595a437d9a610b45b46da20be77aecd06e9d76.tar.gz
strace-1c595a437d9a610b45b46da20be77aecd06e9d76.tar.bz2
strace-1c595a437d9a610b45b46da20be77aecd06e9d76.tar.xz
remember to shift ioctl masks as well
Diffstat (limited to 'ioctl.c')
-rw-r--r--ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ioctl.c b/ioctl.c
index 9286bab..dae9804 100644
--- a/ioctl.c
+++ b/ioctl.c
@@ -86,7 +86,7 @@ long code;
ioent.code = code;
#ifdef LINUX
- ioent.code &= (_IOC_NRMASK|_IOC_TYPEMASK);
+ ioent.code &= (_IOC_NRMASK<<_IOC_NRSHIFT) | (_IOC_TYPEMASK<<_IOC_TYPESHIFT);
#endif
iop = (struct ioctlent *) bsearch((char *) &ioent, (char *) ioctlent,
nioctlents, sizeof(struct ioctlent), compare);