FreeBSD Bugzilla – Attachment 227247 Details for
Bug 257886
ls: don't check color env variables if compiled with WITHOUT_LS_COLORS="YES"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch again
ls-colors.patch (text/plain), 662 bytes, created by
Marko Turk
on 2021-08-16 15:18:52 UTC
(
hide
)
Description:
patch again
Filename:
MIME Type:
Creator:
Marko Turk
Created:
2021-08-16 15:18:52 UTC
Size:
662 bytes
patch
obsolete
>diff --git a/bin/ls/ls.c b/bin/ls/ls.c >index 338b3d1d2a2..55990db711d 100644 >--- a/bin/ls/ls.c >+++ b/bin/ls/ls.c >@@ -165,6 +165,7 @@ char *enter_bold; /* ANSI sequence to set color to bold mode */ > > static int rval; > >+#ifdef COLORLS > static bool > do_color_from_env(void) > { >@@ -187,6 +188,7 @@ do_color_from_env(void) > return (doit && > (isatty(STDOUT_FILENO) || getenv("CLICOLOR_FORCE"))); > } >+#endif > > static bool > do_color(void) >@@ -197,8 +199,10 @@ do_color(void) > return (false); > else if (colorflag == COLORFLAG_ALWAYS) > return (true); >-#endif > return (do_color_from_env()); >+#else >+ return (false); >+#endif > } > > #ifdef COLORLS >-- >2.31.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 257886
:
227246
| 227247
Working