diff options
author | Chris D. Faulhaber <jedgar@FreeBSD.org> | 2002-02-07 20:54:59 +0000 |
---|---|---|
committer | Chris D. Faulhaber <jedgar@FreeBSD.org> | 2002-02-07 20:54:59 +0000 |
commit | c03047ecda85fabb592d3ed2cf8c69fd0d328600 (patch) | |
tree | fd513770a3545dc0b258802b4a0cf0bf2ae3a9e2 /misc/gnuls/files | |
parent | 90fe751c8dbe1a6cc5f979ba5f571469581402a3 (diff) |
strerror_r() returns an exit code, not the error string. This fixes:
$ gnuls blah
gnuls: blah: (null)
$
on recent -stable and -current builds after strerror_r() was
implemented.
Notes
Notes:
svn path=/head/; revision=54321
Diffstat (limited to 'misc/gnuls/files')
-rw-r--r-- | misc/gnuls/files/patch-ai | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/misc/gnuls/files/patch-ai b/misc/gnuls/files/patch-ai new file mode 100644 index 000000000000..8cf9bf7aa38e --- /dev/null +++ b/misc/gnuls/files/patch-ai @@ -0,0 +1,12 @@ +--- lib/error.c.orig Fri Mar 27 12:22:34 1998 ++++ lib/error.c Thu Jan 31 08:49:18 2002 +@@ -152,7 +152,8 @@ + { + #if defined HAVE_STRERROR_R || defined _LIBC + char errbuf[1024]; +- fprintf (stderr, ": %s", __strerror_r (errnum, errbuf, sizeof errbuf)); ++ __strerror_r (errnum, errbuf, sizeof errbuf); ++ fprintf (stderr, ": %s", errbuf); + #else + fprintf (stderr, ": %s", strerror (errnum)); + #endif |