hi,

(i am posting this here because i started digging my way through the
code in the attempt to fix my problem.  i hope to be appropriate and
interesting.)

I run darcs on a repository server in the way sketched in

  http://abridgegame.org/darcs/manual/node6.html#SECTION00640000000000000000

darcs is receiving e-mails and, if not properly signed, forwards them
to another address.  Good.  Unfortunately, darcs does that *always*,
no matter whether an e-mail has a good signature or not.

I started geenerating some debug output from the source code, and
finally did this to verifyGPG in External.hs:

      rval <- exec "gpg"  ["--batch","--no-default-keyring",
                           "--keyring",fix_path goodkeys, "--verify"] tn 
"/tmp/exec.out"

(i.e., I changed the output filename to be something that can be read
out after program failure.)

/tmp/exec.out contained:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
gpg: CRC error; 17C4B2 - DC317C
gpg: no signature found
gpg: quoted printable character in armor - probably a buggy MTA has been used
gpg: verify signatures failed: eof
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

when I probed further and extracted the string that is passed to
verifyGPG into another file, gpg was able to verify that file.

I put my author's key in a fresh gpg keyring, signed it with the
private key therein, and passed this keyring (with absolute path) to
'darcs apply' via the --verify option.  (The source code looks like
this is how it should be done.)

Does this look like a bug to anyone?  I have no clear idea where to go
from here other then rewrite verifyGPG.

I am using:

  Linux 2.6.12-10-686-smp i686 GNU/Linux
  gpg (GnuPG) 1.4.1
  darcs 1.0.6pre1 (stable branch)



thanks for any hints,
matthias

_______________________________________________
darcs-devel mailing list
[email protected]
http://www.abridgegame.org/cgi-bin/mailman/listinfo/darcs-devel

Reply via email to