| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
| |
--
|
| | |
|
| |
|
|
| |
* src/w32-utils.c (_gpgrt_w32__init_utils): Fix syntax error.
|
| |
|
|
| |
--
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
| |
Signed-off-by: Daniel Cerqueira <[email protected]>
|
| |
|
|
|
| |
--
This reverts commit a902201d2d7883da027a9a628319411421b73eda.
|
| |
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
| |
--
|
| |
|
|
|
|
|
|
| |
* 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]
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
* 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]>
|
| |
|
|
|
|
|
|
|
|
| |
* 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]>
|
| |
|
|
| |
--
|
| | |
|
| |
|
|
| |
--
|
| |
|
|
| |
--
|
| |
|
|
|
|
|
|
| |
* src/estream.c (parse_mode): Fix parsing of "share". Set sysopen
flag.
--
Updates-commit: 0b170a499a87abc4a18b6f7d76beb44901fa0cdd
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
| |
--
|
| |
|
|
|
|
|
|
| |
* src/gpg-error.m4: Update.
--
Signed-off-by: NIIBE Yutaka <[email protected]>
|
| |
|
|
|
|
|
|
|
| |
* 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".
|
| |
|
|
|
|
|
|
|
|
| |
* 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]>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
| |
* src/w32-estream.c (reader): Use correct printf format specifiers for
the trace functions.
|
| |
|
|
|
|
|
|
|
| |
* src/sysutils.c (_gpgrt_fname_to_wchar): No change under Wine.
--
GnuPG-bug-id: 7138
Signed-off-by: NIIBE Yutaka <[email protected]>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* 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]>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
| |
* configure.ac (EXTRA_LIBS_FOR_BUILD): New ac_subst.
* src/Makefile.am (mkheader): Append that var to the rule.
|
| |
|
|
|
|
|
|
|
| |
* 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]>
|
| |
|
|
|
|
|
|
|
| |
* 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]>
|
| |
|
|
|
|
|
|
| |
* src/mkheader.c (canon_host_triplet): Add alias.
--
Signed-off-by: Ben Kibbey <[email protected]>
|
| |
|
|
|
|
|
|
|
| |
* 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]>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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]>
|
| |
|
|
|
|
|
|
|
|
|
| |
* 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]>
|
| |
|
|
|
|
|
|
|
|
| |
* 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]>
|
| |
|
|
|
|
|
|
|
|
|
| |
* 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]>
|
| |
|
|
|
|
|
|
|
|
|
| |
* 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]>
|
| |
|
|
|
|
|
|
| |
* src/spawn-posix.c (_GPGRT_NEED_AFLOCAL): Add.
--
Signed-off-by: NIIBE Yutaka <[email protected]>
|
| |
|
|
|
|
| |
--
Signed-off-by: NIIBE Yutaka <[email protected]>
|
| |
|
|
|
|
|
|
|
| |
* src/spawn-posix.c (get_max_fds): Use 1024 (was: 256).
--
GnuPG-bug-id: 7696
Signed-off-by: NIIBE Yutaka <[email protected]>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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]>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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]>
|
| |
|
|
|
|
|
|
|
|
| |
* 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]>
|
| |
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
| |
* src/argparse.c (emulated_registry_lookup): Remove duplicated
condition.
--
Signed-off-by: Collin Funk <[email protected]>
|
| |
|
|
|
|
|
|
| |
* 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.
|