aboutsummaryrefslogtreecommitdiffstats
path: root/sm/gpgsm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sm/gpgsm.c')
-rw-r--r--sm/gpgsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sm/gpgsm.c b/sm/gpgsm.c
index ef5f801c8..e461f99fe 100644
--- a/sm/gpgsm.c
+++ b/sm/gpgsm.c
@@ -2324,7 +2324,7 @@ open_read (const char *filename)
fd = check_special_filename (filename, 0, 0);
if (fd != -1)
return fd;
- fd = open (filename, O_RDONLY | O_BINARY);
+ fd = gnupg_open (filename, O_RDONLY | O_BINARY, 0);
if (fd == -1)
{
log_error (_("can't open '%s': %s\n"), filename, strerror (errno));