diff options
author | Werner Koch <wk@gnupg.org> | 2020-10-20 14:08:35 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2020-10-20 14:08:35 +0200 |
commit | 4dcef0e17836e8725c31a3b76f2bf7144345c808 (patch) | |
tree | e75dc82afa98ea964ee65fde05608a6148214ffe /sm | |
parent | w32: Allow Unicode filenames for dotlock (diff) | |
download | gnupg2-4dcef0e17836e8725c31a3b76f2bf7144345c808.tar.xz gnupg2-4dcef0e17836e8725c31a3b76f2bf7144345c808.zip |
Replace most calls to open by a new wrapper.
* common/sysutils.c (any8bitchar) [W32]: New.
(gnupg_open): New. Replace most calls to open by this.
* common/iobuf.c (any8bitchar) [W32]: New.
(direct_open) [W32]: Use CreateFileW if needed.
--
This is yet another step for full Unicode support on Windows.
GnuPG-bug-id: 5098
Diffstat (limited to 'sm')
-rw-r--r-- | sm/gpgsm.c | 2 |
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)); |