Non-Zero return code on successful decryption?

seidls at schneider.com seidls at schneider.com
Fri Oct 31 11:01:47 CET 2003


Hello,

I have an automated script that will decrypt files that are sent to us over
FTP.  One file that was received today the file would decrypt without
issue, but gpg would return with a non zero return code.  It was verified
that the file could be decrypted from the output sent to the status-fd
file, and from manually decrypting the file.

I am using gpg 1.2.1 on a solaris box.

Does anyone know why this non-zero return code was issued??

script command
gpg --options ${gpgoptfle} -o ${outputfile} <${inputfile} 2<${pass} 3>
${gpglog}

script command excuted (with set -x turned on)
gpg --options /opt/mailbox/scripts/gpg.options -o
/opt/mailbox/fawork/pgpwork/send/FILE1~24535
0< /opt/mailbox/fawork/pgpwork/FILE1.330431088~24535 2<
/opt/mailbox/etc/gpgdefaultkey + es=2
[[ 2 != 0 ]]

status-fd file output
[GNUPG:] ENC_TO AF7F6D910EABD565 16 0
[GNUPG:] USERID_HINT AF7F6D910EABD565
[GNUPG:] NEED_PASSPHRASE AF7F6D910EABD565 760B2E363A4E02F0 16 0
[GNUPG:] GOOD_PASSPHRASE
[GNUPG:] BEGIN_DECRYPTION
[GNUPG:] SIG_ID PVu4jM06Eupu96tH+Jq6t4A/gUw 2003-10-31 1067611083
[GNUPG:] GOODSIG D58B162C43D74D85
[GNUPG:] VALIDSIG DF05364B525285FB93D9347D4638BD5E 2003-10-31 1067611083 0
[GNUPG:] TRUST_FULLY
[GNUPG:] DECRYPTION_OKAY
[GNUPG:] END_DECRYPTION

Thanks
Scott Seidl
Electronic Communication Services
seidls at schneider.com
Tel) 920-592-2163


This document, and any attachments therein, contains proprietary and
confidential information that may not be disclosed without the prior
written permission of Schneider National, Inc. and its subsidiaries.
Unauthorized use or misuse of this information and its contents is strictly
prohibited. Schneider National, Inc. vigorously protects its rights.





More information about the Gnupg-users mailing list