1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Quote arguments in vi recover script.

PR:		15901
Submitted by:	KOJIMA Hajime <kjm@rins.ryukoku.ac.jp>
This commit is contained in:
Peter Wemm 2000-01-05 08:17:18 +00:00
parent ffa258b0aa
commit 57c96870e6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=55451

6
etc/rc
View File

@ -442,7 +442,7 @@ if [ "${vibackup}" != '/var/tmp/vi.recover/vi.*' ]; then
# Unmodified nvi editor backup files either have the
# execute bit set or are zero length. Delete them.
if [ -x "${i}" -o ! -s "${i}" ]; then
rm -f ${i}
rm -f "${i}"
fi
done
@ -461,9 +461,9 @@ if [ "${vibackup}" != '/var/tmp/vi.recover/vi.*' ]; then
# Else send mail to the user.
recfile=`awk '/^X-vi-recover-path:/{print $2}' < ${i}`
if [ -n "${recfile}" -a -s "${recfile}" ]; then
sendmail -t < ${i}
sendmail -t < "${i}"
else
rm -f ${i}
rm -f "${i}"
fi
done
fi