From 6d91bcc8b9471852bf2f3016dae41165a1e98a39 Mon Sep 17 00:00:00 2001 From: Mohamed Barwani Date: Tue, 8 Apr 2008 03:59:48 +0000 Subject: [PATCH] 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. --- 103 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.39.5