Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
tcpd
tcp_wrappers_7.6-fedora-strerror.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tcp_wrappers_7.6-fedora-strerror.diff of Package tcpd
--- percent_m.c.orig +++ percent_m.c @@ -13,7 +13,7 @@ static char sccsid[] = "@(#) percent_m.c #include <string.h> extern int errno; -#ifndef SYS_ERRLIST_DEFINED +#if !defined(SYS_ERRLIST_DEFINED) && !defined(HAVE_STRERROR) extern char *sys_errlist[]; extern int sys_nerr; #endif @@ -29,11 +29,15 @@ char *ibuf; while (*bp = *cp) if (*cp == '%' && cp[1] == 'm') { +#ifdef HAVE_STRERROR + strcpy(bp, strerror(errno)); +#else if (errno < sys_nerr && errno > 0) { strcpy(bp, sys_errlist[errno]); } else { sprintf(bp, "Unknown error %d", errno); } +#endif bp += strlen(bp); cp += 2; } else {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor