3174 Commits

Author SHA1 Message Date
Simon Josefsson
7483de28c1 maint: post-release administrivia
* NEWS.md: Add header line for next release.
* .prev-version: Record previous version.
* cfg.mk (old_NEWS_hash): Auto-update.
2025-12-14 17:27:12 +01:00
Simon Josefsson
380e69a572 version 2.7
* NEWS.md: Record release date.
v2.7
2025-12-14 16:12:20 +01:00
Simon Josefsson
8e1e1a7b96 maint: Run './bootstrap --bootstrap-sync' 2025-12-06 21:30:09 +01:00
Simon Josefsson
05fcaa89a7 maint: Bump GNULIB_REVISION
* bootstrap.conf (GNULIB_REVISION): Use b3518f60173c907453ee5c7d439f967342de6d0c.
2025-12-06 21:29:55 +01:00
Simon Josefsson
aa85c6ecbb doc: Mention use of markdown in NEWS
* NEWS.md: Add.
2025-12-06 21:09:30 +01:00
Simon Josefsson
dcbd0b26ed maint: Drop xz tarballs to reduce maintainer QA
* configure.ac (AM_INIT_AUTOMAKE): Remove dist-xz.
* README-alpha: Don't mention xz.
* bootstrap.conf (buildreq): Drop xz.
2025-12-06 21:08:33 +01:00
Erik Auerswald
0c9d12e0da syslod, talkd: GNU/Linux w/o utmp compatibility
Some newer GNU/Linux systems no longer have a "utmp" file.
This file is used by both syslogd and talkd to find the
TTY device files of active user sessions in order to send
messages to specific or all users.

Gnulib can emulate a utmp file via the read_utmp() function
from the readutmp module.  This emulation is activated by
defining "READUTMP_USE_SYSTEMD", triggered via configure's
"--enable-systemd" option on systems without utmp and with
systemd.

But, this emulation reports non-existing TTY device files
for active user sessions.  Attempting to send a message to a
non-existing TTY produces an error, but that is normal behavior
for such a system.  Thus, ignore this error on such systems,
but not others.

* NEWS.md: Mention enhancement.
* libinetutils/ttymsg.c (inetutils_ttymsg): Ignore errors for
  non-existings TTY files reported in emulated utmp entries.
2025-12-03 21:24:22 +01:00
Simon Josefsson
5fbd8cb999 doc: Add NEWS->NEWS.md symlink 2025-11-27 00:53:55 +01:00
Simon Josefsson
8e9d7c933a doc: Fix codespell nits 2025-11-27 00:33:35 +01:00
Simon Josefsson
9c87a64d6e doc: Rename NEWS to NEWS.md and markdownify. 2025-11-27 00:31:43 +01:00
Simon Josefsson
9ae2a687e3 maint: Run './bootstrap --bootstrap-sync'. 2025-11-27 00:31:14 +01:00
Simon Josefsson
e279e6a6b7 maint: Bump GNULIB_REVISION.
* bootstrap.conf (GNULIB_REVISION): Use be6027b468.
* gl/top/README-release.diff: Update according to changes in the Gnulib
file.
2025-11-27 00:31:14 +01:00
Erik Auerswald
3920c82079 tests: check read_utmp as used in syslogd & talkd
Both syslogd and talkd use the Gnulib read_utmp options
READ_UTMP_USER_PROCESS | READ_UTMP_CHECK_PIDS, but the
test file tests/readutmp.c only used READ_UTMP_USER_PROCESS.
But tests/readutmp.c is intended to check if syslogd and
talkd can read utmp information, so use the same options.

* tests/readutmp.c (main): Add READ_UTMP_CHECK_PIDS to options
  used with Gnulib's read_utmp() function.
2025-11-23 19:20:03 +01:00
Erik Auerswald
db5823e95c syslogd: log ASCII 'DEL' as '^?'
DEL is a non-printable control character.  Make it visible in
syslogd log files by transliterating it in the same way as most
other ASCII control characters (TAB and NL are transliterated
as SP).

* NEWS: Mention change.
* src/syslogd.c (printline): Transliterate the ASCII DEL control
  character the same way as most other ASCII control characters.
2025-11-23 19:00:12 +01:00
Erik Auerswald
0170cf56ca syslogd: fix a stack-based buffer overflow
When logging a message, ASCII control characters are transliterated.
This transliteration uses two printable characters for each control
character.  If the last character that fits into the destination
buffer is a control character, the buffer needs place for two
characters in addition to the string terminator.  This was missing
from the code, resulting in a stack-based buffer overflow weakness
(CWE-121).

