git: 5975766234e5 - stable/13 - rc.subr(8): run `trailing-whitespace-fixer`
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 31 Jan 2026 23:04:56 UTC
The branch stable/13 has been updated by ngie:
URL: https://cgit.FreeBSD.org/src/commit/?id=5975766234e54b6c5410b87b94747b9f88ba34b6
commit 5975766234e54b6c5410b87b94747b9f88ba34b6
Author: Enji Cooper <ngie@FreeBSD.org>
AuthorDate: 2023-05-11 05:39:32 +0000
Commit: Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2026-01-31 23:04:46 +0000
rc.subr(8): run `trailing-whitespace-fixer`
This change deletes benign trailing whitespace from rc.subr, making
future non-stylistic changes easier to spot.
MFC after: 1 week
(cherry picked from commit 4e9041a78690b2c7ea35ab1c548412f2ac69da4d)
---
libexec/rc/rc.subr | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/libexec/rc/rc.subr b/libexec/rc/rc.subr
index eaaa3c778bff..8a238bb8756e 100644
--- a/libexec/rc/rc.subr
+++ b/libexec/rc/rc.subr
@@ -66,7 +66,7 @@ rc_service="$0"
# list_vars pattern
# List variables matching glob pattern.
-#
+#
list_vars()
{
# Localize 'set' option below.
@@ -441,7 +441,7 @@ sort_lite()
local curitem curitem_orig curitem_mod curitem_haskey
local dest dest_orig dest_mod dest_haskey
local d gt n
- local i=1
+ local i=1
while [ $i -le $nitems ]; do
curitem_haskey=1 # Assume sort field (-k POS) exists
eval curitem=\"\$src_$i\"
@@ -1069,19 +1069,19 @@ run_rc_command()
echo "$desc"
fi
;;
-
+
extracommands)
echo "$extra_commands"
;;
enable)
_out=$(/usr/sbin/sysrc -vs "$name" "$rcvar=YES") &&
- echo "$name enabled in ${_out%%:*}"
+ echo "$name enabled in ${_out%%:*}"
;;
disable)
_out=$(/usr/sbin/sysrc -vs "$name" "$rcvar=NO") &&
- echo "$name disabled in ${_out%%:*}"
+ echo "$name disabled in ${_out%%:*}"
;;
delete)