gpa 0.6.1 hangs on Linux/Powermac

Miguel Coca mcoca@gnu.org
Tue Jun 17 22:55:01 2003


--KFztAG8eRSV9hGtP
Content-Type: multipart/mixed; boundary="UlVJffcvxoiEqYs2"
Content-Disposition: inline


--UlVJffcvxoiEqYs2
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Jun 17, 2003 at 21:10:22 +0200, Albrecht Dre=DF wrote:
> Hi,

Hi!

> I installed gpa 0.6.1 on a Powermac running Linux 2.4.20, glibc 2.2.5, gc=
c=20
> 2.95.4 and gnome 2.2.1. When I start it for the first time, it runs=20
> nicely, but after exiting it hangs upon running it again while accessing=
=20
> the file $HOME/.gnupg/gpa.conf (see gdb bt for both runs below). After=20
> erasing this file, it again runs once... Any ideas?

Known bug. GPA 0.6.1 has a pretty stupid bug when reading the config
file that comes up in architectures where char is unsigned. Attached I
send the trivial patch that fixes it.

This will be fixed in the next release.

Hope this helps,
--=20
Miguel Coca (mcoca@gnu.org)                http://zipi.fi.upm.es/~e970095/
       OpenPGP: E60A CBF4 5C6F 914E B6C1  C402 8C4D C7B6 27FC 3CA8

--UlVJffcvxoiEqYs2
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="gpa-getc.diff"
Content-Transfer-Encoding: quoted-printable

diff -Nurp gpa-0.6.1.orig/src/options.c gpa-0.6.1/src/options.c
--- gpa-0.6.1.orig/src/options.c	2003-02-10 22:40:58.000000000 +0100
+++ gpa-0.6.1/src/options.c	2003-02-10 22:42:20.000000000 +0100
@@ -342,7 +342,7 @@ static gboolean
 read_next_word (FILE *file, char *buffer, int size)
 {
   int i =3D 0;
-  char c;
+  int c;
=20
   buffer[0] =3D '\0';
   /* Skip leading whitespace */

--UlVJffcvxoiEqYs2--

--KFztAG8eRSV9hGtP
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3-cvs (GNU/Linux)

iD8DBQE+74CGjE3Htif8PKgRAlVUAKDGyi7Sui5XCBcNN/keYSOzW7dUMQCfUtU5
9SS2Ii2uZwLA0EDU1Veo3Ek=
=I1wn
-----END PGP SIGNATURE-----

--KFztAG8eRSV9hGtP--