Actions
Bug #473
closedFile.chmod does not validate the permission attribute
Description
=begin
On linux systems you can write:
File.chmod( 999999, 'test.txt' )
and no exception is thrown
=end
Updated by nobu (Nobuyoshi Nakada) over 16 years ago
=begin
Hi,
At Sat, 23 Aug 2008 04:35:50 +0900,
Anonymous wrote in [ruby-core:18369]:
On linux systems you can write:
File.chmod( 999999, 'test.txt' )
and no exception is thrown
No reason to deny it, as long as the system allows it.
--
Nobu Nakada
=end
Updated by matz (Yukihiro Matsumoto) over 16 years ago
- Status changed from Open to Rejected
- Assignee set to matz (Yukihiro Matsumoto)
=begin
As Nobu stated, it's not a bug, and we have no reason to check numbers before invoking system calls.
=end
Actions
Like0
Like0Like0