Package: lookup
Version: 1.08b-12
Followup-For: Bug #967989
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu hirsute ubuntu-patch
Control: tags -1 patch

Hi,

In Ubuntu, the attached patch was applied to achieve the following:

  * lib/output.c: Fix FTBFS against glibc 2.32 by using strerror() instead of
    removed sys_nerr and sys_errlist.

Thanks for considering the patch.

Logan
diff -u lookup-1.08b/lib/output.c lookup-1.08b/lib/output.c
--- lookup-1.08b/lib/output.c
+++ lookup-1.08b/lib/output.c
@@ -769,13 +769,7 @@
                    else
                        errval = errno;
 
-                   if (errval >= 0 && errval < sys_nerr)
-                       str = sys_errlist[errval];
-                   else
-                   {
-                       sprintf(temp_error_buff, "#%d", errval);
-                       str = temp_error_buff;
-                   }
+                   str = strerror(errval);
                }
 
                if (format[-2] == '%')

Reply via email to