2022-03-11 16:03:32 +01:00
|
|
|
diff '--color=auto' -uNr node-v17.7.1.orig/deps/uv/src/unix/fs.c node-v17.7.1/deps/uv/src/unix/fs.c
|
|
|
|
--- node-v17.7.1.orig/deps/uv/src/unix/fs.c 2022-03-11 20:20:41.457755317 +0530
|
|
|
|
+++ node-v17.7.1/deps/uv/src/unix/fs.c 2022-03-11 20:21:05.187755308 +0530
|
|
|
|
@@ -1339,6 +1339,7 @@
|
2021-09-10 07:38:48 +02:00
|
|
|
#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) {
|
2022-03-11 16:03:32 +01:00
|
|
|
@@ -1359,6 +1360,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;
|