FreeBSD Bugzilla – Attachment 234357 Details for
Bug 264376
[patch] rc.d/hostid needlessly re-cats /etc/hostid
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[PATCH] rc.d/hostid: remove useless cat
rc.d-hostid.patch (text/plain), 686 bytes, created by
наб
on 2022-05-31 19:16:45 UTC
(
hide
)
Description:
[PATCH] rc.d/hostid: remove useless cat
Filename:
MIME Type:
Creator:
наб
Created:
2022-05-31 19:16:45 UTC
Size:
686 bytes
patch
obsolete
>Date: Tue, 31 May 2022 01:18:12 +0200 >From: наб <nabijaczleweli@nabijaczleweli.xyz> >Subject: [PATCH] rc.d/hostid: remove useless cat > >We've already read it and validated it â re-reading is wasteful >--- > 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 01697a1d1..39a0f4acb 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 >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 264376
: 234357