From: Mohamed Barwani Date: Tue, 8 Apr 2008 03:59:48 +0000 (+0000) Subject: Update ln filter to work with ln (version < 6.x) X-Git-Tag: v1.1.0~400 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6d91bcc8b9471852bf2f3016dae41165a1e98a39;p=xfstests-dev.git Update ln filter to work with ln (version < 6.x) Merge of master-melb:xfs-cmds:30759a by kenmcd. added a regular expression on the filter to check before replacing. --- diff --git a/103 b/103 index 26f83cef..1e6fed25 100755 --- 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()