X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Facl%2Fpermissions.test;h=b0b5cc1f326fe99a4cb3644fc971da8dff4f74b8;hp=a7ca8e0c47e368ff1ab79cfff40a0add47c1816f;hb=6c61075bcf2f310a83a8d4c9173c9b9f4370f5ac;hpb=a4d7408cccb2df5c1b15c1228527acc01e3ac88a diff --git a/lustre/tests/acl/permissions.test b/lustre/tests/acl/permissions.test index a7ca8e0..b0b5cc1 100644 --- a/lustre/tests/acl/permissions.test +++ b/lustre/tests/acl/permissions.test @@ -20,7 +20,7 @@ defined permissions. $ cd d $ umask 027 $ touch f - $ ls -l f | awk -- '{ print $1, $3, $4 }' + $ ls -l f | awk -- '{sub(/\\./, "", $1); print $1, $3, $4 }' > -rw-r----- root root @@ -40,7 +40,7 @@ Now, change the ownership of the file to bin:bin and verify that this gives user bin write access. $ chown bin:bin f - $ ls -l f | awk -- '{ print $1, $3, $4 }' + $ ls -l f | awk -- '{sub(/\\./, "", $1); print $1, $3, $4 }' > -rw-r----- bin bin $ su bin $ echo bin >> f @@ -262,12 +262,12 @@ directories if the file has an ACL and only CAP_FOWNER would grant them. $ mkdir -m 600 x $ chown daemon:daemon x $ echo j > x/j - $ ls -l x/j | awk -- '{ print $1, $3, $4 }' + $ ls -l x/j | awk -- '{sub(/\\./, "", $1); print $1, $3, $4 }' > -rw-r----- root root $ setfacl -m u:daemon:r x - $ ls -l x/j | awk -- '{ print $1, $3, $4 }' + $ ls -l x/j | awk -- '{sub(/\\./, "", $1); print $1, $3, $4 }' > -rw-r----- root root (With the bug this gives: `ls: x/j: Permission denied'.)