From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: In-Reply-To: <20200515142641.812-3-bst@pengutronix.de> MIME-Version: 1.0 Message-Id: From: Michael Olbrich Date: Tue, 19 May 2020 14:23:38 +0200 Subject: Re: [ptxdist] [APPLIED] ptxd_lib_code_signing: return error string in cs_get_uri for make error case List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Bastian Krause Thanks, applied as 6c024da4d92217c468983d4a8bd8c3e252d36af8. Michael [sent from post-receive hook] On Tue, 19 May 2020 14:23:38 +0200, Bastian Krause wrote: > Signed-off-by: Bastian Krause > Message-Id: <20200515142641.812-3-bst@pengutronix.de> > Signed-off-by: Michael Olbrich > > diff --git a/scripts/lib/ptxd_lib_code_signing.sh b/scripts/lib/ptxd_lib_code_signing.sh > index 588a4b1b44fa..f93f183df8e8 100644 > --- a/scripts/lib/ptxd_lib_code_signing.sh > +++ b/scripts/lib/ptxd_lib_code_signing.sh > @@ -154,7 +154,11 @@ cs_get_uri() { > if [ ${#FUNCNAME[*]} -gt 1 ]; then > ptxd_bailout "No PKCS#11 URI for role ${role}" > else > - # ignore the error if cs_get_uri is called directly from make > + # cs_get_uri was called directly from make prior to cs_set_uri, > + # which may not be an error if it is evaluated early *and* later > + # again - return a unique error string in case it is not expected > + # and a user stumbles upon this > + echo "ERROR_URI_NOT_YET_SET" > return > fi > fi _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de