lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230911044440.49366-1-elasticvine@protonmail.com>
Date: Mon, 11 Sep 2023 04:45:23 +0000
From: Sam Foxman <elasticvine@...tonmail.com>
To: netdev@...r.kernel.org
Cc: Sam Foxman <elasticvine@...tonmail.com>
Subject: [PATCH iproute2-next] Enable automatic color output by default.

Automatic color should be enabled by default because it makes command
output much easier to read, especially `ip addr` with many interfaces.
Color is enabled only in interactive use, scripts are not affected.
---
 ip/ip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ip/ip.c b/ip/ip.c
index 8c046ef1..aad6b6d7 100644
--- a/ip/ip.c
+++ b/ip/ip.c
@@ -168,7 +168,7 @@ int main(int argc, char **argv)
 	const char *libbpf_version;
 	char *batch_file = NULL;
 	char *basename;
-	int color = 0;
+	int color = COLOR_OPT_AUTO;
 
 	/* to run vrf exec without root, capabilities might be set, drop them
 	 * if not needed as the first thing.
-- 
2.34.1



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