2021-09-10 07:38:48 +02:00
|
|
|
|
|
|
|
diff -uNr ./deps/uv/src/unix/fs.c ./deps/uv/src/unix/fs.c.mod
|
|
|
|
--- ./deps/uv/src/unix/fs.c 2021-06-03 07:15:30.000000000 +0530
|
|
|
|
+++ ./deps/uv/src/unix/fs.c.mod 2021-06-18 20:05:49.675642773 +0530
|
|
|
|
@@ -1247,6 +1247,7 @@
|
|
|
|
#endif /* !__linux__ */
|
nodejs: avoid FICLONE ioctl
Issue https://github.com/termux/termux-packages/issues/4664.
19824 ioctl(29, BTRFS_IOC_CLONE or FICLONE, 34 <unfinished ...>
19823 fstat64(30, <unfinished ...>
19822 write(16, "\1\0\0\0\0\0\0\0", 8 <unfinished ...>
19821 close(31 <unfinished ...>
19804 <... epoll_pwait resumed>[{EPOLLIN, {u32=16, u64=16}}], 1024, 867, NULL, 8) = 1
19824 <... ioctl resumed>) = -1 EACCES (Permission denied)
2020-01-16 01:29:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
+#ifndef __ANDROID__
|
|
|
|
#ifdef FICLONE
|
|
|
|
if (req->flags & UV_FS_COPYFILE_FICLONE ||
|
|
|
|
req->flags & UV_FS_COPYFILE_FICLONE_FORCE) {
|
2021-09-10 07:38:48 +02:00
|
|
|
@@ -1267,6 +1268,7 @@
|
nodejs: avoid FICLONE ioctl
Issue https://github.com/termux/termux-packages/issues/4664.
19824 ioctl(29, BTRFS_IOC_CLONE or FICLONE, 34 <unfinished ...>
19823 fstat64(30, <unfinished ...>
19822 write(16, "\1\0\0\0\0\0\0\0", 8 <unfinished ...>
19821 close(31 <unfinished ...>
19804 <... epoll_pwait resumed>[{EPOLLIN, {u32=16, u64=16}}], 1024, 867, NULL, 8) = 1
19824 <... ioctl resumed>) = -1 EACCES (Permission denied)
2020-01-16 01:29:06 +01:00
|
|
|
goto out;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
+#endif
|
2021-09-10 07:38:48 +02:00
|
|
|
|
nodejs: avoid FICLONE ioctl
Issue https://github.com/termux/termux-packages/issues/4664.
19824 ioctl(29, BTRFS_IOC_CLONE or FICLONE, 34 <unfinished ...>
19823 fstat64(30, <unfinished ...>
19822 write(16, "\1\0\0\0\0\0\0\0", 8 <unfinished ...>
19821 close(31 <unfinished ...>
19804 <... epoll_pwait resumed>[{EPOLLIN, {u32=16, u64=16}}], 1024, 867, NULL, 8) = 1
19824 <... ioctl resumed>) = -1 EACCES (Permission denied)
2020-01-16 01:29:06 +01:00
|
|
|
bytes_to_send = src_statsbuf.st_size;
|
|
|
|
in_offset = 0;
|