Skip to content

Commit

Permalink
Update elf.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme committed Apr 26, 2023
1 parent 77fa992 commit f6ca1c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sass/embedded/elf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ def read1(type)
INTERPRETER = proc do
proc_self_exe = '/proc/self/exe'
if File.exist?(proc_self_exe)
File.open(proc_self_exe, 'rb') do |exe|
elf = ELF.new(exe)
File.open(proc_self_exe, 'rb') do |file|
elf = ELF.new(file)
interpreter = elf.interpreter
if interpreter.nil? && elf.shared_object?
File.readlink(proc_self_exe)
Expand Down

0 comments on commit f6ca1c9

Please sign in to comment.