Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Jun 2022 01:28:28 GMT
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 11bd40d04af5 - main - rc.d/hostid: remove useless cat
Message-ID:  <202206180128.25I1SSVx093334@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202206180128.25I1SSVx093334>