Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/service cosmetic change in man 8 service
details: https://anonhg.NetBSD.org/src/rev/47b7fb76b0ef
branches: trunk
changeset: 337108:47b7fb76b0ef
user: ast <ast%NetBSD.org@localhost>
date: Thu Apr 02 18:41:22 2015 +0000
description:
cosmetic change in man 8 service
use shell quoting in a safe way as suggested by Alan Barrett
diffstat:
usr.sbin/service/service | 10 ++++++----
usr.sbin/service/service.8 | 4 ++--
2 files changed, 8 insertions(+), 6 deletions(-)
diffs (43 lines):
diff -r 99b89464a5ef -r 47b7fb76b0ef usr.sbin/service/service
--- a/usr.sbin/service/service Thu Apr 02 16:49:09 2015 +0000
+++ b/usr.sbin/service/service Thu Apr 02 18:41:22 2015 +0000
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: service,v 1.5 2015/03/27 23:25:42 ast Exp $
+# $NetBSD: service,v 1.6 2015/04/02 18:41:22 ast Exp $
# service -- run or list system services
#
# Taken from FreeBSD: releng/10.1/usr.sbin/service/service.sh 268098
@@ -50,9 +50,11 @@
{
local _d _f
for _d in ${rc_directories}; do
- if [ -d $_d ]; then
- for _f in $_d/*; do [ -f $_f -a -x $_f ] && echo $_f; done
- fi
+ if [ -d "$_d" ]; then
+ for _f in "$_d"/*; do
+ [ -f "$_f" -a -x "$_f" ] && echo "$_f"
+ done
+ fi
done | xargs rcorder -s nostart ${rc_rcorder_flags} 2>/dev/null
return 0
}
diff -r 99b89464a5ef -r 47b7fb76b0ef usr.sbin/service/service.8
--- a/usr.sbin/service/service.8 Thu Apr 02 16:49:09 2015 +0000
+++ b/usr.sbin/service/service.8 Thu Apr 02 18:41:22 2015 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: service.8,v 1.3 2015/03/23 23:28:55 ast Exp $
+.\" $NetBSD: service.8,v 1.4 2015/04/02 18:41:22 ast Exp $
.\"
.\" Copyright (c) 2009 Douglas Barton
.\" All rights reserved.
@@ -35,7 +35,7 @@
.Op Fl elv
.Nm
.Op Fl ev
-.Ar rc_script_name Op Ar rc_script_name2 Op Ar ...
+.Ar rc_script_name1 Op Ar rc_script_name2 Op Ar ...
.Nm
.Op Fl v
.Ar rc_script_name action
Home |
Main Index |
Thread Index |
Old Index