summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-01-06 14:27:37 +0000
committerpeter <peter@FreeBSD.org>2000-01-06 14:27:37 +0000
commita0a8eee5b3e9c166e76654c5b8ee0964abab8c93 (patch)
tree43418bd0d89984f2b6be929c17920051b9e2d360 /etc/rc
parent65fe2b0cb90bef103340fd85e4b329aea0c495e8 (diff)
downloadFreeBSD-src-a0a8eee5b3e9c166e76654c5b8ee0964abab8c93.zip
FreeBSD-src-a0a8eee5b3e9c166e76654c5b8ee0964abab8c93.tar.gz
Third try.. Avoid filenames with spaces in them.
PR: 15937 Pointed out by: Koga Youichirou <y-koga@jp.FreeBSD.org>
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index 50607d5..33ed91a 100644
--- a/etc/rc
+++ b/etc/rc
@@ -433,7 +433,7 @@ find /var/tmp/vi.recover ! -type f -a ! -type d -delete
vibackup=`echo /var/tmp/vi.recover/vi.*`
if [ "${vibackup}" != '/var/tmp/vi.recover/vi.*' ]; then
echo 'Recovering vi editor sessions'
- for i in ${vibackup}; do
+ for i in /var/tmp/vi.recover/vi.*; do
# Only test files that are readable.
if [ ! -r "${i}" ]; then
continue
@@ -450,7 +450,7 @@ if [ "${vibackup}" != '/var/tmp/vi.recover/vi.*' ]; then
# crashes at the right time.
virecovery=`echo /var/tmp/vi.recover/recover.*`
if [ "${virecovery}" != "/var/tmp/vi.recover/recover.*" ]; then
- for i in ${virecovery}; do
+ for i in /var/tmp/vi.recover/recover.*; do
# Only test files that are readable.
if [ ! -r "${i}" ]; then
continue
OpenPOWER on IntegriCloud