[LTP] [PATCH v2] syscalls/statx: Add judgment to the MODE value
Zou Wei
zou_wei@huawei.com
Mon Mar 30 04:44:23 CEST 2020
v2:
Clear current umask by umask(0) in setup()
Signed-off-by: Zou Wei <zou_wei@huawei.com>
---
testcases/kernel/syscalls/statx/statx01.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/testcases/kernel/syscalls/statx/statx01.c b/testcases/kernel/syscalls/statx/statx01.c
index 4f9d582..b66c2b6 100644
--- a/testcases/kernel/syscalls/statx/statx01.c
+++ b/testcases/kernel/syscalls/statx/statx01.c
@@ -147,6 +147,8 @@ static void setup(void)
{
char data_buff[SIZE];
int file_fd;
+
+ umask(0);
memset(data_buff, '@', sizeof(data_buff));
--
2.6.2
More information about the ltp
mailing list