Project

General

Profile

This project is closed and read-only.

Actions

Bug #238

closed

Ruby doesn't respect the Windows read-only flag

Bug #238: Ruby doesn't respect the Windows read-only flag

Added by jredville (Jim Deville) about 18 years ago. Updated over 15 years ago.

Status:
Rejected
Target version:
-
ruby -v:
[ruby-core:17674]

Description

=begin
If you create a file on Windows, attrib +r the file, to give it read-only permissions, and then run Ruby 1.8 or 1.9 and do a Dir.delete on that file, Ruby will delete the file. It should probably throw a SystemCallError to match other platforms.

This has been tested on Vista SP1 with Ruby 1.8 and 1.9.
=end

Actions

Also available in: PDF Atom