summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* w32: Use _putenv_s when available.HEADmasterNIIBE Yutaka2023-05-171-4/+28
| | | | | | | | | * src/sysutils.c (_gpgrt_setenv): Use _putenv_s when the macro _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES is defined. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* gpgrt-config: Simplify to set gpgrt_libdir.NIIBE Yutaka2023-04-101-6/+3
| | | | | | | | * src/gpgrt-config.in (determine_gpgrt_libdir): Merge the two cases. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* Release 1.47libgpg-error-1.47gpgrt-1.47Werner Koch2023-04-062-3/+3
|
* core: New error codes for PUKs and reset codes.Werner Koch2023-04-062-1/+4
| | | | | | | | * src/err-codes.h.in (GPG_ERR_BAD_PUK): New (GPG_ERR_NO_RESET_CODE, GPG_ERR_BAD_RESET_CODE): New. -- Also updated the German translation
* core: Add GPG_ERR_SOURCE_TKD.NIIBE Yutaka2023-04-041-1/+2
| | | | | | | | * src/err-sources.h.in (GPG_ERR_SOURCE_TKD): New. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* m4: Fix behavior with older gpg-error-config and gpgrt-config.NIIBE Yutaka2023-04-011-1/+2
| | | | | | | | | | | | * src/gpg-error.m4 (_AM_PATH_GPGRT_CONFIG): Set the variable gpg_error_config_version on error with gpgrt-config. -- When detecting older gpgrt-config (<= 1.35), make sure to set the variable. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* m4: Fallback to $possible_libdir1, when not found with $CC.NIIBE Yutaka2023-03-231-7/+4
| | | | | | | | | | * src/gpg-error.m4: Try $possible_libdir1 for gpgrt_libdir. -- GnuPG-bug-id: 6388 Reported-by: Andrew Collier <acollier@undo.io> Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* Avoid segv in logging with improper use of the "socket://" .Werner Koch2023-03-212-2/+6
| | | | | | | | | * src/logging.c (fun_writer): Protect calling socket_dir_cb if not set. -- If no callback has been registered the use of the "socket://" shortcut caused a segv.
* core: Fix translations of --helpWerner Koch2022-12-161-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | * src/argparse.c (show_help): Do not translate the empty string. -- PO files use the empty string for meta information. However, to mark the end of the heder group we also use an empty string and that one gets translated - boom. Example of this error: [...] -u, --local-user USER-ID [...] Project-Id-Version: gnupg-2.3.0 Report-Msgid-Bugs-To: translations@gnupg.org PO-Revision-Date: 2022-10-07 09:52+0200 Last-Translator: Werner Koch <wk@gnupg.org> Language-Team: German <de@li.org> Language: de MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; : (Auf der "man"-Seite ist eine volls[...]
* Handle strerror_r failure on non-GNU systems.NIIBE Yutaka2022-12-051-1/+15
| | | | | | | | | * src/strerror.c (system_strerror_r): Make sure to fill the buffer. -- Suggested-by: John Scott <jscott@posteo.net> Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* gpgrt-config: Support a simple invocation.NIIBE Yutaka2022-11-291-3/+73
| | | | | | | | | * src/gpgrt-config.in (determine_gpgrt_libdir): New. -- GnuPG-bug-id: 6288 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* gpg-error.m4: Factor out _AM_PATH_GPGRT_CONFIG.NIIBE Yutaka2022-11-151-17/+32
| | | | | | | | | | | | * src/gpg-error.m4 (_AM_PATH_POSSIBLE_GPG_ERROR_CONFIG): New. (_AM_PATH_GPGRT_CONFIG): New. (AM_PATH_GPG_ERROR): Use _AM_PATH_POSSIBLE_GPG_ERROR_CONFIG and _AM_PATH_GPGRT_CONFIG. -- GnuPG-bug-id: 6273 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* Revert "spawn: Expose spawn functions."NIIBE Yutaka2022-11-155-19/+27
| | | | | | | | | | | This reverts commit 43c1e85fe29a52a9debc068d97c5860a4694b821. -- It's a bit early to expose these functions. GnuPG-bug-id: 6249 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* spawn: Introduce gpgrt_process_t and use it for spawn API.NIIBE Yutaka2022-11-046-126/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac (AC_FUNC_FORK): No use. * src/gpg-error.h.in (@define:gpgrt_process_t@): New. (@define:pid_t@): Remove. (gpgrt_spawn_process, gpgrt_spawn_process_fd): Use gpgrt_process_t. (gpgrt_wait_process, gpgrt_wait_processes): Likewise. (gpgrt_kill_process, gpgrt_release_process): Likewise. * src/gpgrt-int.h (_gpgrt_spawn_process): Likewise. (_gpgrt_spawn_process_fd): Likewise. (_gpgrt_wait_process, _gpgrt_wait_processes): Likewise. (_gpgrt_kill_process, _gpgrt_release_process): Likewise. * src/mkheader.c (write_special): Handle @define:gpgrt_process_t@. Remove handling of @define:pid_t@. * src/spawn-posix.c (_gpgrt_spawn_process): Use gpgrt_process_t. (_gpgrt_spawn_process_fd): Likewise. (_gpgrt_wait_process, _gpgrt_wait_processes): Likewise. (_gpgrt_kill_process, _gpgrt_release_process): Likewise. * src/spawn-w32.c (_gpgrt_spawn_process): Use gpgrt_process_t. (_gpgrt_spawn_process_fd): Likewise. (_gpgrt_wait_process, _gpgrt_wait_processes): Likewise. (_gpgrt_kill_process, _gpgrt_release_process): Likewise. -- GnuPG-bug-id: 6249 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* spawn: Fix spawn_cb of gpgrt_spawn_process_fd.NIIBE Yutaka2022-10-318-24/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/gpg-error.def.in (gpgrt_close_all_fds): New. * src/gpg-error.vers (gpgrt_close_all_fds): New. * src/gpg-error.h.in (GPGRT_SPAWN_INHERIT_FILE): New. (gpgrt_spawn_process_fd): SPAWN_CB having return value. * src/gpgrt-int.h (_gpgrt_spawn_process_fd): SPAWN_CB change. * src/spawn-posix.c (_gpgrt_close_all_fds): Rename from close_all_fds, and export it. (do_exec): Support the case not closing fds. (_gpgrt_spawn_process_fd): Handle return value of SPAWN_CB to determine closing all fds or not. * src/spawn-w32.c (_gpgrt_spawn_process_fd): Run SPAWN_CB. (_gpgrt_close_all_fds): New. * src/visibility.c (gpgrt_close_all_fds): New. * src/visibility.h (gpgrt_close_all_fds): New. -- Now, we have the API of gpgrt_spawn_process_fd for POSIX and Windows. Giving portable semantics for spawning a process is difficult, and it is still difficult for users to writing a function for SPAWN_CB with portability, but gpgrt_spawn_process_fd gives the feature of spawning a process. GnuPG-bug-id: 6249 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* spawn: Expose spawn functions.NIIBE Yutaka2022-10-275-29/+17
| | | | | | | | | | | | | * src/gpg-error.def.in: Update. * src/gpg-error.vers: Update. * src/gpg-error.h.in: Add declarations. * src/visibility.c: Add implementations. * src/visibility.h: Expose them. -- GnuPG-bug-id: 6249 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* Fix the comment for _gpgrt_spawn_process_fd, it's a variant.NIIBE Yutaka2022-10-271-10/+9
| | | | | | -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* gpgrt_spawn_process, gpgrt_spawn_process_fd: Change the API.NIIBE Yutaka2022-10-205-30/+39
| | | | | | | | | | | | | | | | | | | | * src/gpg-error.h.in (gpgrt_spawn_process): Remove PREEXEC argument. (gpgrt_spawn_process_fd): Add AFTER_FORK_CB and AFTER_FORK_CB_ARG. * src/gpgrt-int.h (_gpgrt_spawn_process): Remove PREEXEC argument. (_gpgrt_spawn_process_fd): Add AFTER_FORK_CB and AFTER_FORK_CB_ARG. * src/spawn-posix.c (do_exec): Remove PREEXEC argument. (_gpgrt_spawn_process): Remove PREEXEC argument. (_gpgrt_spawn_process_fd): Add AFTER_FORK_CB and AFTER_FORK_CB_ARG. (_gpgrt_spawn_process_detached): Follow the change of do_exec. * src/spawn-w32.c (_gpgrt_spawn_process): Remove PREEXEC argument. (_gpgrt_spawn_process_fd): Add AFTER_FORK_CB and AFTER_FORK_CB_ARG. * src/visibility.c (gpgrt_spawn_process): Remove PREEXEC argument. (gpgrt_spawn_process_fd): Add AFTER_FORK_CB and AFTER_FORK_CB_ARG. -- GnuPG-bug-id: 6249 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* spawn: Update changes from gnupg.NIIBE Yutaka2022-10-194-10/+32
| | | | | | | | | | | | | | | | | | | * src/gpg-error.h.in (GPGRT_SPAWN_KEEP_STDIN): New. (GPGRT_SPAWN_KEEP_STDOUT, GPGRT_SPAWN_KEEP_STDERR): New. * src/gpgrt-int.h: Add comment. * src/spawn-posix.c (do_exec): Add the argument FLAGS. (_gpgrt_spawn_process): Add FLAGS. (_gpgrt_spawn_process_fd): Follow the change. (_gpgrt_spawn_process_detached): Likewise. * src/spawn-w32.c (_gpgrt_spawn_process): Handle FLAGS. -- This commit imports GnuPG master commit of: 6d6438a361d25f3b269f702e017f5e39fd1f5c38 GnuPG-bug-id: 6249 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* m4: Fix detection of gpgrt's libdir.Damien Goutte-Gattat2022-09-211-1/+5
| | | | | | | | | | | | | | | | | | | | | * src/gpg-error.m4 (GPGRT_CONFIG): Handle the case where none of the system lib directories contain a pkgconfig subdirectory. -- When we look for gpgrt_libdir, there's a corner case if we had been able to obtain system libdirs (using `cc -print-search-dirs`) *but* none of those system libdirs happen to contain a valid pkgconfig subdirectory (which may be unlikely but can and does happen when cross-compiling). We do test for the case where we have not obtained any system libdir at all, in which case we fallback to `${gpgrt_prefix}/lib` (`possible_libdir1`), but we do not test if the list of libdir candidates is reduced to nothing after we have eliminated all the libdirs that do not contain a pkgconfig subdirectory. This patch adds a test for this precise case. Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
* Remove extra semicolons.NIIBE Yutaka2022-09-152-11/+11
| | | | | | | | | * src/gpgrt-int.h: Remove extra. * src/visibility.h: Likewise. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* Silence compiler warnings.NIIBE Yutaka2022-09-082-3/+3
| | | | | | | | | * src/argparse.c (show_version): It's no args. (_gpgrt_log_get_fd, _gpgrt_log_get_stream): Likewise. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* gpgrt-config: Strip system paths for --cflags and --libs.NIIBE Yutaka2022-08-251-4/+10
| | | | | | | | | | | * src/gpgrt-config.in: Strip -I and -L with system paths. -- This behavior is more compatible to pkg-config. GnuPG-bug-id: 6136 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* build: Only install gpg-error-config when enabled.NIIBE Yutaka2022-08-151-0/+5
| | | | | | | | | | * configure.ac (INSTALL_GPG_ERROR_CONFIG): New. * src/Makefile.am (bin_SCRIPTS, noinst_SCRIPTS): Conditionalize. -- GnuPG-bug-id: 5683 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* w32: Convert REG_DWORD values to a string.Werner Koch2022-08-021-0/+15
| | | | * src/w32-reg.c (_gpgrt_w32_reg_query_string): Handle REG_DWORD
* w32: Fix for bidirectional pipe.NIIBE Yutaka2022-07-281-0/+6
| | | | | | | | | | * src/estream.c (func_w32_seek): Return an error with ESPIPE, when it's pipe. -- GnuPG-bug-id: 6112 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* Remove Windows CE support.NIIBE Yutaka2022-06-2815-423/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * contrib/*: Remove. * Makefile.am: Remove contrib. * autogen.sh: Remove Windows CE support. * configure.ac (have_w32ce_system): Remove. * src/Makefile.am [HAVE_W32CE_SYSTEM] (extra_cppflags): Remove. (gpg_extra_headers): Remove. (EXTRA_DIST): Remove mkw32errmap.c and w32ce-add.h (BUILT_SOURCES): Remove mkw32errmap.map.c. (tmp_files): Remove mkw32errmap.tab.h mkw32errmap.map.c (CLEANFILES): Likewise. * src/estream-printf.c [HAVE_W32CE_SYSTEM]: Remove. * src/estream.c [HAVE_W32CE_SYSTEM]: Remove. * src/gpg-error.def.in [HAVE_W32CE_SYSTEM]: Remove. * src/gpgrt-int.h: Fix comment. * src/init.c [HAVE_W32CE_SYSTEM]: Remove. * src/init.h [HAVE_W32CE_SYSTEM]: Remove. * src/mkheader.c: Remove Windows CE support. * src/mkw32errmap.c, src/w32ce-add.h: Remove. * src/spawn-posix.c [HAVE_W32CE_SYSTEM]: Remove. * src/spawn-w32.c [HAVE_W32CE_SYSTEM]: Remove. * src/sysutils.c [HAVE_W32CE_SYSTEM]: Remove. * src/w32-estream.c [HAVE_W32CE_SYSTEM]: Remove. * src/w32-reg.c [HAVE_W32CE_SYSTEM]: Remove. * tests/Makefile.am [HAVE_W32CE_SYSTEM]: Remove. -- GnuPG-bug-id: 5912 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* logging: Fix the previous commit.NIIBE Yutaka2022-04-071-1/+1
| | | | | | * src/logging.c (set_file_fd): Open with append mode. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* logging: Fix gpgrt_log_get_fd for file.NIIBE Yutaka2022-04-071-68/+21
| | | | | | | | | | | | | | * src/logging.c (fun_writer): Only use this for socket writing. (set_file_fd): Use es_stderr when "-". Use the stream by _gpgrt_fdopen when FD is specified. Use the stream by _gpgrt_fopen when name is not socket. Only use the stream by _gpgrt_fopencookie for socket. [HAVE_W32CE_SYSTEM]: Remove W32CE support. -- GnuPG-bug-id: 5922 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* w32: Add ES_SYSHD_SOCK support for gpgrt_sysopen.NIIBE Yutaka2022-04-044-2/+264
| | | | | | | | | | | | | | | | * src/mkheader.c (write_special): Support @SOCKET_t@ substitution. * src/gpgrt-int.h (gpgrt_stream_backend_kind_t): Add BACKEND_SOCK. * src/gpg-error.h.in (struct _gpgrt_syshd): Use @SOCKET_t@. * src/estream.c [HAVE_W32_SYSTEM] (estream_cookie_sock_t): New. [HAVE_W32_SYSTEM] (func_sock_create, func_sock_read): New. [HAVE_W32_SYSTEM] (func_sock_write, func_sock_seek): New. [HAVE_W32_SYSTEM] (func_sock_destroy, func_sock_ioctl): New. [HAVE_W32_SYSTEM] (estream_functions_sock, do_sockopen): New. [HAVE_W32_SYSTEM] (do_sysopen): Call do_sockopen. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* w32: Fix handle_to_pid for MinGW-w64.NIIBE Yutaka2022-03-291-7/+10
| | | | | | | | | * src/spawn-w32.c (handle_to_pid): Use pid_t to coerce the type. -- GnuPG-bug-id: 4656 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* core: Fix support of posix-lock for FreeBSD.NIIBE Yutaka2022-03-281-1/+35
| | | | | | | | | | | | | | | * src/posix-lock.c [__FreeBSD__] (use_pthread_p): Use pthread_key_create to determine if it's linked to lpthread or not. -- This is from glthread_in_use in gnulib/lib/glthread/threadlib.c. On FreeBSD, pthread_key_create in there in libc (stub function) as well as -lpthread (real one), while pthread_create is not available in libc. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* w32: Fix for MinGW which doesn't define EOPNOTSUPP.NIIBE Yutaka2022-03-251-0/+4
| | | | | | | | | | * src/w32-estream.c: Add EOPNOTSUPP. -- GnuPG-bug-id: 5890 Reported-by: Eli Zaretskii Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* w32: Support file names longer than MAX_PATH.Werner Koch2022-03-049-58/+327
| | | | | | | | | | | | | | | | | | | | | | | | * src/sysutils.c (any8bitchar): Remove. (_gpgrt_fname_to_wchar): New. (_gpgrt_mkdir): Use instead of plain utf8 conversion. (_gpgrt_access): Reimplement using GetFileAttributesW so that long files names are supported. * src/estream.c (_gpgrt_w32_get_last_err_code): New. (func_file_create_w32): New. (_gpgrt_fopen): Handle the "sysopen" mode flag. Support mapping of /dev/null. (_gpgrt_freopen): Support mapping of /dev/null. * src/w32-gettext.c (load_domain): Allow long file names. * src/visibility.c (gpgrt_free_wchar): Make function public. (gpgrt_fname_to_wchar): Ditto. (gpgrt_utf8_to_wchar): Ditto. (gpgrt_wchar_to_utf8): Ditto. * src/w32-add.h (gpgrt_free_wchar): New prototype. (gpgrt_fname_to_wchar): Ditto. (gpgrt_utf8_to_wchar): Ditto. (gpgrt_wchar_to_utf8): Ditto. * src/gpg-error.def.in: Add them here too.
* gpg-error.m4: Fix use with older gpgrt-config (< 1.33).NIIBE Yutaka2022-02-171-1/+2
| | | | | | | | | | | * src/gpg-error.m4: When gpgrt-config doesn't work expected for gpg-error.pc, unset GPGRT_CONFIG. -- Found the issue in the libgcrypt build with libgpg-error 1.31. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* Release 1.44libgpg-error-1.44gpgrt-1.44Werner Koch2022-01-273-3/+4
| | | | * configure.ac: Bump LT version to C32/A32/R2.
* core: Fix returning of option attributes for options with args.Werner Koch2022-01-251-0/+11
| | | | | | * src/argparse.c (_gpgrt_argparse): Set attributes info flags -- GnuPG-bug-id: 5799
* tests: Fix gpg-error-config-test for PKG_CONFIG_LIBDIR.NIIBE Yutaka2021-12-171-0/+4
| | | | | | | | | * src/gpg-error-config-test.sh.in: Clear PKG_CONFIG_LIBDIR. -- GnuPG-bug-id: 5740 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* build: Fix dependency to gpg-error-config-test.sh.NIIBE Yutaka2021-11-191-1/+1
| | | | | | | | | | * src/Makefile.am (gpg-error-config): It depends on configure generated gpg-error-config-test.sh. -- GnuPG-bug-id: 5696 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* build: Fix for configure generated files.NIIBE Yutaka2021-11-121-3/+3
| | | | | | | | | | | * src/Makefile.am (bin_SCRIPTS): Add gpgrt-config. (EXTRA_DIST): Add gpgrt-config.in and gpg-error-config-test.sh.in. (CLEANFILES): Add configure generated files. -- Fixes-commit: 7a7caf4ba1c460c9c36f754fcd0ebfeb4aa5cc6a Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* estream: Only include sys/select.h when needed.NIIBE Yutaka2021-11-041-3/+4
| | | | | | | | | * src/estream.c: The select function is only used when poll is not available. So, let it include the header file only when needed. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* Release 1.43libgpg-error-1.43gpgrt-1.43Werner Koch2021-11-032-2/+2
|
* argparse: Add more system variables.Werner Koch2021-11-031-4/+31
| | | | | | | * src/argparse.c (get_var): Fix "_windows", add "_gpgrtversion" and "strusageN". (handle_meta_if): Avoid evaluating inactive branches. * tests/t-argparse.conf: Add a few other outputs.
* argparse: Add support to read values from the Windows Registry.Werner Koch2021-10-311-56/+623
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/argparse.c (struct variable_s): New. (struct _gpgrt_argparse_internal_s): New fields expand, if_cond, if_active and vartbl. (deinitialize): Free vartbl. (initialize): Clear new vars. (get_var): New. (substitute_vars): New. (set_variable): New. (handle_meta_if): New. (handle_meta_let): New. (handle_meta_getenv): New. (handle_meta_echo): Re-implement in terms of variabale substitution. (handle_meta_expand): New. (handle_metacmd): Add new meta commands. (_gpgrt_argparse): Expand values if enabled. (_gpgrt_argparse): Take care of conditions. (_gpgrt_argparser): Reset some state at the end of a file. * tests/etc/t-argparse.conf: Adjust for changed system variables. * tests/t-argparse.c (my_strusage): Add a value for a version test. (main): Add new option "street". * tests/t-argparse.conf: A couple if additions for the new conditions. -- The whole thing is actually only for here for doing this [let tkey HKLM\Foo\Bar\GnuPG:trusted-key-1] [if $tkey] trusted-key $tkey [fi] But we are hackers and tend to make things more complicated^Wflexible. Documentation will be done eventually. Signed-off-by: Werner Koch <wk@gnupg.org>
* core: new internal function _gpgrt_w32_reg_get_string.Werner Koch2021-10-222-6/+56
| | | | | | | | | | * src/w32-reg.c (_gpgrt_w32_reg_query_string): Allow abbreviated root names. (_gpgrt_w32_reg_get_string): New. -- This should eventually be made public. Noet that we have a copy in gnupg.
* gpgrt-config: Fix behavior when PKG_CONFIG_LIBDIR="".NIIBE Yutaka2021-09-101-1/+1
| | | | | | | | | * src/gpgrt-config.in: Correctly detect the case. -- GnuPG-bug-id: 5595 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* posix-lock: Support GNU C library 2.34 or later.NIIBE Yutaka2021-08-061-2/+5
| | | | | | | | | | | * configure.ac: Add check for sys/single_threaded.h. * src/posix-lock.c [USE_POSIX_THREADS_FROM_LIBC]: Use __libc_single_threaded to detect if it's single threaded. -- GnuPG-bug-id: 5547 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* core: Minor clean up.NIIBE Yutaka2021-08-051-3/+0
| | | | | | * src/stringutils.c: Remove inclusion of pwd.h. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* build: Fix --disable-threads.NIIBE Yutaka2021-06-211-1/+1
| | | | | | | | | | | * src/gen-lock-obj.sh: Fix generating '}}}'. -- GnuPG-bug-id: 5495 Reported-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Fixes-commit: 1fb90a7da186ee2ee098a666f6f3a35bb1720e59 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* core: Avoid truncation of error message in the middle of a character.NIIBE Yutaka2021-06-081-0/+25
| | | | | | | | | | * configure.ac (AM_LANGINFO_CODESET): Add. * src/strerror.c (_gpg_strerror_r): Check the boundary of character. -- GnuPG-bug-id: 5048 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>