summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-02-08 08:47:44 -0800
committerKaz Kylheku <kaz@kylheku.com>2020-02-08 08:47:44 -0800
commitd201dc097fa6920b37c16dd83ca7e52575223d2f (patch)
tree1fbef878311b1c1a8355563d9cea4461a6e1f150 /tests
parentb8a5b08de163e80e1b72459c5c889bb70eef947b (diff)
downloadtxr-d201dc097fa6920b37c16dd83ca7e52575223d2f.tar.gz
txr-d201dc097fa6920b37c16dd83ca7e52575223d2f.tar.bz2
txr-d201dc097fa6920b37c16dd83ca7e52575223d2f.zip
chmod: ugo perms sees effects from same clause.
This is Coreutils chmod behavior. * sysif.c (chmod_wrap): Sample cmode into oldm at the start of every assigment before punching the masked hole into cmode. * tests/018/chmod.tl: Breaking test case added.
Diffstat (limited to 'tests')
-rw-r--r--tests/018/chmod.tl1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/018/chmod.tl b/tests/018/chmod.tl
index 93739c48..8cde28eb 100644
--- a/tests/018/chmod.tl
+++ b/tests/018/chmod.tl
@@ -46,3 +46,4 @@
(cht "-----x------" "=,a+X" "------------")
(cht "-----x------" "a-x+X" "------------")
(cht "------------" "u+x-X" "------------")
+(cht "------------" "o+x=o" "-----------x")