Репозитории ALT
S: | 9.4.0.24.75e248-alt1 |
5.1: | 7.6-alt1 |
4.1: | 6.11-alt1 |
4.0: | 5.97-alt6 |
3.0: | 5.3.1-alt0.4 |
Другие репозитории
Upstream: | 8.1pl3 |
Группа :: Система/Основа
Пакет: coreutils
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: coreutils-5.3.1-rh-owl-alt-ls_dumbterm.patch
Скачать
Скачать
--- coreutils-200504010740/src/ls.c.orig 2005-04-04 20:58:52 +0400
+++ coreutils-200504010740/src/ls.c 2005-04-04 20:58:52 +0400
@@ -95,6 +95,7 @@ int wcwidth ();
#include "system.h"
#include <fnmatch.h>
+#include <termcap.h>
#include "acl.h"
#include "argmatch.h"
@@ -1706,7 +1707,10 @@ decode_switches (int argc, char **argv)
print_with_color = (i == color_always
|| (i == color_if_tty
- && isatty (STDOUT_FILENO)));
+ && isatty (STDOUT_FILENO)
+ && getenv("TERM")
+ && tgetent(NULL, getenv("TERM")) > 0
+ && tgetstr("md", NULL) > 0));
if (print_with_color)
{
--- coreutils-200504010740/src/Makefile.am.orig 2005-04-04 20:58:52 +0400
+++ coreutils-200504010740/src/Makefile.am 2005-04-04 21:00:33 +0400
@@ -44,7 +44,7 @@ __LDADD = $(LDADD) $(LIB_EACCESS)
# for clock_gettime and fdatasync
dd_LDADD = $(LDADD) $(LIB_GETHRXTIME) $(LIB_FDATASYNC)
-ls_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME)
+ls_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME) -ltinfo
pr_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME)
shred_LDADD = $(LDADD) $(LIB_GETHRXTIME) $(LIB_FDATASYNC)