Date: Fri, 23 Jun 1995 11:10:01 -0700 From: Paul Richards <paul@lambda.demon.co.uk> To: freebsd-bugs Subject: misc/556: Bug in /etc/rc Message-ID: <199506231810.LAA20322@freefall.cdrom.com> In-Reply-To: Your message of Fri, 23 Jun 1995 19:01:56 %2B0100 <199506231801.TAA01235@lambda.demon.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
>Number: 556 >Category: misc >Synopsis: Bug in /etc/rc >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs (FreeBSD bugs mailing list) >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jun 23 11:10:00 1995 >Originator: Thomas Krebs >Organization: Institute for Manufacturing Automation >Release: FreeBSD 2.0-RELEASE i386 >Environment: Existing vi recovery files in /var/tmp/vi.recover. >Description: Utiliy at line 134 does not recover recovery files. The quoted string "$virecovery" is always "/var/tmp/vi.recover/recover.*" and so the test is always false! >How-To-Repeat: Have recovery files in /var/tmp/vi.recover and reboot. >Fix: Apply a fix like the following: *** rc Thu Dec 1 23:47:08 1994 --- rc.orig Thu Dec 1 23:45:19 1994 *************** *** 132,141 **** fi # Recover vi editor files. ! nfiles=`ls /var/tmp/vi.recover/ | fgrep recover | wc -l` ! if [ $nfiles -gt 0 ]; then echo 'Recovering vi editor sessions' - virecovery=/var/tmp/vi.recover/recover.* for i in $virecovery; do sendmail -t < $i done --- 132,140 ---- fi # Recover vi editor files. ! virecovery=/var/tmp/vi.recover/recover.* ! if [ "$virecovery" != "/var/tmp/vi.recover/recover.*" ]; then echo 'Recovering vi editor sessions' for i in $virecovery; do sendmail -t < $i done -- Thomas Krebs Department for Manufacturing Automation and Production Systems FAPS University of Erlangen krebs@faps.uni-erlangen.de >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199506231810.LAA20322>