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.
This commit is contained in:
Mohamed Barwani
2008-04-08 03:59:48 +00:00
parent 9a3b0f6db9
commit 6d91bcc8b9
+1 -1
View File
@@ -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()