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