0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-12 02:03:08 +00:00
Files
termux-packages/packages/libpcsclite/no-issetugid.patch
2025-04-28 09:44:56 +02:00

16 lines
386 B
Diff

--- ./src/sys_unix.c~ 2025-03-26 14:52:29.000000000 +0000
+++ ./src/sys_unix.c 2025-03-28 15:37:25.385774847 +0000
@@ -170,10 +170,12 @@
#ifdef HAVE_SECURE_GETENV
return secure_getenv(name);
#else
+#ifndef __ANDROID__
/* Otherwise, make sure current process is not tainted by uid or gid
* changes */
if (issetugid())
return NULL;
+#endif
return getenv(name);
#endif
}