9d170c
diff --git a/test/cp.test b/test/cp.test
9d170c
index a888c04..4a75ffd 100644
9d170c
--- a/test/cp.test
9d170c
+++ b/test/cp.test
9d170c
@@ -9,7 +9,7 @@ The cp utility should only copy ACLs if `-p' is given.
9d170c
 	> -rw-rw-r--+
9d170c
 	
9d170c
 	$ cp f g
9d170c
-	$ ls -l g | awk -- '{ print $1 }'
9d170c
+	$ ls -l g | awk -- '{ print $1 }' | sed 's/\\.$//'
9d170c
 	> -rw-r--r--
9d170c
 	
9d170c
 	$ rm g
9d170c
diff --git a/test/getfacl-recursive.test b/test/getfacl-recursive.test
9d170c
index b88c211..a72192e 100644
9d170c
--- a/test/getfacl-recursive.test
9d170c
+++ b/test/getfacl-recursive.test
9d170c
@@ -1,5 +1,6 @@
9d170c
 Tests for proper path recursion
9d170c
 
9d170c
+	$ umask 022
9d170c
 	$ mkdir -p 1/2/3
9d170c
 	$ mkdir 1/link
9d170c
 	$ touch 1/link/file
9d170c
diff --git a/test/misc.test b/test/misc.test
9d170c
index 7c62c64..e6140da 100644
9d170c
--- a/test/misc.test
9d170c
+++ b/test/misc.test
9d170c
@@ -254,7 +254,7 @@ Add some users and groups
9d170c
 Symlink in directory with default ACL?
9d170c
 	 
9d170c
 	$ ln -s d d/l
9d170c
-	$ ls -dl d/l | awk '{print $1}'
9d170c
+	$ ls -dl d/l | awk '{print $1}' | sed 's/\\.$//'
9d170c
 	> lrwxrwxrwx
9d170c
 
9d170c
 	$ ls -dl -L d/l | awk '{print $1}'
9d170c
@@ -343,7 +343,7 @@ Remove the default ACL
9d170c
 Reset to base entries
9d170c
 	 
9d170c
 	$ setfacl -b d
9d170c
-	$ ls -dl d | awk '{print $1}'
9d170c
+	$ ls -dl d | awk '{print $1}' | sed 's/\\.$//'
9d170c
 	> drwxr-x---
9d170c
 
9d170c
 	$ getfacl --omit-header d
9d170c
@@ -355,7 +355,7 @@ Reset to base entries
9d170c
 Now, chmod should change the group_obj entry
9d170c
 	 
9d170c
 	$ chmod 775 d
9d170c
-	$ ls -dl d | awk '{print $1}'
9d170c
+	$ ls -dl d | awk '{print $1}' | sed 's/\\.$//'
9d170c
 	> drwxrwxr-x
9d170c
 	
9d170c
 	$ getfacl --omit-header d
9d170c
diff --git a/test/root/permissions.test b/test/root/permissions.test
9d170c
index afaf5f0..4880bd2 100644
9d170c
--- a/test/root/permissions.test
9d170c
+++ b/test/root/permissions.test
9d170c
@@ -20,7 +20,7 @@ defined permissions.
9d170c
 	$ cd d
9d170c
 	$ umask 027
9d170c
 	$ touch f
9d170c
-	$ ls -l f | awk -- '{ print $1, $3, $4 }'
9d170c
+	$ ls -l f | awk -- '{ print $1, $3, $4 }' | sed 's/---\\./---/'
9d170c
 	> -rw-r----- root root
9d170c
 
9d170c
 
9d170c
@@ -40,7 +40,7 @@ Now, change the ownership of the file to bin:bin and verify that this
9d170c
 gives user bin write access.
9d170c
 
9d170c
 	$ chown bin:bin f
9d170c
-	$ ls -l f | awk -- '{ print $1, $3, $4 }'
9d170c
+	$ ls -l f | awk -- '{ print $1, $3, $4 }' | sed 's/---\\./---/'
9d170c
 	> -rw-r----- bin bin
9d170c
 	$ su bin
9d170c
 	$ echo bin >> f
9d170c
@@ -257,12 +257,12 @@ directories if the file has an ACL and only CAP_FOWNER would grant them.
9d170c
 	$ mkdir -m 600 x
9d170c
 	$ chown daemon:daemon x
9d170c
 	$ echo j > x/j
9d170c
-	$ ls -l x/j | awk -- '{ print $1, $3, $4 }'
9d170c
+	$ ls -l x/j | awk -- '{ print $1, $3, $4 }' | sed 's/---\\./---/'
9d170c
 	> -rw-r----- root root
9d170c
 
9d170c
 	$ setfacl -m u:daemon:r x
9d170c
 
9d170c
-	$ ls -l x/j | awk -- '{ print $1, $3, $4 }'
9d170c
+	$ ls -l x/j | awk -- '{ print $1, $3, $4 }' | sed 's/---\\./---/'
9d170c
 	> -rw-r----- root root
9d170c
 	(With the bug this gives: `ls: x/j: Permission denied'.)
