- mgetty-fix-errlist.patch: just use strerror() here. OBS-URL: https://build.opensuse.org/request/show/879356 OBS-URL: https://build.opensuse.org/package/show/Base:System/mgetty?expand=0&rev=44
15 lines
529 B
Diff
15 lines
529 B
Diff
Index: mgetty-1.2.1/logfile.c
|
|
===================================================================
|
|
--- mgetty-1.2.1.orig/logfile.c
|
|
+++ mgetty-1.2.1/logfile.c
|
|
@@ -332,8 +332,7 @@ static int first_open = TRUE;
|
|
tm->tm_mon+1, tm->tm_mday,
|
|
tm->tm_hour, tm->tm_min, tm->tm_sec,
|
|
log_infix, ws,
|
|
- ( errnr <= sys_nerr ) ? sys_errlist[errnr]:
|
|
- "<error not in list>" );
|
|
+ strerror(errnr));
|
|
#ifdef SYSLOG
|
|
syslog( level == L_FATAL? LOG_ALERT: LOG_ERR, "%s: %m", ws );
|
|
#endif
|