[openssl-commits] [openssl] master update

Rich Salz rsalz at openssl.org
Tue Jun 23 12:40:00 UTC 2015


The branch master has been updated
       via  ce7e647bc2c328404b1e3cdac6211773afdefe07 (commit)
      from  4ba81134dc2ee1a169e39d6bc2a942ca1004aa8e (commit)


- Log -----------------------------------------------------------------
commit ce7e647bc2c328404b1e3cdac6211773afdefe07
Author: Rich Salz <rsalz at akamai.com>
Date:   Tue Jun 23 07:27:23 2015 -0400

    Add $! to errors, use script basename.
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>

-----------------------------------------------------------------------

Summary of changes:
 crypto/objects/objxref.pl | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/crypto/objects/objxref.pl b/crypto/objects/objxref.pl
index 1913b9d..a1900ca 100644
--- a/crypto/objects/objxref.pl
+++ b/crypto/objects/objxref.pl
@@ -7,7 +7,7 @@ my %oid_tbl;
 
 my ($mac_file, $xref_file) = @ARGV;
 
-open(IN, $mac_file) || die "Can't open $mac_file";
+open(IN, $mac_file) || die "Can't open $mac_file, $!\n";
 
 # Read in OID nid values for a lookup table.
 
@@ -19,7 +19,7 @@ while (<IN>)
 	}
 close IN;
 
-open(IN, $xref_file) || die "Can't open $xref_file";
+open(IN, $xref_file) || die "Can't open $xref_file, $!\n";
 
 my $ln = 1;
 
@@ -57,8 +57,7 @@ my @srt2 = sort
 	} @xrkeys;
 
 my $pname = $0;
-
-$pname =~ s|^.[^/]/||;
+$pname =~ s|.*/||;
 
 print <<EOF;
 /* AUTOGENERATED BY $pname, DO NOT EDIT */
@@ -111,6 +110,6 @@ sub check_oid
 	my ($chk) = @_;
 	if (!exists $oid_tbl{$chk})
 		{
-		die "Not Found \"$chk\"\n";
+		die "Can't find \"$chk\", $!\n";
 		}
 	}


More information about the openssl-commits mailing list