]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
Update ln filter to work with ln (version < 6.x)
authorMohamed Barwani <mohamedb@sgi.com>
Tue, 8 Apr 2008 03:59:48 +0000 (03:59 +0000)
committerMohamed Barwani <mohamedb@sgi.com>
Tue, 8 Apr 2008 03:59:48 +0000 (03:59 +0000)
Merge of master-melb:xfs-cmds:30759a by kenmcd.

  added a regular expression on the filter to check before replacing.

103

diff --git a/103 b/103
index 26f83cefb8f4b0fa50cab6e9a2a9c79cf0f10b19..1e6fed255d25aee01c2c0b77213a92847e1a4c9c 100755 (executable)
--- a/103
+++ b/103
@@ -48,7 +48,7 @@ _filter_scratch()
 _filter_ln()
 {
     sed -e "s,SCRATCH_MNT/nosymlink/target - Operation not permitted,ln: creating symbolic link \`SCRATCH_MNT/nosymlink/target\' to \`SCRATCH_MNT/nosymlink/source\': Operation not permitted,g" \
-        -e "s,: Operation not permitted, to \`SCRATCH_MNT/nosymlink/source\': Operation not permitted,g"
+        -e "/SCRATCH_MNT.*to.*SCRATCH_MNT/! s,: Operation not permitted, to \`SCRATCH_MNT/nosymlink/source\': Operation not permitted,g"
 }
 
 _filter_noymlinks_flag()