Skip to content

Commit

Permalink
relax authority check
Browse files Browse the repository at this point in the history
to pass on the Windows.
fix ruby/vscode-rdbg#169
  • Loading branch information
ko1 committed Mar 22, 2023
1 parent 49e37f9 commit 6d0c267
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/debug/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,9 @@ def self.check_dir_authority path
unless (dir_uid = fs.uid) == (uid = Process.uid)
raise "#{path} uid is #{dir_uid}, but Process.uid is #{uid}"
end
unless (dir_mode = fs.mode) == 040700 # 4: dir, 7:rwx
raise "#{path}'s mode is #{dir_mode.to_s(8)} (should be 040700)"

if fs.world_writable? && !fs.sticky?
raise "#{path} is world writable but not sticky"
end

path
Expand Down

0 comments on commit 6d0c267

Please sign in to comment.