From owner-freebsd-bugs Mon Jul 3 2:50: 6 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 D689937BB94 for ; Mon, 3 Jul 2000 02:50:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id CAA47299; Mon, 3 Jul 2000 02:50:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Mon, 3 Jul 2000 02:50:03 -0700 (PDT) Message-Id: <200007030950.CAA47299@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Sheldon Hearn Subject: Re: bin/19611: ee silently overwrites write-protected files Reply-To: Sheldon Hearn Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/19611; it has been noted by GNATS. From: Sheldon Hearn To: gerti-freebsd@bitart.com Cc: freebsd-gnats-submit@FreeBSD.ORG Subject: Re: bin/19611: ee silently overwrites write-protected files Date: Mon, 03 Jul 2000 11:46:27 +0200 On Fri, 30 Jun 2000 14:56:12 MST, gerti-freebsd@bitart.com wrote: > >Description: > ee run under root silently overwrites write-protected files. It would be possible to introduce an extra check for file permissions when ee is run under root, but this would introduce an artificial limit. At the moment, the software expects anyone running as root to be clueful enough to realize that root pays no heed to file permissions. The alternative which you suggests introduces a new frustration -- the "root" user has to bail out of ee to change the access permissions of the file and then restart ee. This would be quite annoying. It _would_ be possible to pop a dialogue up when root is about to save to a file which is read-only. If you feel that this is something you want to work on, I'd suggest that you first chat to the author, High Mahon about whether he wants the software to behave like this, before working on a patch. I think it would be a bad idea for our ee to differ in its interface from the standard ee, which new users often rely on. Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message