Fixed a W32bug in rungpg.c
This commit is contained in:
parent
da6f3dc0c5
commit
68f6c70711
@ -1,3 +1,7 @@
|
|||||||
|
2007-09-17 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
|
* configure.ac: Use the svn version magic.
|
||||||
|
|
||||||
2007-09-07 Marcus Brinkmann <marcus@g10code.de>
|
2007-09-07 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
* configure.ac: Check for C++, Qt and support --enable-w32-qt.
|
* configure.ac: Check for C++, Qt and support --enable-w32-qt.
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
If you are building from CVS, run the script
|
If you are building from Subversion, run the script
|
||||||
|
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
|
|
||||||
first, to make sure that you have all the necessary maintainer tools
|
first, to make sure that you have all the necessary maintainer tools
|
||||||
are installed and to build the actual configuration files. Then run
|
are installed and to build the actual configuration files. If you
|
||||||
|
have just updated from SVN, you should add the option "--force" to
|
||||||
|
autogen.sh so that meta data from SVN is noticed. Then run
|
||||||
|
|
||||||
./configure --enable-maintainer-mode
|
./configure --enable-maintainer-mode
|
||||||
|
|
||||||
@ -40,20 +42,10 @@ knowledge about the actual tools used by autgen.sh.
|
|||||||
|
|
||||||
Please don't use autopoint, libtoolize or autoreconf unless you are
|
Please don't use autopoint, libtoolize or autoreconf unless you are
|
||||||
the current maintainer and want to update the standard configuration
|
the current maintainer and want to update the standard configuration
|
||||||
files. All those files should be in the CVS and only updated manually
|
files. All those files should be in the SVN and only updated manually
|
||||||
if the maintainer decides that newer versions are required. The
|
if the maintainer decides that newer versions are required. The
|
||||||
maintainer should also make sure that the required version of automake
|
maintainer should also make sure that the required version of automake
|
||||||
et al. are properly indicated at the top of configure.ac and take care
|
et al. are properly indicated at the top of configure.ac and take care
|
||||||
to copy the files and not merely use symlinks.
|
to copy the files and not merely use symlinks.
|
||||||
|
|
||||||
|
|
||||||
Copyright 2004 g10 Code GmbH
|
|
||||||
|
|
||||||
This file is free software; as a special exception the author gives
|
|
||||||
unlimited permission to copy and/or distribute it, with or without
|
|
||||||
modifications, as long as this notice is preserved.
|
|
||||||
|
|
||||||
This file is distributed in the hope that it will be useful, but
|
|
||||||
WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
|
|
||||||
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE.
|
|
31
configure.ac
31
configure.ac
@ -23,25 +23,23 @@ AC_PREREQ(2.59)
|
|||||||
min_automake_version="1.9.3"
|
min_automake_version="1.9.3"
|
||||||
|
|
||||||
# Version number: Remember to change it immediately *after* a release.
|
# Version number: Remember to change it immediately *after* a release.
|
||||||
# Make sure to run "svn up" before a "make dist".
|
# Make sure to run "svn up" and "./autogen.sh --force"
|
||||||
# See below for the LT versions.
|
# before a "make dist". See below for the LT versions.
|
||||||
#
|
#
|
||||||
# The CVS version is usually the next intended release version with
|
# The SVN version is usually the next intended release version with
|
||||||
# the string "-cvs" appended. The reason for this is that tests for a
|
# the string "-svnNNN" appended. The reason for this is that tests for a
|
||||||
# specific feature can already be done under the assumption that the
|
# specific feature can already be done under the assumption that the
|
||||||
# CVS version is the most recent one in a branch. To disable the CVS
|
# SVN version is the most recent one in a branch. To disable the SVN
|
||||||
# version for the real release, just comment out the my_iscvs macro.
|
# version for the real release, set the my_issvn macro to no.
|
||||||
# Note, that we are now using Subversion instead of CVS and append the
|
|
||||||
# SVN revision number to the "cvs" suffix. To make this most useful
|
|
||||||
# for snapshot releases please do an "svn up" right before recreating
|
|
||||||
# the configure script, so that a proper revision number for all files
|
|
||||||
# is available when running a "make distcheck".
|
|
||||||
m4_define(my_version, [1.1.5])
|
m4_define(my_version, [1.1.5])
|
||||||
m4_define(my_iscvs, yes)
|
m4_define(my_issvn, [yes])
|
||||||
AC_INIT([gpgme], my_version[]m4_ifdef([my_iscvs], [-cvs[]m4_translit(
|
|
||||||
[$Revision$],[Ra-z $:])]),
|
m4_define([svn_revision], m4_esyscmd([echo -n $( (svn info 2>/dev/null \
|
||||||
|
|| echo 'Revision: 0')|sed -n '/^Revision:/ {s/[^0-9]//gp;q;}')]))
|
||||||
|
AC_INIT([gpgme], my_version[]m4_if(my_issvn,[yes],[-svn[]svn_revision]),
|
||||||
[bug-gpgme@gnupg.org])
|
[bug-gpgme@gnupg.org])
|
||||||
|
|
||||||
|
|
||||||
# LT Version numbers, remember to change them just *before* a release.
|
# LT Version numbers, remember to change them just *before* a release.
|
||||||
# (Code changed: REVISION++)
|
# (Code changed: REVISION++)
|
||||||
# (Interfaces added/removed/changed: CURRENT++, REVISION=0)
|
# (Interfaces added/removed/changed: CURRENT++, REVISION=0)
|
||||||
@ -59,6 +57,7 @@ GPGME_CONFIG_API_VERSION=1
|
|||||||
##############################################
|
##############################################
|
||||||
|
|
||||||
|
|
||||||
|
BUILD_REVISION=svn_revision
|
||||||
PACKAGE=$PACKAGE_NAME
|
PACKAGE=$PACKAGE_NAME
|
||||||
VERSION=$PACKAGE_VERSION
|
VERSION=$PACKAGE_VERSION
|
||||||
|
|
||||||
@ -577,10 +576,6 @@ AM_CONDITIONAL(BUILD_COMPLUS, test "$component_system" = "COM+")
|
|||||||
GNUPG_FIX_HDR_VERSION(gpgme/gpgme.h, GPGME_VERSION)
|
GNUPG_FIX_HDR_VERSION(gpgme/gpgme.h, GPGME_VERSION)
|
||||||
|
|
||||||
# Generate values for the DLL version info
|
# Generate values for the DLL version info
|
||||||
changequote(,)dnl
|
|
||||||
BUILD_REVISION="`echo '$Revision$' | sed 's/[^0-9]//g'`"
|
|
||||||
changequote([,])dnl
|
|
||||||
test -z "$BUILD_REVISION" && BUILD_REVISION="0"
|
|
||||||
if test "$have_w32_system" = yes; then
|
if test "$have_w32_system" = yes; then
|
||||||
BUILD_TIMESTAMP=`date --iso-8601=minutes`
|
BUILD_TIMESTAMP=`date --iso-8601=minutes`
|
||||||
changequote(,)dnl
|
changequote(,)dnl
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2007-09-17 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
|
* rungpg.c (gpg_new): Make robust against undefined ttyname or
|
||||||
|
ttytype.
|
||||||
|
|
||||||
2007-09-14 Werner Koch <wk@g10code.com>
|
2007-09-14 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
* data-mem.c (gpgme_data_release_and_get_mem): Fix tracing bug.
|
* data-mem.c (gpgme_data_release_and_get_mem): Fix tracing bug.
|
||||||
|
@ -73,7 +73,7 @@ extern "C" {
|
|||||||
AM_PATH_GPGME macro) check that this header matches the installed
|
AM_PATH_GPGME macro) check that this header matches the installed
|
||||||
library. Warning: Do not edit the next line. configure will do
|
library. Warning: Do not edit the next line. configure will do
|
||||||
that for you! */
|
that for you! */
|
||||||
#define GPGME_VERSION "1.1.5-cvs1251"
|
#define GPGME_VERSION "1.1.5-svn1255"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -482,19 +482,27 @@ gpg_new (void **engine, const char *file_name, const char *home_dir)
|
|||||||
if (err)
|
if (err)
|
||||||
rc = gpg_error_from_errno (errno);
|
rc = gpg_error_from_errno (errno);
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
if (dft_ttyname)
|
||||||
{
|
{
|
||||||
rc = add_arg (gpg, "--ttyname");
|
rc = add_arg (gpg, "--ttyname");
|
||||||
if (!rc)
|
if (!rc)
|
||||||
rc = add_arg (gpg, dft_ttyname);
|
rc = add_arg (gpg, dft_ttyname);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
rc = 0;
|
||||||
if (!rc)
|
if (!rc)
|
||||||
{
|
{
|
||||||
rc = _gpgme_getenv ("TERM", &dft_ttytype);
|
rc = _gpgme_getenv ("TERM", &dft_ttytype);
|
||||||
if (rc)
|
if (rc)
|
||||||
goto leave;
|
goto leave;
|
||||||
|
|
||||||
|
if (dft_ttytype)
|
||||||
|
{
|
||||||
rc = add_arg (gpg, "--ttytype");
|
rc = add_arg (gpg, "--ttytype");
|
||||||
if (!rc)
|
if (!rc)
|
||||||
rc = add_arg (gpg, dft_ttytype);
|
rc = add_arg (gpg, dft_ttytype);
|
||||||
|
}
|
||||||
|
|
||||||
free (dft_ttytype);
|
free (dft_ttytype);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user