From: Marcio Barbosa Date: Tue, 18 Aug 2020 13:56:26 +0000 (+0000) Subject: bos: suppress unnecessary warn if -noauth X-Git-Tag: openafs-devel-1_9_0~15 X-Git-Url: http://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=d5f0e16ac44475be55a7cc3e2895fc4a3a923ece bos: suppress unnecessary warn if -noauth Commit d008089a7 (Add interface to select client security objects) consolidated the code that selects the client security objects into a set of new interfaces. Before this commit, the "bos: running unauthenticated" message, which warns the user when an unauthenticated connection is established, used to be suppressed if the -noauth flag was specified. Similarly to commit b3c16324e (ubik: Make ugen_ClientInit honor noAuthFlag), recover the original behavior avoiding warn messages about unauthenticated connections if the -noauth flag is provided. Change-Id: Iaf0ac6bd91ea160256823512f060afc94b5926bf Reviewed-on: https://gerrit.openafs.org/14306 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk --- diff --git a/src/bozo/bos.c b/src/bozo/bos.c index 0e2e3f4..7bcd20a 100644 --- a/src/bozo/bos.c +++ b/src/bozo/bos.c @@ -139,7 +139,7 @@ GetConn(struct cmd_syndesc *as, int aencrypt) exit(1); } - if (scIndex == RX_SECIDX_NULL) + if (scIndex == RX_SECIDX_NULL && !(secFlags & AFSCONF_SECOPTS_NOAUTH)) fprintf(stderr, "bos: running unauthenticated\n"); tconn =