diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-28 12:37:51 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-28 12:37:51 +0000 |
commit | 94cf69fe3e24b2b94c363e30664672617196e628 (patch) | |
tree | 1f5aa6371eb42b7c5d5205e3acb75b11e7d12b11 /coreutils/chmod.c | |
parent | 5c7596058dedb99ab0fbe773cc7ac61a2ffe9fbf (diff) | |
download | busybox-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.c | 20 |
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 | } |
136 | function test() { | 136 | function 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() { | |||
145 | t1="/tmp/busybox chmod" | 145 | t1="/tmp/busybox chmod" |
146 | t2="/usr/bin/chmod" | 146 | t2="/usr/bin/chmod" |
147 | create test1; create test2 | 147 | create test1; create test2 |
148 | test "a+w file" | 148 | tst "a+w file" |
149 | test "a-w dir" | 149 | tst "a-w dir" |
150 | test "a+w linkfile" | 150 | tst "a+w linkfile" |
151 | test "a-w linkdir" | 151 | tst "a-w linkdir" |
152 | test "-R a+w file" | 152 | tst "-R a+w file" |
153 | test "-R a-w dir" | 153 | tst "-R a-w dir" |
154 | test "-R a+w linkfile" | 154 | tst "-R a+w linkfile" |
155 | test "-R a-w linkdir" | 155 | tst "-R a-w linkdir" |
156 | test "a-r,a+x linkfile" | 156 | tst "a-r,a+x linkfile" |
157 | */ | 157 | */ |