Skip to content

Commit 6d0c267

Browse files
committed
relax authority check
to pass on the Windows. fix ruby/vscode-rdbg#169
1 parent 49e37f9 commit 6d0c267

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/debug/config.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,9 @@ def self.check_dir_authority path
425425
unless (dir_uid = fs.uid) == (uid = Process.uid)
426426
raise "#{path} uid is #{dir_uid}, but Process.uid is #{uid}"
427427
end
428-
unless (dir_mode = fs.mode) == 040700 # 4: dir, 7:rwx
429-
raise "#{path}'s mode is #{dir_mode.to_s(8)} (should be 040700)"
428+
429+
if fs.world_writable? && !fs.sticky?
430+
raise "#{path} is world writable but not sticky"
430431
end
431432

432433
path

0 commit comments

Comments
 (0)