mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
common: Support MYPROC_SELF_EXE for Solaris
* common/homedir.c (MYPROC_SELF_EXE): Add case for SunOS. -- GnuPG-bug-id: 5671
This commit is contained in:
parent
bcd8f0239d
commit
006131f628
@ -70,6 +70,8 @@
|
||||
# define MYPROC_SELF_EXE "/proc/self/exe"
|
||||
#elif defined(__NetBSD__)
|
||||
# define MYPROC_SELF_EXE "/proc/curproc/exe"
|
||||
#elif defined(__illumos__) || defined(__sun)
|
||||
# define MYPROC_SELF_EXE "/proc/self/path/a.out"
|
||||
#else /* Assume other BSDs */
|
||||
# define MYPROC_SELF_EXE "/proc/curproc/file"
|
||||
#endif
|
||||
|
@ -210,7 +210,7 @@ _init_common_subsystems (gpg_err_source_t errsource, int *argcp, char ***argvp)
|
||||
{
|
||||
/* Don't show the error if the program does not have a console.
|
||||
* This is for example the case for daemons. */
|
||||
in rc = GetLastError ();
|
||||
int rc = GetLastError ();
|
||||
if (rc != ERROR_INVALID_HANDLE)
|
||||
{
|
||||
log_info ("SetConsoleCP failed: %s\n", w32_strerror (rc));
|
||||
|
Loading…
x
Reference in New Issue
Block a user