Your message dated Tue, 5 May 2009 20:41:45 +0200 (CEST)
with message-id <[email protected]>
and subject line gnupg: `--batch --output existingfile' outputs nothing and
exits 0
has caused the Debian Bug report #185782,
regarding gnupg: `--batch --output existingfile' outputs nothing and exits 0
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
185782: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=185782
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gnupg
Version: 1.2.0-1
Severity: normal
If you run gpg in --batch mode with --output pointing at an existing
file it won't write data to the existing file, but it also exits
with a 0 status. It should exit with a non-zero status.
$ ls -l
total 8
-rw-rw-r-- 1 roderick roderick 87 2003-03-21 13:48 input
-rw-rw-r-- 1 roderick roderick 184 2003-03-21 13:49 input.gpg
-rw-rw-r-- 1 roderick roderick 0 2003-03-21 13:49 output
$ gpg --batch --output output input.gpg
gpg: Signature made Fri 21 Mar 2003 01:49:11 PM EST using DSA key ID 2B05B73A
gpg: Good signature from "Roderick Schertler <[email protected]>"
$ echo $?
0
$ ls -l
total 8
-rw-rw-r-- 1 roderick roderick 87 2003-03-21 13:48 input
-rw-rw-r-- 1 roderick roderick 184 2003-03-21 13:49 input.gpg
-rw-rw-r-- 1 roderick roderick 0 2003-03-21 13:49 output
$ _
PS: There should be a way to tell it to overwrite the file in batch mode.
Otherwise, if you've got multiple programs doing decryption, there's
no way to avoid a race choosing output file names except by reading the
data via a pipe and writing it yourself.
-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux jones 2.4.19-jones.1 #1 Sat Oct 12 15:24:34 EDT 2002 i686
Locale: LANG=en_US, LC_CTYPE=en_US
Versions of packages gnupg depends on:
ii devfsd 1.3.25-10 Daemon for the device filesystem
ii libc6 2.2.5-14.3 GNU C Library: Shared libraries an
ii libldap2 2.0.23-14 OpenLDAP libraries (without TLS su
ii makedev 2.3.1-62 Creates device files in /dev.
ii zlib1g 1:1.1.4-6 compression library - runtime
--
Roderick Schertler
[email protected]
--- End Message ---
--- Begin Message ---
I'm going to close this report. Upstream explained the situation and suggested
a workaround for the second issue.
Please feel free to comment this decision and/or reopen your report if
necessary.
Regards, Daniel
--- End Message ---