aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-12-02 19:00:44 +0000
committerBill Nottingham <notting@redhat.com>2005-12-02 19:00:44 +0000
commit8c3d8c834d6a4d13ba520dda4f2e31b881d15368 (patch)
tree136dd9b22f7c65cdd2a88b149dd7ad88612395f5
parent5c5e7c0b1fbbc89736ead95e63e9ebe5a3bad8a2 (diff)
downloadinitscripts-8c3d8c834d6a4d13ba520dda4f2e31b881d15368.tar
initscripts-8c3d8c834d6a4d13ba520dda4f2e31b881d15368.tar.gz
initscripts-8c3d8c834d6a4d13ba520dda4f2e31b881d15368.tar.bz2
initscripts-8c3d8c834d6a4d13ba520dda4f2e31b881d15368.tar.xz
initscripts-8c3d8c834d6a4d13ba520dda4f2e31b881d15368.zip
- fix quoting of environment variables (#174849)r7-93-23-EL
-rw-r--r--initscripts.spec5
-rwxr-xr-xservice8
2 files changed, 8 insertions, 5 deletions
diff --git a/initscripts.spec b/initscripts.spec
index 19f681d1..e1ee1232 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -1,6 +1,6 @@
Summary: The inittab file and the /etc/init.d scripts.
Name: initscripts
-Version: 7.93.22.EL
+Version: 7.93.23.EL
License: GPL
Group: System Environment/Base
Release: 1
@@ -207,6 +207,9 @@ rm -rf $RPM_BUILD_ROOT
%ghost %attr(0664,root,utmp) /var/run/utmp
%changelog
+* Fri Dec 2 2005 Bill Nottingham <notting@redhat.com> 7.93.23.EL-1
+- fix quoting of environment variables (#174849)
+
* Wed Nov 30 2005 Bill Nottingham <notting@redhat.com> 7.93.22.EL-1
- add ifup-ib for Infiniband (#108827, <dledford@redhat.com>)
diff --git a/service b/service
index 4a5992b1..e1925525 100755
--- a/service
+++ b/service
@@ -37,7 +37,7 @@ while [ $# -gt 0 ]; do
;;
*)
if [ -x "${SERVICEDIR}/${SERVICE}" ]; then
- env -i LANG=$LANG PATH=$PATH TERM=$TERM "${SERVICEDIR}/${SERVICE}" status
+ env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" status
fi
;;
esac
@@ -46,8 +46,8 @@ while [ $# -gt 0 ]; do
elif [ $# -eq 2 -a "${2}" = "--full-restart" ]; then
SERVICE="${1}"
if [ -x "${SERVICEDIR}/${SERVICE}" ]; then
- env -i LANG=$LANG PATH=$PATH TERM=$TERM "${SERVICEDIR}/${SERVICE}" stop
- env -i LANG=$LANG PATH=$PATH TERM=$TERM "${SERVICEDIR}/${SERVICE}" start
+ env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" stop
+ env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" start
exit $?
fi
elif [ -z "${SERVICE}" ]; then
@@ -61,7 +61,7 @@ while [ $# -gt 0 ]; do
done
if [ -x "${SERVICEDIR}/${SERVICE}" ]; then
- env -i LANG=$LANG PATH=$PATH TERM=$TERM "${SERVICEDIR}/${SERVICE}" ${OPTIONS}
+ env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" ${OPTIONS}
else
echo $"${SERVICE}: unrecognized service" >&2
exit 1