[issue23346] shutil.rmtree doesn't work correctly on FreeBSD.

2018-11-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue23346] shutil.rmtree doesn't work correctly on FreeBSD.

2018-06-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I can't reproduce the problem on FreeBSD 11.1. If it is reproducible only on old versions, we can close this issue. If it depends on specific configuration, it is still a Python issue. -- ___ Python tracker

[issue23346] shutil.rmtree doesn't work correctly on FreeBSD.

2018-06-12 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue23346] shutil.rmtree doesn't work correctly on FreeBSD.

2015-05-06 Thread sumpfralle
sumpfralle added the comment: I experience the same issue on a virtualized server (based on Virtuozzo) with Linux kernel 2.6.32. The following command fails: echo "import os; os.listdir(os.open('/tmp', os.O_RDONLY))" | python3 Traceback (most recent call last): File "", line 1, in OSErr

[issue23346] shutil.rmtree doesn't work correctly on FreeBSD.

2015-01-29 Thread Denis Sukhonin
Denis Sukhonin added the comment: The same problem. >>> os.listdir(os.open('/tmp/test/', os.O_RDONLY)) Traceback (most recent call last): File "", line 1, in OSError: [Errno 22] Invalid argument -- ___ Python tracker

[issue23346] shutil.rmtree doesn't work correctly on FreeBSD.

2015-01-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What if add a slash at the end of the path? os.listdir(os.open('/tmp/test/', os.O_RDONLY)) -- ___ Python tracker ___

[issue23346] shutil.rmtree doesn't work correctly on FreeBSD.

2015-01-29 Thread koobs
Changes by koobs : -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mail

[issue23346] shutil.rmtree doesn't work correctly on FreeBSD.

2015-01-29 Thread STINNER Victor
Changes by STINNER Victor : -- versions: +Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue23346] shutil.rmtree doesn't work correctly on FreeBSD.

2015-01-29 Thread STINNER Victor
STINNER Victor added the comment: >> Does os.listdir(os.open('/tmp/test', os.O_RDONLY)) work? > No, it throws 22. Oh, too bad. Maybe we can detect this at Python compilation. If not, rmtree() should detect the failure and switch back to the unsafe implementation (which uses paths, not file de

[issue23346] shutil.rmtree doesn't work correctly on FreeBSD.

2015-01-29 Thread Denis Sukhonin
Denis Sukhonin added the comment: No, it throws 22. >>> os.listdir(os.open('/tmp/test', os.O_RDONLY)) Traceback (most recent call last): File "", line 1, in OSError: [Errno 22] Invalid argument -- ___ Python tracker

[issue23346] shutil.rmtree doesn't work correctly on FreeBSD.

2015-01-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Does os.listdir(os.open('/tmp/test', os.O_RDONLY)) work? -- ___ Python tracker ___ ___ Python-bugs

[issue23346] shutil.rmtree doesn't work correctly on FreeBSD.

2015-01-29 Thread Denis Sukhonin
Denis Sukhonin added the comment: It returns an integer. >>> import os >>> os.open('/tmp/test', os.O_RDONLY) 3 -- ___ Python tracker ___

[issue23346] shutil.rmtree doesn't work correctly on FreeBSD.

2015-01-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: topfd is '/tmp/test'. But it should be file descriptor, an integer. What os.open('/tmp/test', os.O_RDONLY) returns? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue23346] shutil.rmtree doesn't work correctly on FreeBSD.

2015-01-28 Thread Denis Sukhonin
New submission from Denis Sukhonin: shutil.rmtree doesn't work correctly on FreeBSD 9.1. For example if I create a path /tmp/test and try to remove it, I get an exception: >>> shutil.rmtree('/tmp/test') Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.4/