Mailing List Archive

Solved: Problem running gnupg-0.9.0 from a daemon, a (minor) BUG?
Hi!

First: Thanks to Brian who gave me all the hints needed to make it
run.

What I had to do:

I needed to MODIFY cipher/random.c: uncomment the use of tty_printf
command in line 409. This caused a fatal error if gpg is run from a
daemon:

gpg: fatal: cannot open /dev/tty: No such device or address

Is this a BUG or a fuse to keep people from using it if they don't
have a proper random device? It does not go away if I include
"load-extension rndunix" in the options file as suggested in the
INSTALL.

Hartmut

PS: I'm using 0.9.0.



Hartmut Wolf <Hartmut.Wolf@kirchgruppe.de> writes:

> Hi!
>
> Maybe this is not gnupg specific, but maybe someone can give me the
> idea:
>
> I'm running gnupg like this
>
> cat somefile | \
> gpg --batch -r $toaddress -q -a -e | \
> mailx -s 'subject' $toaddress
>
> if I run from the command line it works fine (so everything should be
> setup correctly). If the daemon runs it, I get empty mails. To me
> (more user than admin) this looks like a "there is no controlling tty"
> problem, but I can't really tell.
>
> Anybody got an idea?
>
> Thanks a lot
>
> Hartmut
Re: Solved: Problem running gnupg-0.9.0 from a daemon, a (minor) BUG? [ In reply to ]
Hartmut Wolf <Hartmut.Wolf@KirchGruppe.DE> writes:

> gpg: fatal: cannot open /dev/tty: No such device or address
>
> Is this a BUG or a fuse to keep people from using it if they don't
> have a proper random device? It does not go away if I include

Yes, it is a feature: If you get this message you should not use this
program for real work!!! The enctryption is in this case VERY WEAK!!!

If you want to test it anyway, I suggest that you comment it out.
BUT PLEASE REMEMBER THAT in THIS CASE YOU HAVE NO REAL ENCRYTION
and I should think of a way to tell the receiver that this message
has no real encryption.

Even more worse: Using this FAKED RNG may LEAK OUT YOUR SECRET KEY
- THIS IS NO JOKE!

> "load-extension rndunix" in the options file as suggested in the
> INSTALL.

Hmmm, this should work.


Werner