* NEWS: Mention fix.
* src/syslogd.c (printline): Allocate an additional byte in the
  "line" buffer to account for control character transliteration.
2025-11-23 16:39:23 +01:00
Erik Auerswald
f216be6e75 doc: explain what "standard shell" means for ftpd
One part of ftpd user authentication is to check if the user has
a so called "standard shell".  But, it is no longer obvious what
that actually is.  The Linux man-pages project uses different
names to designate a "standard shell", i.e., "valid login shell"
when documenting /etc/shells, "permitted user shells" and "valid
user shell" when documenting getusershell(), making it harder to
figure this out.

Expand ftpd user authentication step 3 by adding information about
/etc/shells and getusershell(), and the different names used for
"standard shell".

* NEWS: Mention ftpd documentation improvement.
* doc/inetutils.texi (ftpd invocation): Explain "standard shell"
  as used in the ftpd authentication rules.
2025-11-08 08:43:33 +01:00
Simon Josefsson
08aba1b5a5 doc: Use latest GPLv3 COPYING file. Rework README.
* COPYING: Sync with gnulib.
* README, README.md: Reflow text and symlink for readability/markdown.
2025-08-04 11:39:10 +02:00
Collin Funk
f6b14c9afe maint: Bump GNULIB_REVISION.
* bootstrap.conf (GNULIB_REVISION): Use 91aacb5536.
* gl/top/README-release.diff: Update according to changes in the Gnulib
file.
2025-07-21 12:19:59 -07:00
Collin Funk
1ebea32933 maint: Add the vasprintf-posix module.
This module provides the asprintf function that is needed by Inetutils
but is missing on many platforms. Found on AIX 7.3.

* NEWS: Mention the change.
* bootstrap.conf (gnulib_modules): Add vasprintf-posix.
2025-07-09 22:15:50 -07:00
Simon Josefsson
aa8fd68671 NEWS: Mention Solaris 11 OmniOS link fix. 2025-07-08 21:28:28 +02:00
Simon Josefsson
7295d48da2 maint: Use non-deprecated gnulib module names.
* bootstrap.conf (gnulib_modules): Update per ./bootstrap output.
2025-07-08 21:23:50 +02:00
Simon Josefsson
9c2a07aeba maint: Bump GNULIB_REVISION.
* bootstrap.conf (GNULIB_REVISION): Use 92977490.
2025-07-08 21:15:36 +02:00
Simon Josefsson
7b585da14b talkd: Fix indentation in last commit.
* talkd/table.c (lookup_request): Indent.
2025-07-08 21:07:36 +02:00
Bruno Haible
41af1529f1 talkd: Fix use-after-free bug.
* talkd/table.c (lookup_request): Fetch ptr->next before possibly deleting the
object at ptr.

Signed-off-by: Simon Josefsson <simon@josefsson.org>
2025-07-02 09:58:47 +02:00
Collin Funk
9ab1f527c1 Revert "maint: Distribute help2man script."
This reverts commit 4511e4a193.
2025-04-19 11:18:28 -07:00
Collin Funk
4511e4a193 maint: Distribute help2man script.
* .x-update-copyright: New file.
* bootstrap.conf (buildreq): Remove help2man.
* configure.ac: Fallback to distributed help2man if it is not installed.
* man/Makefile.am (EXTRA_DIST): Add help2man.
* man/help2man: Import file.
2025-04-18 20:14:24 -07:00
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
0a86b17c85 maint: post-release administrivia
* NEWS: Add header line for next release.
* .prev-version: Record previous version.
* cfg.mk (old_NEWS_hash): Auto-update.
2025-02-21 12:13:33 +01:00
Simon Josefsson
1cb81068ec version 2.6
* NEWS: Record release date.
v2.6
2025-02-21 12:06:21 +01:00
Simon Josefsson
fcce2c502d maint: Run './bootstrap --bootstrap-sync'. 2025-02-21 11:20:02 +01:00
Dario Niedermann
717c4af292 doc: mention syslog.conf ftp/info (tiny patch).
Signed-off-by: Simon Josefsson <simon@josefsson.org>
2025-02-21 11:18:47 +01:00
Simon Josefsson
94332107c8 doc: Improve README-release.
* gl/top/README-release.diff: Update.
2025-02-20 15:26:27 +01:00
Simon Josefsson
8331b14775 maint: Append srcdist to DIST_ARCHIVES.
* cfg.mk (DIST_ARCHIVES): Add.
2025-02-20 15:18:40 +01:00
Simon Josefsson
ac7428d2b4 maint: Prefer base64 SHA256 checksums.
* cfg.mk (announce_gen_args): Add --cksum-checksums.
2025-02-20 15:17:53 +01:00
Simon Josefsson
5a87ccc745 maint: Add .tarball-version-git for git-version-gen.
* .tarball-version-git: New file, with git Format cookie.
.gitattributes: Mark .tarball-version-git as export-subst.
2025-02-20 15:17:38 +01:00
Simon Josefsson
b6a6f286d3 maint: Re-run automake to improve reproducible tarballs.
* bootstrap.conf (bootstrap_epilogue): Run automake --no-force.
2025-02-20 15:16:54 +01:00
Simon Josefsson
e335fac5d0 maint: Use AC_CONFIG_MACRO_DIRS instead of ACLOCAL_AMFLAGS.
Also arrange order of directories so that am__aclocal_m4_deps
in Makefile.in is generated the same by ./bootstrap and
autoreconf.  The latter is invoked by 'make release' (via the
_version rule in GNUmakefile) to change the version number.
We want am__aclocal_m4_deps to be identical so that the
"make dist" and "make release" tarballs are identical.

