Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Caren Kresse
callgraph
Commits
8b9a45c0
Commit
8b9a45c0
authored
May 13, 2021
by
Carsten Emde
Browse files
Removed a leftover from an earlier fix, added an extra check to ensure
that a symlink exists
parent
a190d3bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
generatecypher.py
View file @
8b9a45c0
...
...
@@ -197,7 +197,7 @@ def createoutput(outputdir, outputformat, machine_to_binary, linked_libraries,
if
fl
in
machine_to_binary
[
architecture
][
o
][
endian
][
elfclass
]:
libfound
=
True
break
if
symlink_to_target
[
fl
]
in
machine_to_binary
[
architecture
][
o
][
endian
][
elfclass
]:
if
fl
in
symlink_to_target
and
symlink_to_target
[
fl
]
in
machine_to_binary
[
architecture
][
o
][
endian
][
elfclass
]:
libfound
=
True
fl
=
symlink_to_target
[
fl
]
break
...
...
@@ -539,10 +539,7 @@ def main(argv):
break
else
:
# the target is an actual file
if
dirtoscan
==
'/'
:
symlink_to_target
[
relfullfilename
]
=
targetfile
else
:
symlink_to_target
[
relfullfilename
]
=
targetfile
[
topdirlength
:]
symlink_to_target
[
relfullfilename
]
=
targetfile
[
topdirlength
:]
break
if
not
os
.
path
.
basename
(
fullfilename
)
in
filename_to_full_path
:
filename_to_full_path
[
os
.
path
.
basename
(
fullfilename
)]
=
set
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment