[New-bugs-announce] [issue15301] os.chown: OverflowError: Python int too large to convert to C long

do1 report at bugs.python.org
Mon Jul 9 04:15:39 CEST 2012


New submission from do1 <do1 at yandex.ru>:

os.chown() can not change uid/gid to valid but high number.

# chown 4294967294.4294967294 a
# ls -l a
-rw-r--r-- 1 4294967294 4294967294 0 Jul  9 05:22 a

# python
Python 2.7.3 (default, Jun 24 2012, 06:19:44)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.chown("a", 4294967294, 4294967294)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OverflowError: Python int too large to convert to C long

----------
components: None
messages: 165053
nosy: do1
priority: normal
severity: normal
status: open
title: os.chown: OverflowError: Python int too large to convert to C long
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15301>
_______________________________________


More information about the New-bugs-announce mailing list