termux-packages/root-packages/chroot/pwd.c.patch
Leonid Plyushch 573da57f1e
new package: chroot
Actually it just a "standalone" chroot utility from the coreutils.
2022-04-18 14:31:00 +05:30

13 lines
427 B
Diff

diff -u -r ../coreutils-8.23/src/pwd.c ./src/pwd.c
--- ../coreutils-8.23/src/pwd.c 2014-07-13 18:09:52.000000000 -0400
+++ ./src/pwd.c 2015-05-17 19:58:20.692454980 -0400
@@ -366,7 +366,7 @@
if (optind < argc)
error (0, 0, _("ignoring non-option arguments"));
- if (logical)
+ if (true) /* Termux: Always try logical, to avoid permission denied on /data/data */
{
wd = logical_getcwd ();
if (wd)