git: 11bd40d04af5 - main - rc.d/hostid: remove useless cat

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Sat, 18 Jun 2022 01:28:28 UTC
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=11bd40d04af59daa7ae7feea0518081a35f07053

commit 11bd40d04af59daa7ae7feea0518081a35f07053
Author:     наб <nabijaczleweli@nabijaczleweli.xyz>
AuthorDate: 2022-05-30 23:18:12 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2022-06-18 01:27:19 +0000

    rc.d/hostid: remove useless cat
    
    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