Source: nn Version: 6.7.3-14 Severity: normal Tags: patch Dear Maintainer,
>From fcf2da3d78718da87c1210bd878f00166261d0c0 Mon Sep 17 00:00:00 2001 >From: Bjarni Ingi Gislason <bjarn...@rhi.hi.is> >Date: Wed, 3 Mar 2021 01:45:27 +0000 >Subject: [PATCH] regexp.c: add information to an error message Add the file name to an error message and sleep for 5 seconds to give the user time to read it. Signed-off-by: Bjarni Ingi Gislason <bjarn...@rhi.hi.is> --- regexp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/regexp.c b/regexp.c index 7116b70..0a08534 100644 --- a/regexp.c +++ b/regexp.c @@ -209,6 +209,7 @@ STATIC int strcspn(char *, char *); regexp * regcomp(char *exp) { +/* caller: action that uses this subroutine, is needed for error messages */ register regexp *r; register char *scan; register char *longest; @@ -1237,7 +1238,8 @@ strcspn(char *s1, char *s2) void regerror(char *s) { + msg("%s: regexp error: %s", __FILE__, s); + user_delay(5); /* Make messages readable */ - msg("regexp: %s", s); /* NOTREACHED */ } -- 2.30.1 -- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 5.10.9-1 (SMP w/2 CPU threads) Locale: LANG=is_IS.iso88591, LC_CTYPE=is_IS.iso88591 (charmap=ISO-8859-1), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) -- debconf information excluded -- Bjarni I. Gislason