mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
NetBSD also denies to set sticky bit against regular file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e524bb986a
commit
4de27b35b5
1 changed files with 2 additions and 1 deletions
|
@ -913,7 +913,8 @@ class TestFileUtils
|
||||||
# FreeBSD ufs and tmpfs don't allow to change sticky bit against
|
# FreeBSD ufs and tmpfs don't allow to change sticky bit against
|
||||||
# regular file. It's slightly strange. Anyway it's no effect bit.
|
# regular file. It's slightly strange. Anyway it's no effect bit.
|
||||||
# see /usr/src/sys/ufs/ufs/ufs_chmod()
|
# see /usr/src/sys/ufs/ufs/ufs_chmod()
|
||||||
if /freebsd/ !~ RUBY_PLATFORM
|
# NetBSD also denies it.
|
||||||
|
if /freebsd|netbsd/ !~ RUBY_PLATFORM
|
||||||
chmod "u+t,o+t", 'tmp/a'
|
chmod "u+t,o+t", 'tmp/a'
|
||||||
assert_equal 07500, File.stat('tmp/a').mode & 07777
|
assert_equal 07500, File.stat('tmp/a').mode & 07777
|
||||||
chmod "a-t,a-s", 'tmp/a'
|
chmod "a-t,a-s", 'tmp/a'
|
||||||
|
|
Loading…
Reference in a new issue