From 5c1d9492bfd5290865fad000de0b63cbab243896 Mon Sep 17 00:00:00 2001 From: Anton Ageev Date: Mon, 22 Jul 2013 02:06:00 +0400 Subject: Alter chmod permissions when using --chmod-perms --- tests/test_bindfs.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/test_bindfs.rb') 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') -- cgit v1.2.3