From owner-freebsd-bugs Thu Jan 6 2:50: 9 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id B49F1155A3 for ; Thu, 6 Jan 2000 02:50:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id CAA94395; Thu, 6 Jan 2000 02:50:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id A504015078; Thu, 6 Jan 2000 02:42:31 -0800 (PST) Message-Id: <20000106104231.A504015078@hub.freebsd.org> Date: Thu, 6 Jan 2000 02:42:31 -0800 (PST) From: y-koga@jp.FreeBSD.org To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: conf/15937: vi recover script in /etc/rc still remains unsolved. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 15937 >Category: conf >Synopsis: vi recover script in /etc/rc still remains unsolved. >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 6 02:50:02 PST 2000 >Closed-Date: >Last-Modified: >Originator: Koga Youichirou >Release: 2.2.8-STABLE, 3.4-RELEASE, and current >Organization: The FreeBSD Project (Japan) >Environment: >Description: About vi recover script in /etc/rc, this problem has been submitted by Mr. Kojima and Peter has committed already, but it still remains unsolved. Quoting filename(s) does not make sence, because it is splitted by space before then. >How-To-Repeat: case a) /foo is executable and user root can rm -f /foo: % echo a > '/var/tmp/vi.recover/vi. foo' case b) user root can rm -f /foo: % touch /var/tmp/vi.recover/recover. foo' >Fix: a) Change the working directory to /var/tmp/vi.recover or use full path, and it can't remove a file "/foo". However, it is no more than a temporary step. b) Use "ls" and replace white spaces with some charcters. e.g.) SPACE => /s TAB => /t then restore as before and quote word(s) in "for" block. Probably there are better solutions than above. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message