-set RD_ONLY flag

This commit is contained in:
Christian Grothoff 2022-08-01 11:02:25 +02:00
parent 31bfe5234e
commit 6006b63c66
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
3 changed files with 3 additions and 3 deletions

View File

@ -1213,7 +1213,7 @@ import_key (void *cls,
}
fd = open (filename,
O_CLOEXEC);
O_RDONLY | O_CLOEXEC);
if (-1 == fd)
{
GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING,

View File

@ -904,7 +904,7 @@ import_key (void *cls,
}
fd = open (filename,
O_CLOEXEC);
O_RDONLY | O_CLOEXEC);
if (-1 == fd)
{
GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING,

View File

@ -1623,7 +1623,7 @@ import_key (void *cls,
}
fd = open (filename,
O_CLOEXEC);
O_RDONLY | O_CLOEXEC);
if (-1 == fd)
{
GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING,