From 11bd40d04af59daa7ae7feea0518081a35f07053 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Tue, 31 May 2022 01:18:12 +0200 Subject: [PATCH] rc.d/hostid: remove useless cat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We've already read it and validated it ‒ re-reading is wasteful PR: 264376 --- libexec/rc/rc.d/hostid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/rc/rc.d/hostid b/libexec/rc/rc.d/hostid index 01697a1d1e11..39a0f4acb498 100755 --- a/libexec/rc/rc.d/hostid +++ b/libexec/rc/rc.d/hostid @@ -138,7 +138,7 @@ hostid_start() if [ -r ${hostid_file} ]; then read saved_hostid < ${hostid_file} if valid_hostid ${saved_hostid}; then - hostid_set `cat ${hostid_file}` + hostid_set ${saved_hostid} exit 0 fi fi