66 Commits

Author SHA1 Message Date
Collin Funk
8e88c32cfe maint: Fix link errors on Solaris 11 OmniOS.
* bootstrap.conf (gnulib_modules): Add hostent and socket.
* ftp/Makefile.am (ftp_LDADD): New variable.
* ftpd/Makefile.am (ftpd_LDADD): New variable.
* ifconfig/Makefile.am (ifconfig_LDADD): New variable.
* ping/Makefile.am (ping_LDADD): Add $(LIBSOCKET), $(HOSTENT_LIB),
$(LIBINTL), and $(GETADDRINFO_LIB).
(ping6_LDADD): New variable.
* src/Makefile.am (hostname_LDADD, rlogin_LDADD, rsh_LDADD): Add
$(HOSTENT_LIB).
(tftp_LDADD, rexecd_LDADD): Add $(LIBSOCKET).
(rexec_LDADD, dnsdomainname_LDADD, logger_LDADD, inetd_LDADD)
(tftpd_LDADD): New variables.
(rlogind_LDADD): Add $(LIBSOCKET), $(LIBINTL), and $(GETADDRINFO_LIB).
(rshd_LDADD): Add $(HOSTENT_LIB), $(LIBINTL), and $(GETADDRINFO_LIB).
(syslogd_LDADD): Add $(LIBSOCKET), $(HOSTENT_LIB), $(LIBINTL), and
$(GETADDRINFO_LIB).
(uucpd_LDADD): Add $(LIBSOCKET) and $(HOSTENT_LIB).
* talk/Makefile.am (talk_LDADD): New variable.
* talkd/Makefile.am (talkd_LDADD): New variable.
* telnet/Makefile.am (telnet_LDADD): New variable.
* telnetd/Makefile.am (telnetd_LDADD): New variable.
* tests/Makefile.am (localhost_LDADD, runtime_ipv6_LDADD)
(addrpeek_LDADD, tcpget_LDADD): New variables.
* whois/Makefile.am (whois_LDADD): New variable.
2025-02-25 22:36:20 -08:00
Simon Josefsson
04c3738a6c maint: Run 'make update-copyright'. 2025-01-01 18:21:25 +01:00
Collin Funk
a172b76898 maint: Allow gnulib's readutmp module to use systemd. (tiny patch)
Signed-off-by: Simon Josefsson <simon@josefsson.org>
2024-03-22 20:45:23 +01:00
Simon Josefsson
aba8d6528e maint: Run 'make update-copyright'. 2024-01-01 11:28:59 +01:00
Simon Josefsson
4bfe18d36f maint: Run 'make update-copyright'. 2023-01-01 01:37:41 +01:00
Erik Auerswald
9007083f26 tests: Check for infinite recursion ftp crash
* tests/Makefile.am (EXTRA_DIST): Add new binary fuzzer found input.
* tests/crash-ftp-msg2021-12_05.bin: New file.  Input found via
fuzzer that crashes ftp via infinite macro recursion.  Reported by AiDai in
<https://lists.gnu.org/archive/html/bug-inetutils/2021-12/msg00005.html>.
* tests/ftp-regressions.sh: Add currently failing check for regression
of upcoming fix for bug reported by AiDai.
2022-10-02 16:47:48 +02:00
Erik Auerswald
5019909b84 tests: Check for ftp crashes with "nmap" command
* tests/Makefile.am (EXTRA_DIST): Add new binary fuzzer found input.
* tests/crash-ftp-msg2021-12_04.bin: New file.  Input found via
fuzzer that crashes ftp via NULL pointer dereference.  Reported by AiDai in
<https://lists.gnu.org/archive/html/bug-inetutils/2021-12/msg00004.html>.
* tests/ftp-parser.sh: Add currently failing tests with a tab
between arguments to the "nmap" command.
* tests/ftp-regressions.sh: Add currently failing check for regression
of upcoming fix for bug reported by AiDai.
2022-10-01 17:49:13 +02:00
Erik Auerswald
3fc5c07144 tests: Check for ftp heap buffer overflow
* tests/Makefile.am (EXTRA_DIST): Add new binary fuzzer found input.
* tests/crash-ftp-msg2021-12_16.bin: New file.  Input found via
fuzzer that crashes ftp via heap buffer overflow.  Reported by ZFeiXQ in
<https://lists.gnu.org/archive/html/bug-inetutils/2021-12/msg00016.html>.
* tests/ftp-regressions.sh: Add currently failing check for regression
of upcoming fix for bug reported by ZFeiXQ.
2022-09-25 14:31:18 +02:00
Erik Auerswald
a21aa6555c tests: Check for ftp integer overflow crash bug
* cfg.mk (exclude_file_name_regexp--sc_trailing_blank)
(exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF): Change
pattern to match both binary fuzzer found input files used in tests.
* tests/Makefile.am (EXTRA_DIST): Add new binary fuzzer found input.
* tests/crash-ftp-msg2021-12_03.bin: New file.  Input found via
fuzzer that crashes ftp via signed integer overflow and resulting
out-of-bounds array access.  Reported by AiDai in
<https://lists.gnu.org/archive/html/bug-inetutils/2021-12/msg00003.html>.
* tests/ftp-regressions.sh: New file.  Currently failing checks
for regression of upcoming fix for bug reported by AiDai in
<https://lists.gnu.org/archive/html/bug-inetutils/2021-12/msg00003.html>.
2022-09-25 13:18:06 +02:00
Simon Josefsson
e1a7487908 Fix 'make dist' and 'make syntax-check'.
* tests/Makefile.am (EXTRA_DIST): Unconditionally distribute crash file.
* tests/crash-tftp-msg2021-12_18.bin: Renamed.
* cfg.mk (exclude_file_name_regexp--sc_trailing_blank)
(exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF): Add crash file.
* tests/tools.sh (srcdir): Set fallback srcdir.
* tests/tftp-regressions.sh: Use new filename in srcdir.
2022-09-25 10:53:27 +02:00
Erik Auerswald
d3270b73ec tests: read binary fuzzer input from a file
Instead of recreating the binary input found to crash tftp
with printf(1), save the input in a file and use input
redirection in the test.

