Commit 39d436b
committed
Fix path truncation in profile_creator
Currently, given a binary_ at a path that looks like
/foo/bar.unstripped/baz.so, file_base_name ends up being "bar". That
doesn't seem like the intention of this piece of code (and was a lot of
fun to debug ;) ).
Make it so that ".unstripped" can only be removed from the basename.1 parent 153c178 commit 39d436b
1 file changed
Lines changed: 6 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
62 | 61 | | |
63 | | - | |
64 | | - | |
| 62 | + | |
65 | 63 | | |
66 | 64 | | |
67 | 65 | | |
68 | 66 | | |
69 | | - | |
70 | | - | |
| 67 | + | |
71 | 68 | | |
72 | 69 | | |
73 | 70 | | |
| |||
0 commit comments