diff options
author | Anton Ageev <antage@gmail.com> | 2013-07-22 02:06:00 +0400 |
---|---|---|
committer | Anton Ageev <antage@gmail.com> | 2013-07-22 02:06:00 +0400 |
commit | 5c1d9492bfd5290865fad000de0b63cbab243896 (patch) | |
tree | 513fe7f23d7cb750b57d2c346f271e7c9011635c /tests | |
parent | cd92d03e5895c1ae93b051be7ba65fd1960a945c (diff) | |
download | bindfs-5c1d9492bfd5290865fad000de0b63cbab243896.tar.gz |
Alter chmod permissions when using --chmod-perms
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test_bindfs.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_bindfs.rb b/tests/test_bindfs.rb index a78345b..26c7b20 100755 --- a/tests/test_bindfs.rb +++ b/tests/test_bindfs.rb @@ -258,6 +258,14 @@ testenv("--chmod-deny --chmod-allow-x") do assert_exception(EPERM) { chmod(0700, 'mnt/dir') } # chmod on dir should not work end +testenv("--chmod-perms=g-w,o-rwx") do + touch('src/file') + + chmod(0666, 'mnt/file') + + assert { File.stat('src/file').mode & 0777 == 0640 } +end + root_testenv("--map=nobody/root:@nogroup/@root") do touch('src/file') chown('nobody', 'nogroup', 'src/file') |