aboutsummaryrefslogtreecommitdiff
path: root/coreutils/chmod.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-28 12:37:51 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-28 12:37:51 +0000
commit94cf69fe3e24b2b94c363e30664672617196e628 (patch)
tree1f5aa6371eb42b7c5d5205e3acb75b11e7d12b11 /coreutils/chmod.c
parent5c7596058dedb99ab0fbe773cc7ac61a2ffe9fbf (diff)
downloadbusybox-w32-94cf69fe3e24b2b94c363e30664672617196e628.tar.gz
busybox-w32-94cf69fe3e24b2b94c363e30664672617196e628.tar.bz2
busybox-w32-94cf69fe3e24b2b94c363e30664672617196e628.zip
ls: cleanup part 2. ifdef forest is much less scary now :)
Diffstat (limited to 'coreutils/chmod.c')
-rw-r--r--coreutils/chmod.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/coreutils/chmod.c b/coreutils/chmod.c
index b601504f8..4abae2d51 100644
--- a/coreutils/chmod.c
+++ b/coreutils/chmod.c
@@ -133,7 +133,7 @@ function create() {
133 ln -s ../up dir/up 133 ln -s ../up dir/up
134 ) 134 )
135} 135}
136function test() { 136function tst() {
137 (cd test1; $t1 $1) 137 (cd test1; $t1 $1)
138 (cd test2; $t2 $1) 138 (cd test2; $t2 $1)
139 (cd test1; ls -lR) >out1 139 (cd test1; ls -lR) >out1
@@ -145,13 +145,13 @@ function test() {
145t1="/tmp/busybox chmod" 145t1="/tmp/busybox chmod"
146t2="/usr/bin/chmod" 146t2="/usr/bin/chmod"
147create test1; create test2 147create test1; create test2
148test "a+w file" 148tst "a+w file"
149test "a-w dir" 149tst "a-w dir"
150test "a+w linkfile" 150tst "a+w linkfile"
151test "a-w linkdir" 151tst "a-w linkdir"
152test "-R a+w file" 152tst "-R a+w file"
153test "-R a-w dir" 153tst "-R a-w dir"
154test "-R a+w linkfile" 154tst "-R a+w linkfile"
155test "-R a-w linkdir" 155tst "-R a-w linkdir"
156test "a-r,a+x linkfile" 156tst "a-r,a+x linkfile"
157*/ 157*/