mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-12 11:20:10 +01:00
Fix api test keyfile write.
This commit is contained in:
@@ -250,7 +250,7 @@ static int _prepare_keyfile(const char *name, const char *passphrase, int size)
|
|||||||
{
|
{
|
||||||
int fd, r;
|
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) {
|
if (fd != -1) {
|
||||||
r = write(fd, passphrase, size);
|
r = write(fd, passphrase, size);
|
||||||
close(fd);
|
close(fd);
|
||||||
|
|||||||
Reference in New Issue
Block a user