diff options
author | root <devnull@localhost> | 1996-02-22 01:59:29 +0000 |
---|---|---|
committer | root <devnull@localhost> | 1996-02-22 01:59:29 +0000 |
commit | dfb5ed188b71bdbb4c8d091bad5c275d99f5f8a4 (patch) | |
tree | 62a9ed24c915a8b61545035925450dfaad256b49 /lib/signature.c | |
parent | 379473e17efa6cc4f6fe744524fcff5b2a586c4e (diff) | |
download | rpm-dfb5ed188b71bdbb4c8d091bad5c275d99f5f8a4.tar.gz rpm-dfb5ed188b71bdbb4c8d091bad5c275d99f5f8a4.tar.bz2 rpm-dfb5ed188b71bdbb4c8d091bad5c275d99f5f8a4.zip |
fix return codes for makeSignature()
CVS patchset: 390
CVS date: 1996/02/22 01:59:29
Diffstat (limited to 'lib/signature.c')
-rw-r--r-- | lib/signature.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/signature.c b/lib/signature.c index 15f7b7807..11909418b 100644 --- a/lib/signature.c +++ b/lib/signature.c @@ -51,15 +51,13 @@ int readSignature(int fd, short sig_type, void **sig) int makeSignature(char *file, short sig_type, int ofd, char *passPhrase) { switch (sig_type) { - case RPMSIG_NONE: - /* Do nothing */ - break; case RPMSIG_PGP262_1024: - makePGPSignature(file, ofd, passPhrase); + return makePGPSignature(file, ofd, passPhrase); break; + case RPMSIG_NONE: } - return 1; + return 0; } #if 0 |