|
@@ -1506,7 +1506,7 @@ int dso__load(struct dso *dso, struct map *map, symbol_filter_t filter)
|
|
if (strncmp(dso->name, "/tmp/perf-", 10) == 0) {
|
|
if (strncmp(dso->name, "/tmp/perf-", 10) == 0) {
|
|
struct stat st;
|
|
struct stat st;
|
|
|
|
|
|
- if (stat(dso->name, &st) < 0)
|
|
|
|
|
|
+ if (lstat(dso->name, &st) < 0)
|
|
return -1;
|
|
return -1;
|
|
|
|
|
|
if (st.st_uid && (st.st_uid != geteuid())) {
|
|
if (st.st_uid && (st.st_uid != geteuid())) {
|