Below is the list of changes that have just been committed into a local
4.1 repository of msvensson. When msvensson does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet@stripped, 2007-02-06 23:00:18+01:00, msvensson@neptunus.(none) +1 -0
Bug#25344 Segmentation violation when try to run the perror utility
- strerror might return NULL on some platforms
extra/perror.c@stripped, 2007-02-06 23:00:16+01:00, msvensson@neptunus.(none) +4 -1
Backport fix from 5.0
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: msvensson
# Host: neptunus.(none)
# Root: /home/msvensson/mysql/mysql-4.1-maint
--- 1.39/extra/perror.c 2007-02-06 23:00:21 +01:00
+++ 1.40/extra/perror.c 2007-02-06 23:00:21 +01:00
@@ -217,8 +217,11 @@ int main(int argc,char *argv[])
On some system, like NETWARE, strerror(unknown_error) returns a
string 'Unknown Error'. To avoid printing it we try to find the
error string by asking for an impossible big error message.
+
+ On Solaris 2.8 it might return NULL
*/
- msg= strerror(10000);
+ if ((msg= strerror(10000)) == NULL)
+ msg= "Unknown Error";
/*
Allocate a buffer for unknown_error since strerror always returns
| Thread |
|---|
| • bk commit into 4.1 tree (msvensson:1.2603) BUG#25344 | msvensson | 6 Feb |