Date: Thu, 6 Jan 2000 02:42:31 -0800 (PST) From: y-koga@jp.FreeBSD.org To: freebsd-gnats-submit@FreeBSD.org Subject: conf/15937: vi recover script in /etc/rc still remains unsolved. Message-ID: <20000106104231.A504015078@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000106104231.A504015078>