Your message dated Sun, 3 Jul 2016 11:22:15 +0200
with message-id <[email protected]>
and subject line closing bugs reported against ancient python versions
has caused the Debian Bug report #451204,
regarding python2.5: [mailbox] dotlocking doesn't catch EACCES
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
451204: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=451204
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python2.5
Version: 2.5-5
Severity: normal

Hi, 

see this code snippet from python2.5/mailbox.py in Etch: 

,----[ _lock_file(), lines 1834-1842 ]
|         if dotlock:
|             try: 
|                 pre_lock = _create_temporary(f.name + '.lock')
|                 pre_lock.close()
|             except IOError, e:
|                 if e.errno == errno.EACCES:
|                     return  # Without write access, just skip dotlocking.
|                 else:
|                     raise
`----

This doesn't work as expected: 

penelope[~]$ python2.5
Python 2.5 (release25-maint, Dec  9 2006, 14:35:53) 
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-20)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import mailbox
>>> mbox = mailbox.mbox("/var/mail/nikolaus")
>>> mbox.lock()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/mailbox.py", line 556, in lock
    _lock_file(self._file)
  File "/usr/lib/python2.5/mailbox.py", line 1836, in _lock_file
    pre_lock = _create_temporary(f.name + '.lock')
  File "/usr/lib/python2.5/mailbox.py", line 1885, in _create_temporary
    os.getpid()))
  File "/usr/lib/python2.5/mailbox.py", line 1875, in _create_carefully
    fd = os.open(path, os.O_CREAT | os.O_EXCL | os.O_RDWR)
OSError: [Errno 13] Permission denied: 
'/var/mail/nikolaus.lock.1195013888.penelope.7654'

I've checked upstream svn trunk, the code there is unchanged. 

Cheers, 
Nikolaus


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-5-k7
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)

Versions of packages python2.5 depends on:
ii  libbz2-1.0             1.0.3-6           high-quality block-sorting file co
ii  libc6                  2.3.6.ds1-13etch2 GNU C Library: Shared libraries
ii  libdb4.4               4.4.20-8          Berkeley v4.4 Database Libraries [
ii  libncursesw5           5.5-5             Shared libraries for terminal hand
ii  libreadline5           5.2-2             GNU readline and history libraries
ii  libsqlite3-0           3.3.8-1.1         SQLite 3 shared library
ii  libssl0.9.8            0.9.8c-4etch1     SSL shared libraries
ii  mime-support           3.39-1            MIME files 'mime.types' & 'mailcap
ii  python2.5-minimal      2.5-5             A minimal subset of the Python lan

python2.5 recommends no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
This bug has been reported against an ancient version of
python (2.5/3.1), that was last released with Debian 6.0 (squeeze). But
even squeeze-lts has now reached end-of-life and is no longer supported.
The bug is assumed to be fixed (or no longer relevant) in newer python
releases and therefore I'm closing this report now. If the problem is
still reproducible in the currently supported versions (python2.7,
python3.5/python3.6), feel free to provide more information, reopen
and reassign this bug report.


Andreas

--- End Message ---

Reply via email to