termux-packages/packages/neomutt/file.c.patch

14 lines
407 B
Diff
Raw Normal View History

2021-12-15 13:52:58 +01:00
--- ./mutt/file.c.orig 2021-12-15 17:56:42.465005012 +0530
+++ ./mutt/file.c 2021-12-15 18:16:25.832322927 +0530
@@ -354,6 +354,10 @@
*/
int mutt_file_safe_rename(const char *src, const char *target)
{
2021-12-15 13:52:58 +01:00
+/* Since Android 6.0, hardlinks are unsupported */
+#if defined(__ANDROID__)
+ return rename(src, target);
+#endif
2021-12-15 13:52:58 +01:00
struct stat st_src = { 0 };
struct stat st_target = { 0 };
int link_errno;