commit 46ce341b2f176c2611f12ac390adf862e932eb02
Author: Will Deacon <[email protected]>
Date: Fri May 25 11:39:13 2012 +0100
pipe: return -ENOIOCTLCMD instead of -EINVAL on unknown ioctl
command
This commit (v3.4-8603-g46ce341 in linux-stable) changed pipe_ioctl,
so vfs_ioctl() now returns ENOTTY instead of EINVAL.
Signed-off-by: Jan Stancek <[email protected]>
---
testcases/kernel/syscalls/sockioctl/sockioctl01.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/testcases/kernel/syscalls/sockioctl/sockioctl01.c b/testcases/kernel/syscalls/sockioctl/sockioctl01.c
index 2b51b26..3300423 100644
--- a/testcases/kernel/syscalls/sockioctl/sockioctl01.c
+++ b/testcases/kernel/syscalls/sockioctl/sockioctl01.c
@@ -202,6 +202,13 @@ void setup0(void)
if ((s = open("test", O_RDWR)) == -1)
tst_brkm(TBROK, cleanup, "Could not open test - "
"errno: %s", strerror(errno));
+ /*
+ * kernel commit 46ce341b2f176c2611f12ac390adf862e932eb02
+ * changed -EINVAL to -ENOIOCTLCMD, so vfs_ioctl now
+ * returns -ENOTTY.
+ */
+ if ((tst_kvercmp(3, 5, 0)) >= 0)
+ tdat[testno].experrno = ENOTTY;
}
}
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list