Bug in os.unlink() /Solaris

Barry A. Warsaw bwarsaw at cnri.reston.va.us
Fri May 21 10:21:20 EDT 1999


>>>>> "AJ" == Andreas Jung <ajung at sz-sb.de> writes:

    AJ> os.unlink() behaves a bit strange under Solaris
    AJ> when I am trying to remove a directory:

Read the manpage for unlink(2), which os.unlink is just a wrapper
for:

     EPERM          The named file is a directory and the  effec-
                    tive  user  of  the  calling  process  is not
                    super-user.

Python 1.5.2 (#7, Apr 16 1999, 18:24:22)  [GCC 2.8.1] on sunos5
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import errno
>>> errno.EPERM
1

-Barry




More information about the Python-list mailing list