aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Post release updatesWerner Koch2025-12-122-1/+7
| | | | --
* Release 1.58libgpg-error-1.58gpgrt-1.58Werner Koch2025-12-122-2/+4
|
* w32: Fix a syntax error in a non-DLL buildWerner Koch2025-12-121-1/+1
| | | | * src/w32-utils.c (_gpgrt_w32__init_utils): Fix syntax error.
* Post release updatesWerner Koch2025-12-102-1/+7
| | | | --
* Release 1.57libgpg-error-1.57gpgrt-1.57Werner Koch2025-12-102-5/+15
|
* argparse: gpgrt_fconcat to get the SYSCONFDIR.Werner Koch2025-12-094-3/+22
| | | | | | | | | | | * src/stringutils.c (_gpgrt_fconcat): New internal function. * src/argparse.c (_gpgrt_argparser): Use it. -- This fixes the conf files default also for Windows. Updates-commmit: a9fc729253eec88f56d810bd2a8edd327267c5b4 GnuPG-bug-id: 7894
* New function gpgrt_fconcat.Werner Koch2025-12-0913-28/+344
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/w32-utils.c: New. * src/init.c (_gpg_err_init, DllMain): Call new init function. * src/visibility.c (gpgrt_fconcat): New. * src/gpg-error.h.in (gpgrt_fconcat): New prototype. (GPGRT_FCONCAT_ABS): New. (GPGRT_FCONCAT_TILDE): New. (GPGRT_FCONCAT_SYSCONF): New. * src/gpg-error.def.in (gpgrt_fconcat): New. * src/gpg-error.vers: (gpgrt_fconcat): New. * src/stringutils.c (_gpgrt_vfnameconcat): Repalce want-abs but a new flags arg. Change to support GPGRT_FCONCAT_SYSCONF. Fix tilde expansion under Windows to use CISDL_PROFILE instead of $HOME. Adjust all callers. * src/gpg-error.c (main): New command "fconcat". -- This function allows to get the sysconfig directory in a portable way. On Windows this is CISDL_COMMON_APPDATA\GNU\etc. On Unix this is the directory specified at the configure run. This patch also changes the behaviour of tilde expansion in Windows which was not well defined. It does now use CISDL_PROFILE instead of the HOME envvar which is uncommon under Windows. Note that under Windows "~user/foo" is still not defined. Tilde expansion is not done when GPGRT_FCONCAT_SYSCONF is used. GnuPG-bug-id: 7894
* po: Update Portuguese Translation.Daniel Cerqueira2025-11-261-8/+19
| | | | Signed-off-by: Daniel Cerqueira <[email protected]>
* Revert "po: Update Portuguese translation"Werner Koch2025-11-261-8472/+1000
| | | | | -- This reverts commit a902201d2d7883da027a9a628319411421b73eda.
* Dynload GetThreadUILanguage to keep support for Windows XPWerner Koch2025-11-261-2/+13
| | | | | | * src/w32-gettext.c (get_thread_ui_language): New func ptr. (module_init): Initialize it. (my_nl_locale_name): Use it instead of a direct call.
* Use UI language instead of locale for translationsIngo Klöcker2025-11-261-2/+2
| | | | | | | | | | | | | | | * src/w32-gettext.c (my_nl_locale_name): Use GetThreadUILanguage instead of GetThreadLocale. -- This ensures that the user configured display language is used even if the regional format (which is meant for dates and times) is set to another locale. GetThreadUILanguage is available since Windows Vista and Windows Server 2008. GnuPG-bug-id: 7874
* po: Update Portuguese translationDaniel Cerqueira2025-11-211-1000/+8472
| | | | --
* build: On zOS use pkg-config to find zoslib.Werner Koch2025-11-192-6/+15
| | | | | | | | * configure.ac (EXTRA_LIBS_FOR_BUILD): Use "openedition" instead of "zOS" for build tools checking. Also chnage to use pkg-config. -- Co-Authored-By: [email protected]
* po: Update Swedish translationDaniel Nylander2025-11-191-449/+226
|
* spawn:posix: Rename the field to ENVP to avoid a build issue.NIIBE Yutaka2025-11-191-4/+4
| | | | | | | | | | | * src/spawn-posix.c (struct gpgrt_spawn_actions): Rename the field to ENVP. (my_exec, _gpgrt_spawn_actions_set_environ): Follow the change. -- Signed-off-by: Sachin T <[email protected]> Co-authored-by: NIIBE Yutaka <[email protected]>
* argparse: Use SYSCONFDIR for /etc.NIIBE Yutaka2025-11-192-2/+3
| | | | | | | | | | * src/Makefile.am (libgpg_error_la_CPPFLAGS): Add SYSCONFDIR. * src/argparse.c (_gpgrt_argparser): Use it. -- GnuPG-bug-id: 7894 Signed-off-by: NIIBE Yutaka <[email protected]>
* Post release updatesWerner Koch2025-10-072-1/+8
| | | | --
* Release 1.56libgpg-error-1.56gpgrt-1.56Werner Koch2025-10-072-5/+5
|
* po: msgmergeWerner Koch2025-10-0719-0/+95
| | | | --
* po: Update German translation.Werner Koch2025-10-071-1/+4
| | | | --
* estream: Implictly enable sysopen when the the share flag is given.Werner Koch2025-10-071-9/+7
| | | | | | | | * src/estream.c (parse_mode): Fix parsing of "share". Set sysopen flag. -- Updates-commit: 0b170a499a87abc4a18b6f7d76beb44901fa0cdd
* estream: Extend the new share keyword to allow all modes.Werner Koch2025-10-072-15/+42
| | | | | | | | | | | | | * src/estream.c (X_SHARE_RW): Replace by ... (X_SHARE_CUSTOM,X_SHARE_READ,X_SHARE_WRITE,X_SHARE_DEL): new. (func_file_create_w32): Set share_mode accordingly. (parse_mode): Extend the "share" keyword. * src/gpg-error.c (main): Add option --openmode to allow testing of the share modes. -- Updates-commit: 2344947717d29170c918a195541db568648c7aa3
* Update NEWSWerner Koch2025-10-061-0/+18
| | | | --
* Update copyright and version string in gpg-error.m4.NIIBE Yutaka2025-10-031-3/+3
| | | | | | | | * src/gpg-error.m4: Update. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* estream: New mode keyword "share=rw".Werner Koch2025-10-021-14/+34
| | | | | | | | | * src/estream.c (X_SAMETHREAD): Move to the top. Also for the other X_constants. (_gpgrt_fopen): Move setting of FILE_FLAG_SEQUENTIAL_SCAN to ... (func_file_create_w32): here. Replace arg flags_and_attrs by xflags and use cflags to set certain properties. (parse_mode): Add mode keyword "share=rw".
* Also fix for test(1) operator -o.NIIBE Yutaka2025-09-242-7/+7
| | | | | | | | | | * autogen.sh: Don't use -o operator, but shell ||. * src/gpgrt-config.in: Likewise. -- GnuPG-bug-id: 7807 Signed-off-by: NIIBE Yutaka <[email protected]>
* Fixes for obsoleted/removed test(1) operator -aWerner Koch2025-09-236-14/+16
| | | | | | | | | | | | | * autogen.sh: Here. * configure.ac: And here. * src/gen-lock-obj.sh: And here. * src/gpg-error.m4 (AM_PATH_GPG_ERROR): And here. * src/gpgrt-config.in (eval_compare_version): And here. * src/gpgrt.m4 (AM_PATH_GPGRT): And here. -- See GnuPG-bug-id: 7807
* Silence warnings when enabling the trace functions.Werner Koch2025-09-232-9/+11
| | | | | * src/w32-estream.c (reader): Use correct printf format specifiers for the trace functions.
* w32: Don't convert slash->backslash when it's under Wine.NIIBE Yutaka2025-09-231-4/+9
| | | | | | | | | * src/sysutils.c (_gpgrt_fname_to_wchar): No change under Wine. -- GnuPG-bug-id: 7138 Signed-off-by: NIIBE Yutaka <[email protected]>
* w32:spawn: Fix thread-unfriendly internal check.NIIBE Yutaka2025-09-233-24/+56
| | | | | | | | | | | | | * src/gpgrt-int.h (_gpgrt_windows_feature): New. * src/init.c (windows_specific_init): New. (real_init) [HAVE_W32_SYSTEM]: Call windows_specific_init. (_gpgrt_windows_feature): New. * src/spawn-w32.c (check_windows_version): Remove. (_gpgrt_process_spawn): Use _gpgrt_windows_feature. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* estream: Support the %b conversion specifier from C23Werner Koch2025-08-142-7/+57
| | | | | | | | | | | | | | * src/estream-printf.c (CONSSPEC_BIN): New. (compute_type): Handle it. (parse_format): Support 'b'. (do_format): Divert 'b' to pr_integer. (pr_integer): Print binary format. * tests/t-printf.c (check_fprintf_sf): Add two simple testcases. -- Might be handy in some cases and is easy to implement. Minor drawback is that this increases a stack based buffer from 100 to 150 bytes.
* Set build specific variable for zOSWerner Koch2025-08-142-1/+13
| | | | | * configure.ac (EXTRA_LIBS_FOR_BUILD): New ac_subst. * src/Makefile.am (mkheader): Append that var to the rule.
* syscfg: Add x86_64 Android arch.Ben Kibbey2025-07-202-0/+26
| | | | | | | | | * src/syscfg/lock-obj-pub.x86_64-unknown-linux-androideabi.h: New. * src/Makefile.am (lock_obj_pub): Add it. -- Signed-off-by: Ben Kibbey <[email protected]>
* syscfg: Add i686 Android arch.Ben Kibbey2025-07-202-0/+22
| | | | | | | | | * src/syscfg/lock-obj-pub.i686-unknown-linux-androideabi.h: New. * src/Makefile.am (lock_obj_pub): Add it. -- Signed-off-by: Ben Kibbey <[email protected]>
* syscfg: Add armv7a alias to arm for Android.Ben Kibbey2025-07-201-0/+1
| | | | | | | | * src/mkheader.c (canon_host_triplet): Add alias. -- Signed-off-by: Ben Kibbey <[email protected]>
* syscfg: Add 64-bit Android arch.Ben Kibbey2025-07-202-0/+26
| | | | | | | | | * src/syscfg/lock-obj-pub.aarch64-unknown-linux-androideabi.h: New. * src/Makefile.am (lock_obj_pub): Add it. -- Signed-off-by: Ben Kibbey <[email protected]>
* w32:spawn: Support pipe I/O for GPGRT_PROCESS_DETACHED.NIIBE Yutaka2025-07-161-208/+69
| | | | | | | | | | | | | | | | | * src/spawn-w32.c (struct gpgrt_spawn_actions): Add detached field. (spawn_detached): Merge into ... (_gpgrt_process_spawn): ... here, supporting pipe I/O. (_gpgrt_process_release): Handle detached process. (_gpgrt_process_wait_list): Likewise. -- For old Windows, pipe I/O and NUL stdio are not supported for a process with GPGRT_PROCESS_DETACHED. Creation of a process can be done, but the process has INVALID HANDLE for stdio. GnuPG-bug-id: 7716 Signed-off-by: NIIBE Yutaka <[email protected]>
* w32:spawn: New flag GPGRT_PROCESS_STDIO_NUL.NIIBE Yutaka2025-07-152-11/+27
| | | | | | | | | | | * src/gpg-error.h.in (GPGRT_PROCESS_STDIO_NUL): New. * src/spawn-w32.c (w32_open_null): Add ENABLE_NULL_DEVICE argument. (_gpgrt_process_spawn): Follow the change. -- GnuPG-bug-id: 7723 Signed-off-by: NIIBE Yutaka <[email protected]>
* w32:spawn: Fix resource leaks for HANDLEs by w32_open_null.NIIBE Yutaka2025-07-151-124/+125
| | | | | | | | | | * src/spawn-w32.c (_gpgrt_process_spawn): Don't modify hd fields in ACT. Clean up use of hd_in, hd_out, and hd_err. -- GnuPG-bug-id: 7716 Signed-off-by: NIIBE Yutaka <[email protected]>
* w32:spawn: Fix inheriting HANDLEs.NIIBE Yutaka2025-07-141-2/+2
| | | | | | | | | | | * src/spawn-w32.c (spawn_detached): Use EXTENDED_STARTUPINFO_PRESENT to enable lpAttributeList in STARTUPINFOEXW. (_gpgrt_process_spawn): Likewise. -- GnuPG-bug-id: 7716 Signed-off-by: NIIBE Yutaka <[email protected]>
* gpgrt-config: It's gcc which supports -print-search-dirs option.NIIBE Yutaka2025-07-021-1/+1
| | | | | | | | | | | * src/gpgrt-config.in (determine_gpgrt_libdir): Default to gcc. -- This minor chang helps non-GNU system with vendor C compiler as cc. Signed-off-by: NIIBE Yutaka <[email protected]>
* spawn: Define _GPGRT_NEED_AFLOCAL for OS without AF_LOCAL.NIIBE Yutaka2025-07-011-0/+1
| | | | | | | | * src/spawn-posix.c (_GPGRT_NEED_AFLOCAL): Add. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* po: Update Japanese Translation.NIIBE Yutaka2025-07-011-3/+7
| | | | | | -- Signed-off-by: NIIBE Yutaka <[email protected]>
* spawn:posix: Use 1024 for arbitrary limit, following GPGME.NIIBE Yutaka2025-06-261-2/+2
| | | | | | | | | * src/spawn-posix.c (get_max_fds): Use 1024 (was: 256). -- GnuPG-bug-id: 7696 Signed-off-by: NIIBE Yutaka <[email protected]>
* spawn:posix: Add an improvement when closefrom is not available.NIIBE Yutaka2025-06-262-25/+35
| | | | | | | | | | | | | | | * src/gpgrt-int.h (_gpgrt_close_all_fds): Fix function declaration. * src/spawn-posix.c (USE_GET_MAX_FDS): Define when closefrom is not available. (get_max_fds): Add an argument of FALLBACK_MAX_FDS. (_gpgrt_close_all_fds, my_exec, spawn_detached): Likewise. (_gpgrt_process_spawn): [USE_GET_MAX_FDS && _SC_OPEN_MAX]: It's a parent process which calls sysconf. -- GnuPG-bug-id: 7696 Signed-off-by: NIIBE Yutaka <[email protected]>
* posix:spawn: Use getdents64 when closefrom is not available.NIIBE Yutaka2025-06-262-25/+47
| | | | | | | | | | | | | | | | * configure.ac (AC_CHECK_FUNCS): Check getdents64. * src/spawn-posix.c [!HAVE_CLOSEFROM] (get_max_fds): Use getdents64 instead of readdir, for AS-Safety. -- closefrom is available with glibc >= 2.34. getdents64 is available with glibc >= 2.30. To support older glibc versions, we could use syscall as GPGME does. GnuPG-bug-id: 7696 Signed-off-by: NIIBE Yutaka <[email protected]>
* spawn:posix: Fix spawning a process on POSIX machine.NIIBE Yutaka2025-06-231-5/+0
| | | | | | | | | | * src/spawn-posix.c (get_max_fds): Don't use _POSIX_OPEN_MAX, since it's irrelevant; It's a minimum value of OPEN_MAX. -- GnuPG-bug-id: 7696 Signed-off-by: NIIBE Yutaka <[email protected]>
* w32: Allow building on Windows with gcc < 12Werner Koch2025-06-161-0/+4
| | | | | | | | | * src/spawn-w32.c (_WIN32_WINNT): Define. -- With the i686-w64-mingw32-gcc version 12 the default NT version is 10 (0xa00) but the gcc 10 mingw comes defines 5.02. To avoid setting this in the gcc call as we used to do, we define it here.
* argparse: Remove a duplicated condition.Collin Funk via Gnupg-devel2025-06-101-1/+1
| | | | | | | | | * src/argparse.c (emulated_registry_lookup): Remove duplicated condition. -- Signed-off-by: Collin Funk <[email protected]>
* libtool: Add support for zOSWerner Koch2025-05-281-0/+4
| | | | | | | | * m4/libtool.m4: Add casefor openedition. -- Suggested-by: Sachin T <[email protected]> for ntbtls but added here as this is "our" upstream for such tools.