[Zope-Coders] new zLOG
Chris McDonough
chrism@zope.com
25 Nov 2002 11:32:30 -0500
On Mon, 2002-11-25 at 11:11, Toby Dickenson wrote:
> On Monday 25 November 2002 2:53 pm, Chris McDonough wrote:
> > Yes, it is intentional.. sorry I should have mentioned this and made it
> > explicit in the changelog. If "import zLOG" potentially causes a file
> > to be written, it is difficult to control when it is "safe" to import.
> > Can you live with this?
>
> The most unsafe thing it does is creating an empty log file when none
> previously existed. That seems safe enough to me.
>
> In most cases the log file will already exist, and there is no on-disk change.
> right?
Having an import have the side effect of writing a file causes problems
when you have a process which needs to setuid after importing zLOG as
root. The log file is written as root (which it shouldn't be) and the
effective user is only able to write to the log for as long as the file
stays open. Suggestions?
- C