common/rc: fix ignoring of errors on
[xfstests-dev.git] / common / rc
index e0b6d50854c64f72f31d94980679a49e7ae14a01..46b6b22040ec2516b790cf0efe61a48a3de80c2a 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -2550,14 +2550,14 @@ _format_swapfile() {
        $CHATTR_PROG +C "$fname" > /dev/null 2>&1
        _pwrite_byte 0x61 0 "$sz" "$fname" >> $seqres.full
        # Ignore permission complaints on filesystems that don't support perms
-       $MKSWAP_PROG "$fname" 2> >(grep -v 'insecure permission' >&2) >> $seqres.full
+       $(MKSWAP_PROG "$fname" 2> >(grep -v 'insecure permission' >&2)) >> $seqres.full
 }
 
 _swapon_file() {
        local fname="$1"
 
        # Ignore permission complaints on filesystems that don't support perms
-       swapon "$fname" 2> >(grep -v "insecure permissions" >&2)
+       $(swapon "$fname" 2> >(grep -v "insecure permissions" >&2))
 }
 
 # Check that the filesystem supports swapfiles