[Zope] Zope startup msgs

John Poltorak jp at warpix.org
Tue Mar 9 05:04:46 EST 2004


On Tue, Mar 09, 2004 at 09:38:04AM +0000, Chris Withers wrote:
> John Poltorak wrote:
> 
> > I'm running Zope on OS/2 because someone ported 2.6.0 a while ago.
> > This 'porting' actually amounted to knowing that eight lines needed to be 
> > removed from z2.py. The same lines needed to be removed from 2.6.4, but 
> > 2.7.0 sounds like a whole new ball game. 
> 
> What eight lines were they?

See attached diff.

It due to the OS/2 port of Python not being able to handle sticky bits.

> 
> Chris
> 
> -- 
> Simplistix - Content Management, Zope & Python Consulting
>             - http://www.simplistix.co.uk
> 


-- 
John

-------------- next part --------------
--- z2.py~	Thu Feb 27 15:53:08 2003
+++ z2.py	Fri Mar  5 15:45:20 2004
@@ -844,17 +844,6 @@
                                    'to; fix this to start as root (see '
                                    'doc/SETUID.txt)')
             import stat
-            client_home_stat = os.stat(CLIENT_HOME)
-            client_home_faults = []
-            if not (client_home_stat[stat.ST_MODE]&01000):
-                client_home_faults.append('does not have the sticky bit set')
-            if client_home_stat[stat.ST_UID] != 0:
-                client_home_faults.append('is not owned by root')
-            if client_home_faults:
-                client_home_faults.append('fix this to start as root (see '
-                                          'doc/SETUID.txt)')
-                err = '%s %s' % (CLIENT_HOME, ', '.join(client_home_faults))
-                raise SystemExit, err
 
             try:
                 try:    UID = string.atoi(UID)


More information about the Zope mailing list