termux-packages/root-packages/chroot/src-ls.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

14 lines
387 B
Diff

diff -u -r ../coreutils-8.26/src/ls.c ./src/ls.c
--- ../coreutils-8.26/src/ls.c 2016-11-22 15:04:32.000000000 -0500
+++ ./src/ls.c 2016-11-30 20:27:28.910732105 -0500
@@ -1749,6 +1749,9 @@
}
}
+ /* Termux patch: Default to colors if terminal. The --color option may override this. */
+ print_with_color = isatty(STDOUT_FILENO);
+
while (true)
{
int oi = -1;