[PATCH libinput] test: set the umask before msktemp to silence coverity

Hans de Goede hdegoede at redhat.com
Tue Apr 12 07:05:46 UTC 2016


Hi,

On 12-04-16 07:11, Peter Hutterer wrote:
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>

Reviewed-by: Hans de Goede <hdegoede at redhat.com>

Regards,

Hans


> ---
>   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);
>


More information about the wayland-devel mailing list