* Makefile.am (ACLOCAL_AMFLAGS): Remove.
configure.ac (AC_CONFIG_MACRO_DIRS): Add.
bootstrap.conf (ACLOCAL_AMFLAGS): Remove.
2025-02-20 15:16:07 +01:00
Simon Josefsson
845868e84e maint: Use tar --format=ustar.
* configure.ac (AM_INIT_AUTOMAKE): Add tar-ustar.
cfg.mk (TAR_OPTIONS): Fix NEWS path.
NEWS: Document it.
2025-02-20 15:15:27 +01:00
Simon Josefsson
87b59aefbe maint: Generate minimal source tarballs using git-archive.
Makefile.am (srcdist): Add.
2025-02-20 15:12:27 +01:00
Simon Josefsson
c6f67628d5 maint: Reproducible tarball fixes for Texinfo manual.
Makefile.am (texi-stamps-to-mtime-NEWS): Set modtime of
doc/inetutils.texi to that of NEWS file on "make dist", so that
stamp-vti and version.texi have a reproducible time stamp.
2025-02-20 15:11:04 +01:00
Simon Josefsson
47692f2cf8 maint: Fix VPATH and macOS builds
Makefile.am (mtime-NEWS-to-git-HEAD): Use git -C and touch -t.
2025-02-20 15:10:33 +01:00
Simon Josefsson
736969e230 NEWS: Mention ChangeLog fix. 2025-02-20 15:06:43 +01:00
Simon Josefsson
7b53c09a14 maint: Update ChangeLog.2.
* ChangeLog.2: Generate.
2025-02-20 15:06:20 +01:00
Simon Josefsson
30a6f3cbcd maint: Store released ChangeLog entries in git.
* Makefile.am (EXTRA_DIST): Add ChangeLog.2
(gen-ChangeLog): Only include unreleased entries.
(ChangeLog.2): New rule to re-generate file.
2025-02-20 15:04:54 +01:00
Simon Josefsson
5db0a50223 NEWS: Mention libls.sh fixes. 2025-02-20 15:04:37 +01:00
Simon Josefsson
983e07bd44 maint: Bump GNULIB_REVISION for new maint.mk.
* bootstrap.conf (GNULIB_REVISION): Update.
2025-02-20 15:04:25 +01:00
Simon Josefsson
95da411b2c maint: Add guix to bootstrapping tools, for announce-gen.
* cfg.mk (guix): New variable.
(bootstrap-tools): Use it.
2025-02-20 15:03:54 +01:00
Simon Josefsson
ba228e31f5 tests/liblsh.sh: Curate our own LSDIR instead of using "..".
* tests/libls.sh: Customize a LSDIR and clean it up.
2025-02-20 15:03:10 +01:00
Simon Josefsson
8ddbf58382 tests/libls.sh: Don't fail "ls -l" vs "ls -n" on empty /etc/passwd.
* tests/libls.sh: Let check pass if "id -u -n" fails.
2025-02-20 15:02:54 +01:00
Simon Josefsson
bfa8a82e0c Disable rexecd/uucpd on systems without crypt().
* configure.ac: Do it.
2025-01-02 01:33:04 +01:00