Issue2370

classification
Title: The behavior of os.makedirs changed between jython 2.5.1 and 2.5.2
Type: behaviour Severity: normal
Components: Core Versions: Jython 2.5
Milestone:
process
Status: closed Resolution: invalid
Dependencies: Superseder:
Assigned To: Nosy List: sefas, zyasoft
Priority: Keywords:

Created on 2015-06-17.08:26:58 by sefas, last changed 2015-07-06.21:00:04 by zyasoft.

Messages
msg10122 (view) Author: sefas (sefas) Date: 2015-06-17.08:26:57
A problem appears when using 4 digits in os.makedirs in 2.5.2

The folder created by makedirs has not the good rights in jython 2.5.2 when using 4 digits 

result in 2.5.1 :
os.makedirs("threedigit", 755) --> drwxr-xr-x 2 adf users 48 2015-05-07 15:54 threedigit 
os.makedirs("fourdigit", 0755) --> drwxr-xr-x 2 adf users 48 2015-05-07 15:55 fourdigit 

result in 2.5.2 : 
os.makedirs("threedigit", 755) --> d-wxr----t 2 adf users 4096 May 7 15:46 threedigit 
os.makedirs("fourdigit", 0755) --> drwxr-xr-x 2 adf users 48 2015-05-07 15:55 fourdigit
msg10123 (view) Author: sefas (sefas) Date: 2015-06-17.08:35:35
an error appears in the previous note , I would like to say that the error appears when using 3 digits  .
msg10129 (view) Author: Jim Baker (zyasoft) Date: 2015-06-22.21:13:33
So I'm not running 2.5.2 or 2.5.1, but it looks like the difference was that the decimal literal 755 was being parsed as if it were an octal literal 0755. But that's not correct, and does not comply with the reference implementation of CPython.
History
Date User Action Args
2015-07-06 21:00:04zyasoftsetstatus: pending -> closed
2015-06-22 21:13:33zyasoftsetstatus: open -> pending
resolution: invalid
messages: + msg10129
nosy: + zyasoft
2015-06-17 08:35:35sefassetmessages: + msg10123
2015-06-17 08:26:58sefascreate