From gelderen@grolsch.ai Sun Jan 21 15:28:39 2001 Return-Path: Received: from grolsch.ai (grolsch.ai [209.88.68.214]) by hub.freebsd.org (Postfix) with ESMTP id 57CC237B400 for ; Sun, 21 Jan 2001 15:28:38 -0800 (PST) Received: (from gelderen@localhost) by grolsch.ai (8.11.1/8.11.1) id f0LNSP400470; Sun, 21 Jan 2001 19:28:25 -0400 (AST) (envelope-from gelderen) Message-Id: <200101212328.f0LNSP400470@grolsch.ai> Date: Sun, 21 Jan 2001 19:28:25 -0400 (AST) From: jeroen@systemics.com Reply-To: jeroen@systemics.com To: FreeBSD-gnats-submit@freebsd.org Subject: Fix for find(1) warning in /etc/rc X-Send-Pr-Version: 3.2 >Number: 24515 >Category: conf >Synopsis: Fix for find(1) warning in /etc/rc >Confidential: no >Severity: non-critical >Priority: medium >Responsible: dougb >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jan 21 15:30:01 PST 2001 >Closed-Date: Tue Nov 22 20:56:37 GMT 2005 >Last-Modified: Tue Nov 22 20:56:37 GMT 2005 >Originator: Jeroen C. van Gelderen >Release: FreeBSD 4.2-STABLE i386 >Organization: >Environment: FreebSD 4.2-STABLE, stock /etc/rc. >Description: /etc/rc unconditionally executes find /var/tmp/vi.recover ! -type f -a ! -type d -delete which results in a warning printed when /var/tmp does not contain a vi.recover directory. This is often the case when one clears /tmp on boot and /tmp is a symlink to /var/tmp . >How-To-Repeat: Boot with an empty /var/tmp. >Fix: Surround the vi recovery code with an appropriate if block. Below you'll find a uuencode(1)ed patch (sorry, UNIX still doesn't have proper copy 'n paste): begin 644 rc.diff M+2TM(')C+F]L9`E3=6X@2F%N(#(Q(#$Y.C`X.C`V(#(P,#$**RLK(')C"5-U M;B!*86X@,C$@,3DZ,#7!E(&8@+6$@(2`M='EP92!D M("UD96QE=&4*+79I8F%C:W5P/6!E8VAO("]V87(O=&UP+W9I+G)E8V]V97(O M=FDN*F`*+6EF(%L@(B1[=FEB86-K=7!](B`A/2`G+W9AVE](B!=.R!T:&5N"BT)"0EC;VYT:6YU90HM M"0EF:0HM"BT)"2,@56YM;V1I9FEE9"!N=FD@961I=&]R(&)A8VMU<"!F:6QE M&5C=71E(&)I="!S970@;W(@87)E M('IEVE](@HM"0EF M:0HM"61O;F4*+0HM"2,@270@:7,@<&]S3U@96-H;R`O=F%R+W1M M<"]V:2YR96-O=F5R+W)E8V]V97(N*F`*+0EI9B!;("(D>W9I2!W:&5N('=E M(&%C='5A;&QY(&AA=F4**R,@82!D:7)E8W1OF5R;R!L96YG=&@L"BT)"0DC(&-OVE](F`*+0D) M"6EF(%L@+6X@(B1[W)E8V9I;&5](B!=.R!T M:&5N"BT)"0D)"`B)'MI?2(@+6\@(2`MVE](@H@"0D)9FD*(`D)9&]N M90HK"BL)"2,@270@:7,@<&]SW9I2!T97-T(&9I;&5S('1H870@87)E(')E861A8FQE+@HK"0D) M"6EF(%L@(2`MF5R;PHK"0D)"2,@;&5N9W1H+"!C;W)R=7!T960L(&]R('1H870@:&%V M92!N;PHK"0D)"2,@8V]R6"UV:2UR96-O=F5R+7!A=&@Z+WMPW)E8V9I;&5] M(B!=.R!T:&5N"BL)"0D)"7-E;F1M86EL("UT(#P@(B1[:7TB"BL)"0D)96QS M90HK"0D)"0ER;2`M9B`B)'MI?2(**PD)"0EF:0HK"0D)9&]N90HK"0EF:0H@ *"69I"B!F:0H@"B`M ` end >Release-Note: >Audit-Trail: Responsible-Changed-From-To: freebsd-bugs->dougb Responsible-Changed-By: johan Responsible-Changed-When: Mon Aug 19 11:06:51 PDT 2002 Responsible-Changed-Why: Doug is look at rc stuff. http://www.freebsd.org/cgi/query-pr.cgi?pr=24515 State-Changed-From-To: open->patched State-Changed-By: dougb State-Changed-When: Fri Feb 21 01:37:30 PST 2003 State-Changed-Why: I've applied the easy fix to the rcNG version of virecover. Something similar to your patch is necessary for the /etc/rc version, at least in RELENG_4, but fixing that properly is rather ugly, and at this late stage might not be worth the effort. I'll leave this PR open for a while though while I think it over. Sorry for the long delay, but I do appreciate your interest in making FreeBSD better. http://www.freebsd.org/cgi/query-pr.cgi?pr=24515 State-Changed-From-To: patched->closed State-Changed-By: dougb State-Changed-When: Tue Nov 22 20:54:59 GMT 2005 State-Changed-Why: Since RELENG_4 is reaching EOL slowly but surely, and changing this behavior now may cause undo stress for the installed base, let this one die. http://www.freebsd.org/cgi/query-pr.cgi?pr=24515 >Unformatted: