--- vg_syscall_mem.c.orig	Thu May 23 09:22:21 2002
+++ vg_syscall_mem.c	Thu May 23 17:29:17 2002
@@ -1990,7 +1990,7 @@
             default: {
                UInt dir  = _IOC_DIR(arg2);
                UInt size = _IOC_SIZE(arg2);
-               if (/* size == 0 || */ dir == _IOC_NONE) {
+               if (dir == _IOC_NONE && size > 0) {
                   VG_(message)(Vg_UserMsg, 
                      "Warning: noted but unhandled ioctl 0x%x"
                      " with no size/direction hints",
