Skip to content

Commit 4ae9a75

Browse files
committed
Fix the stupidly subtle bug of '/' != "."
1 parent 716aafd commit 4ae9a75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Abstract/DynamicLink.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ function canonical_rpaths(rpath::RPath)
135135
paths[idx] = abspath(paths[idx])
136136

137137
# Make sure that if it's a directory, it _always_ has a trailing path separator.
138-
if isdir(paths[idx]) && paths[idx][end] != Base.Filesystem.path_separator
138+
if isdir(paths[idx]) && paths[idx][end:end] != Base.Filesystem.path_separator
139139
paths[idx] = paths[idx] * Base.Filesystem.path_separator
140140
end
141141
end

0 commit comments

Comments
 (0)