We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a01b715 commit 41da0a2Copy full SHA for 41da0a2
tools/elfdeps.c
@@ -44,7 +44,15 @@ typedef struct elfInfo_s {
44
static char *getLibtoolVer(const char *filename)
45
{
46
const char *so;
47
+ char dest[PATH_MAX];
48
+ int destsize = 0;
49
int found_digit, found_dot = 0;
50
+
51
+ destsize = readlink(filename, dest, PATH_MAX);
52
+ if (destsize > 0) {
53
+ dest[destsize] = 0;
54
+ filename = dest;
55
+ }
56
// Start from the end of the string. Verify that it ends with
57
// numbers and dots, preceded by ".so.".
58
so = filename + strlen(filename);
0 commit comments