aboutsummaryrefslogtreecommitdiff
path: root/libbb/Config.src
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-04-17 12:43:54 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2018-04-17 12:43:54 +0200
commit2aeb201c9751d4ee82978c623310e14b9e831b94 (patch)
tree3f4d72e70d39889e981de68b56799ee2bf85ce78 /libbb/Config.src
parent816d8d7a668b541cee99469edb90e4917ea11c3e (diff)
downloadbusybox-w32-2aeb201c9751d4ee82978c623310e14b9e831b94.tar.gz
busybox-w32-2aeb201c9751d4ee82978c623310e14b9e831b94.tar.bz2
busybox-w32-2aeb201c9751d4ee82978c623310e14b9e831b94.zip
libbb: new option FEATURE_ETC_SERVICES: if off, /etc/services reads often avoided
In practice, "wget http://host.com/" always uses port 80. People explicitly set non-standard ports via options or parameters ("telnet 1.2.3.4 567" or "telnet 1.2.3.4 ftp") instead of modifying /etc/services. function old new delta telnet_main 1466 1464 -2 rdate_main 215 198 -17 fakeidentd_main 269 252 -17 parse_url 459 392 -67 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/4 up/down: 0/-103) Total: -103 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/Config.src')
-rw-r--r--libbb/Config.src12
1 files changed, 12 insertions, 0 deletions
diff --git a/libbb/Config.src b/libbb/Config.src
index fdf8bbb28..16e16480b 100644
--- a/libbb/Config.src
+++ b/libbb/Config.src
@@ -76,6 +76,18 @@ config FEATURE_ETC_NETWORKS
76 a rarely used feature which allows you to use names 76 a rarely used feature which allows you to use names
77 instead of IP/mask pairs in route command. 77 instead of IP/mask pairs in route command.
78 78
79config FEATURE_ETC_SERVICES
80 bool "Consult /etc/services even for well-known ports"
81 default n
82 help
83 Look up e.g. "telnet" and "http" in /etc/services file
84 instead of assuming ports 23 and 80.
85 This is almost never necessary (everybody uses standard ports),
86 and it makes sense to avoid reading this file.
87 If you disable this option, in the cases where port is explicitly
88 specified as a service name (e.g. "telnet HOST PORTNAME"),
89 it will still be looked up in /etc/services.
90
79config FEATURE_EDITING 91config FEATURE_EDITING
80 bool "Command line editing" 92 bool "Command line editing"
81 default y 93 default y