All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH v2] syscalls/statx: Add judgment to the MODE value
@ 2020-03-30  2:44 Zou Wei
  0 siblings, 0 replies; only message in thread
From: Zou Wei @ 2020-03-30  2:44 UTC (permalink / raw)
  To: ltp

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-03-30  2:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-30  2:44 [LTP] [PATCH v2] syscalls/statx: Add judgment to the MODE value Zou Wei

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.