[issue8882] socketmodule.c`getsockaddrarg() should not check the length of sun_path

2010-06-04 Thread Edward Pilatowicz
Edward Pilatowicz added the comment: some additional data. AIX 6.1: defined sun_path = 1023 max sun_path = 1023 i'll also point out the existence of the SUN_LEN() macro, which is defined on all the previously mentioned operating systems, and which calculates the size of a sockad

[issue8882] socketmodule.c`getsockaddrarg() should not check the length of sun_path

2010-06-03 Thread Edward Pilatowicz
Edward Pilatowicz added the comment: so i wrote a simple test program that tells me the defined length of sun_path and then uses bind() with increasingly long paths to determine the actually supported length of sun_path. here's what i've found: Solaris: defined sun_path = 1

[issue8882] socketmodule.c`getsockaddrarg() should not check the length of sun_path

2010-06-02 Thread Edward Pilatowicz
New submission from Edward Pilatowicz : recently i was writing some python code that attempted to bind a unix domain socket to a long filesystem path. this code was failing and telling me that the path name was too long. tracing python i saw that it wasn't event issuing a system call f