From 550f63ed3ebeca3e00216f95e097177cff119ab7 Mon Sep 17 00:00:00 2001 From: hubertf Date: Mon, 4 May 1998 23:30:22 +0000 Subject: Fix output if it's not going to a tty; as posted to current-users by Soren S. Jorvang . --- misc/colorls/patches/patch-ab | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/misc/colorls/patches/patch-ab b/misc/colorls/patches/patch-ab index e8ddb3fbdfb..058bc7b15f0 100644 --- a/misc/colorls/patches/patch-ab +++ b/misc/colorls/patches/patch-ab @@ -1,7 +1,5 @@ -For NetBSD - hubertf - ---- ls.c.orig Thu Oct 23 14:12:16 1997 -+++ ls.c Thu Oct 23 14:13:44 1997 +--- ls.c.orig Tue May 5 01:15:09 1998 ++++ ls.c Tue May 5 01:16:24 1998 @@ -59,6 +59,8 @@ #include #include @@ -11,3 +9,13 @@ For NetBSD - hubertf #include "ls.h" #include "extern.h" +@@ -170,7 +172,8 @@ + f_type = 1; + break; + case 'G': +- f_color = 1; ++ if (isatty(STDOUT_FILENO)) ++ f_color = 1; + break; + case 'L': + fts_options &= ~FTS_PHYSICAL; -- cgit v1.2.3