From 5206543902f3ff03b5ad14d70f5f5c2637e71a9d Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Sun, 12 Jan 2014 13:39:15 +0100 Subject: [PATCH] Fix api test keyfile write. --- tests/api-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/api-test.c b/tests/api-test.c index 08dd2538..65de602e 100644 --- a/tests/api-test.c +++ b/tests/api-test.c @@ -250,7 +250,7 @@ static int _prepare_keyfile(const char *name, const char *passphrase, int size) { int fd, r; - fd = open(name, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR); + fd = open(name, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR|S_IWUSR); if (fd != -1) { r = write(fd, passphrase, size); close(fd);