diff options
| author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-22 15:54:52 +0000 |
|---|---|---|
| committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-22 15:54:52 +0000 |
| commit | 75f8d080a28f2a9076a5f60afeba41ac876a78a4 (patch) | |
| tree | 21794599ef01c7603faff7efb1fcaf56868684c9 /include | |
| parent | d6bbf99a8b174d8535c195c71d3560a0d83d95fc (diff) | |
| download | busybox-w32-75f8d080a28f2a9076a5f60afeba41ac876a78a4.tar.gz busybox-w32-75f8d080a28f2a9076a5f60afeba41ac876a78a4.tar.bz2 busybox-w32-75f8d080a28f2a9076a5f60afeba41ac876a78a4.zip | |
telnetd: we were having telnetd with is ONLY inetd or ONLY standalone.
What if I need to have both?? This patch introduces
CONFIG_FEATURE_TELNETD_STANDALONE: y - both, n - only inetd.
Diffstat (limited to 'include')
| -rw-r--r-- | include/libbb.h | 1 | ||||
| -rw-r--r-- | include/usage.h | 18 |
2 files changed, 11 insertions, 8 deletions
diff --git a/include/libbb.h b/include/libbb.h index bec3ce11c..1c82cbbba 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
| @@ -204,6 +204,7 @@ extern off_t bb_copyfd_size(int fd1, int fd2, off_t size); | |||
| 204 | extern off_t bb_copyfd_eof(int fd1, int fd2); | 204 | extern off_t bb_copyfd_eof(int fd1, int fd2); |
| 205 | extern char bb_process_escape_sequence(const char **ptr); | 205 | extern char bb_process_escape_sequence(const char **ptr); |
| 206 | extern char *bb_get_last_path_component(char *path); | 206 | extern char *bb_get_last_path_component(char *path); |
| 207 | extern int ndelay_on(int fd); | ||
| 207 | 208 | ||
| 208 | 209 | ||
| 209 | extern DIR *xopendir(const char *path); | 210 | extern DIR *xopendir(const char *path); |
diff --git a/include/usage.h b/include/usage.h index 2a6e335ba..69e958d68 100644 --- a/include/usage.h +++ b/include/usage.h | |||
| @@ -3034,22 +3034,24 @@ USE_FEATURE_START_STOP_DAEMON_FANCY( \ | |||
| 3034 | "computer over a network using the TELNET protocol." | 3034 | "computer over a network using the TELNET protocol." |
| 3035 | #endif | 3035 | #endif |
| 3036 | 3036 | ||
| 3037 | #ifdef CONFIG_FEATURE_TELNETD_INETD | 3037 | #ifdef CONFIG_FEATURE_TELNETD_STANDALONE |
| 3038 | #define telnetd_trivial_usage \ | 3038 | #define telnetd_trivial_usage \ |
| 3039 | "(inetd mode) [OPTION]" | 3039 | "[OPTION]" |
| 3040 | #define telnetd_full_usage \ | 3040 | #define telnetd_full_usage \ |
| 3041 | "Telnetd uses incoming TELNET connections via inetd.\n" \ | 3041 | "Telnetd listens for incoming TELNET connections on PORT.\n" \ |
| 3042 | "Options:\n" \ | 3042 | "Options:\n" \ |
| 3043 | "\t-l LOGIN\texec LOGIN on connect (default /bin/sh)\n" \ | 3043 | "\t-p PORT\t\tlisten for connections on PORT (default 23)\n" \ |
| 3044 | "\t-f issue_file\tDisplay issue_file instead of /etc/issue" | 3044 | "\t-l LOGIN\texec LOGIN on connect\n" \ |
| 3045 | "\t-f issue_file\tDisplay issue_file instead of /etc/issue\n" \ | ||
| 3046 | "\t-F\t\tForeground mode\n" \ | ||
| 3047 | "\t-i\t\tInetd mode" | ||
| 3045 | #else | 3048 | #else |
| 3046 | #define telnetd_trivial_usage \ | 3049 | #define telnetd_trivial_usage \ |
| 3047 | "[OPTION]" | 3050 | "[OPTION]" |
| 3048 | #define telnetd_full_usage \ | 3051 | #define telnetd_full_usage \ |
| 3049 | "Telnetd listens for incoming TELNET connections on PORT.\n" \ | 3052 | "Telnetd uses incoming TELNET connections via inetd.\n" \ |
| 3050 | "Options:\n" \ | 3053 | "Options:\n" \ |
| 3051 | "\t-p PORT\tlisten for connections on PORT (default 23)\n" \ | 3054 | "\t-l LOGIN\texec LOGIN on connect\n" \ |
| 3052 | "\t-l LOGIN\texec LOGIN on connect (default /bin/sh)\n" \ | ||
| 3053 | "\t-f issue_file\tDisplay issue_file instead of /etc/issue" | 3055 | "\t-f issue_file\tDisplay issue_file instead of /etc/issue" |
| 3054 | #endif | 3056 | #endif |
| 3055 | 3057 | ||
