Fix api test keyfile write.

This commit is contained in:
Milan Broz
2014-01-12 13:39:15 +01:00
parent 7f93a49cc3
commit 5206543902

View File

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