Project

General

Profile

Actions

Bug #16756

closed

File.chmod does not work on links.

Added by vo.x (Vit Ondruch) over 4 years ago. Updated over 4 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby-2.8.0-810d66f3e7
[ruby-core:97694]

Description

Now I observe different error after fix of #16749:

1)
File.lchmod changes the file mode of the link and not of the file ERROR
Errno::ENOTSUP: Operation not supported @ apply2files - /builddir/build/BUILD/ruby-2.8.0-810d66f3e7/rubyspec_temp/32136/359-file_chmod_test.lnk
/builddir/build/BUILD/ruby-2.8.0-810d66f3e7/spec/ruby/core/file/lchmod_spec.rb:21:in `lchmod'
/builddir/build/BUILD/ruby-2.8.0-810d66f3e7/spec/ruby/core/file/lchmod_spec.rb:21:in `block (3 levels) in <top (required)>'
/builddir/build/BUILD/ruby-2.8.0-810d66f3e7/spec/ruby/core/file/lchmod_spec.rb:3:in `<top (required)>'

It seems that glibc 2.31.9000 does not support lchmod above links. May be I should rather report this against glibc? Not sure ...

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0