mirror of
https://github.com/openwrt/packages.git
synced 2025-12-28 05:40:06 +04:00
python: Replace utime with utimes
Optionally fixes compilation with uClibc-ng. Based on the surrounding code, this looks like an oversight. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
11
lang/python/python/patches/025-utime.patch
Normal file
11
lang/python/python/patches/025-utime.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/Modules/posixmodule.c
|
||||
+++ b/Modules/posixmodule.c
|
||||
@@ -3070,7 +3070,7 @@ done:
|
||||
if (arg == Py_None) {
|
||||
/* optional time values not given */
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
- res = utime(path, NULL);
|
||||
+ res = utimes(path, NULL);
|
||||
Py_END_ALLOW_THREADS
|
||||
}
|
||||
else if (!PyTuple_Check(arg) || PyTuple_Size(arg) != 2) {
|
||||
Reference in New Issue
Block a user