dont specify shell for su, irix doesnt like it
[xfstests-dev.git] / 123
diff --git a/123 b/123
index 46b5a2df47a7b0243c0f909383692d6381a4eb05..39d32e87cb9c8663b1ef4c6c07c2b4ef964bbac6 100755 (executable)
--- a/123
+++ b/123
@@ -27,9 +27,23 @@ _cleanup()
     _cleanup_testdir
 }
 
+
+_filter_user_do()
+{
+        perl -ne "
+s,.*Permission\sdenied.*,Permission denied,;
+s,.*no\saccess\sto\stty.*,,;
+s,.*no\sjob\scontrol\sin\sthis\sshell.*,,;
+s,^\s*$,,;
+        print;"
+}
+
+
+
+
 _user_do()
 {
-    echo $1 | su -s /bin/sh - $qa_user | sed -e "s#.*Permission denied.*#Permission denied#g"
+    echo "/bin/sh '$1'" | su - $qa_user | _filter_user_do 
 }
 
 # get standard environment, filters and checks
@@ -48,7 +62,6 @@ echo foo > $testdir/data_coherency.txt
 # check basic appending to a file
 echo bar >> $testdir/data_coherency.txt
 
-
 # try append
 _user_do "echo goo 2>&1 >> $testdir/data_coherency.txt"