9d170c
 
9d170c
diff --git a/test/root/restore.test b/test/root/restore.test
9d170c
index 6003cd4..5dbf73c 100644
9d170c
--- a/test/root/restore.test
9d170c
+++ b/test/root/restore.test
9d170c
@@ -17,7 +17,7 @@ Ensure setuid bit is restored when the owner changes
9d170c
 	$ chown bin passwd
9d170c
 	$ chmod u+s passwd
9d170c
 	$ setfacl --restore passwd.acl
9d170c
-	$ ls -dl passwd | awk '{print $1 " " $3 " " $4}'
9d170c
+	$ ls -dl passwd | awk '{print $1 " " $3 " " $4}' | sed 's/\\. root/ root/'
9d170c
 	> -rwsr-xr-x root root
9d170c
 
9d170c
 	$ rm passwd passwd.acl
9d170c
diff --git a/test/root/setfacl.test b/test/root/setfacl.test
9d170c
index 630e9fb..dd7fe08 100644
9d170c
--- a/test/root/setfacl.test
9d170c
+++ b/test/root/setfacl.test
9d170c
@@ -8,7 +8,7 @@ Setfacl utility tests. Run these tests on a filesystem with ACL support.
9d170c
 	$ sg bin
9d170c
 	$ umask 027
9d170c
 	$ touch g
9d170c
-	$ ls -dl g | awk '{print $1}'
9d170c
+	$ ls -dl g | awk '{print $1}' | sed 's/\\.$//'
9d170c
 	> -rw-r-----
9d170c
 
9d170c
 	$ setfacl -m m:- g
9d170c
diff --git a/test/sbits-restore.test b/test/sbits-restore.test
9d170c
index e5e4fb2..abdb58a 100644
9d170c
--- a/test/sbits-restore.test
9d170c
+++ b/test/sbits-restore.test
9d170c
@@ -13,10 +13,10 @@ Ensure setting of SUID/SGID/sticky via --restore works
9d170c
 	$ touch d/g
9d170c
 	$ touch d/u
9d170c
 	$ setfacl --restore d.acl
9d170c
-	$ ls -dl d | awk '{print $1}'
9d170c
+	$ ls -dl d | awk '{print $1}' | sed 's/\\.$//'
9d170c
 	> drwxr-xr-t
9d170c
-	$ ls -dl d/u | awk '{print $1}'
9d170c
+	$ ls -dl d/u | awk '{print $1}' | sed 's/\\.$//'
9d170c
 	> -rwSr--r--
9d170c
-	$ ls -dl d/g | awk '{print $1}'
9d170c
+	$ ls -dl d/g | awk '{print $1}' | sed 's/\\.$//'
9d170c
 	> -rw-r-Sr--
9d170c
 	$ rm -Rf d