termux-packages/packages/moria/ui_io.cpp.patch

12 lines
451 B
Diff
Raw Normal View History

2019-04-28 11:50:47 +02:00
--- ../ui_io.cpp.orig 2019-04-28 08:53:57.528096717 +0200
+++ ./src/ui_io.cpp 2019-04-28 08:54:36.631428426 +0200
@@ -633,7 +633,7 @@
// Check user permissions on Unix based systems,
// or if on Windows just return. -MRC-
bool checkFilePermissions() {
-#ifndef _WIN32
+#if !defined(_WIN32) && !defined(__ANDROID__)
if (0 != setuid(getuid())) {
perror("Can't set permissions correctly! Setuid call failed.\n");
return false;