[PATCH libinput] test: set the umask before msktemp to silence coverity
Peter Hutterer
peter.hutterer at who-t.net
Tue Apr 12 05:11:22 UTC 2016
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
test/path.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/test/path.c b/test/path.c
index 7d7c445..729ad86 100644
--- a/test/path.c
+++ b/test/path.c
@@ -28,6 +28,7 @@
#include <fcntl.h>
#include <libinput.h>
#include <stdio.h>
+#include <sys/stat.h>
#include <unistd.h>
#include "litest.h"
@@ -131,6 +132,7 @@ START_TEST(path_create_invalid_file)
char path[] = "/tmp/litest_path_XXXXXX";
int fd;
+ umask(002);
fd = mkstemp(path);
ck_assert_int_ge(fd, 0);
close(fd);
--
2.5.5
More information about the wayland-devel
mailing list