Fix signature password checking result on abnormal conditions (RhBug:496754)
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 25 Nov 2009 14:42:43 +0000 (16:42 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 25 Nov 2009 14:42:43 +0000 (16:42 +0200)
commit2b41860984f0c4ebba5ebce93a18c9c0ca5e1065
tree7dfb2fbcff611b6ce81f5c4f8792d4e9860074df
parent98213fc4192c7af07037a0f3e9cce9e3b8509c02
Fix signature password checking result on abnormal conditions (RhBug:496754)
- Execve() failure wasn't returning an error code, causing rpm to
  think the password was ok when we couldn't even try verifying
- Stricter return code checking from the password checking child:
  the password can only be ok if the child exits with WIFEXITED() *and*
  WIFEXITCODE() of 0. Also WIFEXITCODE() should only be called if
  WIFEXITED() returns true.
lib/signature.c