Project

General

Profile

Actions

Bug #318

closed

gzsig returning wrong exit code

Added by Chris Buechler about 14 years ago. Updated about 14 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Upgrade
Target version:
Start date:
01/22/2010
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.0
Affected Architecture:

Description

Auto-update currently isn't working with non-signed images because gzsig exits with the wrong exit code on unsigned images.

  1. gzsig verify /etc/pubkey.pem < latest.tgz
    No gzip signature found
    Couldn't verify input
  2. echo $?
    1

According to system_firmware_auto.php, it should (and used to) return 2 in such situations.

Actions #1

Updated by Dan Swartzendruber about 14 years ago

I am very confused here. I have tracked all the way back to revision 1.1 in the original code and don't see where it ever returned anything other than 1. See this:

http://www.openssh.com/cgi-bin/cvsweb/src/usr.bin/gzsig/verify.c.diff?r1=text&tr1=1.1&r2=text&tr2=1.7

Maybe I am missing a key bit of dev info here that this was a pfsense enhancement? Or someone else's and a subsequent update to the port caused a regression?

Actions #2

Updated by Ermal Luçi about 14 years ago

  • Status changed from New to Feedback
Actions #4

Updated by Chris Buechler about 14 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF