Re: kerberos/001_auth test fails on arm CPU darwin - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: kerberos/001_auth test fails on arm CPU darwin
Date
Msg-id 0d8b2626-5b0a-fe39-8930-e6bc83a37844@enterprisedb.com
Whole thread Raw
In response to Re: kerberos/001_auth test fails on arm CPU darwin  (Nazir Bilal Yavuz <byavuz81@gmail.com>)
Responses Re: kerberos/001_auth test fails on arm CPU darwin  (Nazir Bilal Yavuz <byavuz81@gmail.com>)
List pgsql-hackers
On 27.09.22 17:35, Nazir Bilal Yavuz wrote:
> I updated my patch regarding these reviews.
> 
> The current logic is it will try to find all executables in that 
> order(if it finds all executables, it won't try remaining steps):
> 
> 
> 1 - 'krb5-config --prefix'
> 
> 2 - hardcoded paths(I added arm and MacPorts paths for darwin)
> 
> 3 - from PATH
> 
> Also, I tried to do some refactoring for adding another paths to search 
> in the future and being sure about all executables are found.

This patch could use some more in-code comments.  For example, this

+# get prefix for kerberos executables and try to find them at this path
+sub test_krb5_paths

is not helpful.  What does it "get", where does it put it, how does it 
"try", and what does it do if it fails?  What are the inputs and outputs 
of this function?

+   # remove '\n' since 'krb5-config --prefix' returns path ends with '\n'
+   $krb5_path =~ s/\n//g;

use chomp




pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: [PATCH] Log details for client certificate failures
Next
From: Peter Eisentraut
Date:
Subject: Re: ICU for global collation