Skip to contentSkip to conversation

syscalls/statx: Add judgment to the MODE value

PATCH New Zou Wei 1 participant 1 message Mar 30, 2020

lore
Share & tools
lore

Zou Wei

author
#0 lore raw

PATCH v2 1/1 syscalls/statx: Add judgment to the MODE value

v2:
Clear current umask by umask(0) in setup()

---
 testcases/kernel/syscalls/statx/statx01.c | 2 ++
 1 file changed, 2 insertions(+)
testcases/kernel/syscalls/statx/statx01.c +2 -0
index 4f9d582..b66c2b6 100644
@@ -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