tail: check OFF_T_MAX vs COPY_A_BUFFER

* src/tail.c: Document an otherwise-unstated assumption.
This commit is contained in:
Paul Eggert committed 2025-08-03 19:48:04 -07:00
1 parent 468f821150
commit ae37265727
1 file changed
+1
+1
View File
@@ -81,6 +81,7 @@
/* Special values for dump_remainder's N_BYTES parameter. */
#define COPY_TO_EOF UINTMAX_MAX
#define COPY_A_BUFFER (UINTMAX_MAX - 1)
static_assert (OFF_T_MAX < COPY_A_BUFFER);
/* FIXME: make Follow_name the default? */
#define DEFAULT_FOLLOW_MODE Follow_descriptor