diff options
author | наб <nabijaczleweli@nabijaczleweli.xyz> | 2022-05-30 23:18:12 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2023-09-24 15:48:34 +0000 |
commit | 7af7a0d1b14e669277f704eac0b8d3f82d327a9b (patch) | |
tree | 87df61a5bc0c3e7c6faa73245ed95ee3c3c8a344 | |
parent | 1b4d7a2ee76121cada89d6f17fab0feed42c3bff (diff) | |
download | src-7af7a0d1b14e669277f704eac0b8d3f82d327a9b.tar.gz src-7af7a0d1b14e669277f704eac0b8d3f82d327a9b.zip |
rc.d/hostid: remove useless cat
We've already read it and validated it ‒ re-reading is wasteful
PR: 264376
(cherry picked from commit 11bd40d04af59daa7ae7feea0518081a35f07053)
-rwxr-xr-x | libexec/rc/rc.d/hostid | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/rc/rc.d/hostid b/libexec/rc/rc.d/hostid index b28e0fc9240e..1d6337e1e28c 100755 --- a/libexec/rc/rc.d/hostid +++ b/libexec/rc/rc.d/hostid @@ -137,7 +137,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 |