Date: Wed, 9 Oct 2002 13:40:03 -0700 (PDT) From: Giorgos Keramidas <keramida@freebsd.org> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/43865: unterminated string in rc.conf leaves system unuseable / disk readonly Message-ID: <200210092040.g99Ke3Pi087480@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/43865; it has been noted by GNATS. From: Giorgos Keramidas <keramida@freebsd.org> To: Ceri Davies <setantae@submonkey.net> Cc: bug-followup@freebsd.org Subject: Re: bin/43865: unterminated string in rc.conf leaves system unuseable / disk readonly Date: Wed, 9 Oct 2002 23:38:12 +0300 On 2002-10-09 21:20, Ceri Davies <setantae@submonkey.net> wrote: > On Wed, Oct 09, 2002 at 10:36:08PM +0300, Giorgos Keramidas wrote: > > One of the ideas I had and never actually got around to implementing > > was a shell wrapper around $EDITOR that allows root to edit rc.conf > > and then checks to see that sh(1) can still parse the resulting file. > > > > Something along the lines of: > > > > # viconf > > >>> copy /etc/rc.conf to /tmp/rc.conf.orig.$$ > > Sounds good. lockf is your friend. Well, I meant to avoid locking since it will future edits if a crash happens during the period that the lock is held. I'll try to write something and follow-up later. 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?200210092040.g99Ke3Pi087480>