Skip to content

Commit 7647661

Browse files
committed
path: fallback when copy_file_range is unsupported
1 parent a69528d commit 7647661

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/path/sentry_path_unix.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,8 @@ sentry__path_copy(const sentry_path_t *src, const sentry_path_t *dst)
362362
goto done;
363363
} else if (errno == EAGAIN || errno == EINTR) {
364364
continue;
365-
} else if (errno == ENOSYS) {
365+
} else if (errno == ENOSYS || errno == EXDEV || errno == EOPNOTSUPP
366+
|| errno == EINVAL) {
366367
break;
367368
} else {
368369
rv = 1;

0 commit comments

Comments
 (0)