Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r2508 - branches/fsvs-1.2.x/fsvs/src/helper.c

fsvs
Discussion topic

Back to topic list

svn commit: r2508 - branches/fsvs-1.2.x/fsvs/src/helper.c

Author pmarek
Full name P.Marek
Date 2018-06-07 01:35:03 PDT
Message Author: pmarek
Date: 2018-06-07 01:35:01-0700
New Revision: 2508

Modified:
   branches/fsvs-1.2.x/​fsvs/src/helper.c

Log:
dlopen() won't set errno.

Modified: branches/fsvs-1.2.x/​fsvs/src/helper.c
Url: http://fsvs.tigris.o​rg/source/browse/fsv​s/branches/fsvs-1.2.​x/fsvs/src/helper.c?​view=diff&pathre​v=2508&r1=2507​&r2=2508
====================​====================​====================​==================
--- branches/fsvs-1.2.x/​fsvs/src/helper.c (original)
+++ branches/fsvs-1.2.x/​fsvs/src/helper.c 2018-06-07 01:35:01-0700
@@ -1426,8 +1426,9 @@
             }
             /* We allow to specify only "m" for "libm.so". */
         }
- STOPIF_CODE_ERR( hdl == NULL, errno,
- "Cannot load library %s", libs);
+ /* errno is typically 0. */
+ STOPIF_CODE_ERR( hdl == NULL, EINVAL,
+ "Cannot load library %s: dlerror says %s", libs, dlerror());
 
         libs=strtok(NULL, delim);
     }

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r2508 - branches/fsvs-1.2.x/fsvs/src/helper.c pmarek P.Marek 2018-06-07 01:35:03 PDT
Messages per page: