common/rc: fix _repair_scratch_fs error reporting

_dump_err2() helper was introduced over two years ago and it broke
the error reporting from _repair_scratch_fs.

Every test that runs:
_repair_scratch_fs >> $seqres.full

and expect to fail if anything is written to stderr is not working
as intended.

Reported-by: zhangyi (F) <yi.zhang@huawei.com>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: zhangyi (F) <yi.zhang@huawei.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Amir Goldstein
2019-05-28 15:08:47 +03:00
committed by Eryu Guan
parent 51d4496438
commit 84fbcec4ec
+1 -1
View File
@@ -98,7 +98,7 @@ _dump_err_cont()
_dump_err2()
{
_err_msg="$*"
>2& echo "$_err_msg"
>&2 echo "$_err_msg"
}
_log_err()