* tests/Makefile.ami (EXTRA_DIST): Move setting of EXTRA_DIST
before setting dist_check_SCRIPTS.  Add the tftp crash input
file when the tftp client is enabled.
* tests/crash-tftp-msg2021-12_18: New file.  The input formerly
crashing tftp.
* tests/tftp-regressions.sh: Replace use of printf with input
redirection.
2022-09-17 18:36:26 +02:00
Erik Auerswald
a5ef727816 tests: Check for tftp crash bug
* tests/Makefile.am (dist_check_SCRIPTS)
* tests/tftp-regressions.sh: New file.  Currently failing
check for regression of fix for bug reported by AiDai in:
<https://lists.gnu.org/archive/html/bug-inetutils/2021-12/msg00018.html>
2022-09-11 15:03:35 +02:00
Alfred M. Szmidt
6d519229fa Happy GNU 2022 year! 2022-01-01 17:23:02 +01:00
Simon Josefsson
1d5c923528 maint: Use copyright year ranges for readability.
* cfg.mk (update-copyright-env): Add, from coreutils.
(VC_LIST_ALWAYS_EXCLUDE_REGEX): Add, for update-copyright exceptions.
* README: Add info about copyright year ranges.
* *: Update copyright notices.
2021-09-03 18:41:09 +02:00
Simon Josefsson
b6bfaf9630 Fix link failure with absent -lutil on Solaris 10.
* configure.ac (LIBUTIL): Prefer PTY_LIBS in Makefile.am over
adding -lutil for pty-functions.
* src/Makefile.am (LDADD): Add PTY_LIB.
* telnetd/Makefile.am (LDADD): Likewise.
* tests/Makefile.am (identify_LDADD): Likewise.
2021-01-28 09:01:47 +01:00
Alfred M. Szmidt
911413ea57 Happy GNU 2021 year! 2021-01-01 11:35:27 +01:00
Mats Erik Andersson
a1d8a1f87d test-snprintf: New test program.
We want to make testers aware that snprintf() is not behaving identically
on all platforms.  In fact, glibc offers the least robust implementation.
An observation leading to this test was reported by Zhixiong Chi.
2020-02-09 02:17:01 +01:00
Mats Erik Andersson
44e30cc781 Separation of test cases as IPv4 and IPv6.
Existing tests are now made available as separate collections/tasks
for the two address families, selectable at testing time.
2020-01-24 17:21:24 +01:00
Mats Erik Andersson
3c908f3420 Test robustly in absence of IPv6.
A system like Raspbian can be configured without IPv6 at runtime.
Suppress IPv6 addresses in test scripts, whenever IPv6 is auto-inserted
and a check at test execution time fails for `::1'.  Issue was reported
by Bruno Haible.
2020-01-20 16:38:05 +01:00
Mats Erik Andersson
522101f499 Consistent use of grep tools in scripts.
Lack of consistency surfaced as a portability issue for Solaris 11.
Reported by Bruno Haible for release candidate.
2020-01-11 12:01:02 +01:00
Simon Josefsson
d8de4587f2 Update copyright years to use intervals up to 2020. 2020-01-01 13:21:37 +01:00
Mats Erik Andersson
e0b19a9912 Test utility displays some termcaps. 2017-03-03 19:49:55 +01:00
Mats Erik Andersson
3d64a8c728 Update copyright years to 2017. (silent change) 2017-02-21 14:25:23 +01:00
Mats Erik Andersson
84dcf08568 Update copyright years to 2016. (silent change) 2016-01-22 19:09:49 +01:00
Mats Erik Andersson
c590657f6a Fully configure testing without IPv6.
Set non-standard testing addresses at configuration time.
2015-02-28 22:52:40 +01:00
Mats Erik Andersson
02b3e80062 Allow testing without IPv6.
Pass a semaphor to the test scripts to indicate
whether to disable IPv6 tests or not.
2015-02-27 23:39:54 +01:00
Mats Erik Andersson
d3c9b1b8fa Update copyright years with 2015. (silent change) 2015-01-16 14:09:44 +01:00
Mats Erik Andersson
d7139b7ea8 More tests for more code coverage. 2014-08-02 21:37:00 +02:00
Mats Erik Andersson
139c19958e libls: Inconsistent options. 2014-07-25 15:48:45 +02:00
Mats Erik Andersson
93db34ea1d Further tests of ifconfig. 2014-02-14 23:45:28 +01:00
Mats Erik Andersson
ae85332551 Update copyright years with 2014. (silent change) 2014-01-18 12:23:21 +01:00
Mats Erik Andersson
309ba4a541 Portability of Unix macros. 2013-08-30 15:56:19 +02:00
Mats Erik Andersson
7bf459b53e Run inetd test without tty. 2013-08-24 00:38:47 +02:00
Mats Erik Andersson
ae099cde5b One new test script. 2013-08-14 21:28:18 +02:00
Mats Erik Andersson
d1d52cce92 Update copyright years with 2013. (silent change) 2013-05-22 21:03:41 +02:00
Mats Erik Andersson
0dc3545ca8 Move if_nameindex to libinetutils.
Build if_nametoindex() and if_nameindex() in libinetutils.a
if they are missing in the system library.
2012-11-28 19:26:18 +01:00
Mats Erik Andersson
3299ba83d9 Mixed testing issues. 2012-11-14 22:28:21 +01:00
Mats Erik Andersson
78b2623dd4 Test script for read_utmp. 2012-11-01 21:58:14 +01:00
Mats Erik Andersson
78079c5208 Address resolution alternative. 2012-09-13 21:59:15 +02:00
Mats Erik Andersson
910a251821 Configuration impovements. 2012-08-30 02:28:36 +02:00
Mats Erik Andersson
ab1f0a199c Build test binaries early. 2012-05-14 23:39:06 +02:00
Mats Erik Andersson
45fc01f25f tests: Distribute tools.sh.in. 2012-03-21 12:20:18 +01:00
Mats Erik Andersson
6065febe54 Common helper for test scripts. 2012-03-21 02:03:38 +01:00
Simon Josefsson
24587ec0fd Add new tool dnsdomainname. 2012-03-12 12:17:54 +01:00
Mats Erik Andersson
b4a938fe77 Basic telnet test. 2012-02-21 12:31:25 +01:00
Alfred M. Szmidt
99c71142f2 Updated copyright years; happy 2012! (silent change) 2012-01-01 19:27:00 +01:00
Alfred M. Szmidt
bfee55f68b Basic test case for `hostname'. 2011-11-29 17:15:32 +01:00
Simon Josefsson
0aeea0cb61 tests: Added self-tests of ftp and ftpd (using inetd).
* tests/Makefile.am (dist_check_SCRIPTS): Add ftp-localhost.sh.
* tests/ftp-localhost.sh: New file.
2011-11-19 11:40:57 +01:00
Alfred M. Szmidt
8899e044dd New variables (iu_LIBRARIES and iu_INCLUDES ) for specifying core inetutils libraries and header files in Makefile.am. 2011-10-25 17:01:48 +02:00
Mats Erik Andersson
e0ecdab5be syslogd: Dereferencing NULL fault. A test script. 2011-06-15 00:53:32 +02:00