1
0
Fork 0
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:
naruse 2011-05-29 17:01:27 +00:00
parent e524bb986a
commit 4de27b35b5

View file

@ -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'