casefold: Fix expansion of seqres variable
authorGabriel Krisman Bertazi <krisman@collabora.com>
Wed, 11 May 2022 16:33:40 +0000 (12:33 -0400)
committerZorro Lang <zlang@kernel.org>
Thu, 12 May 2022 08:07:01 +0000 (16:07 +0800)
seqres is not properly expanded on these error paths, causing a file
called seqres.full to be created instead.

Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/casefold

index 9172d818125abc11d5e3f1462cf3716d002d3cb7..d9126f4c59e6f8482cb8d3d7271d4752ee94223a 100644 (file)
@@ -25,7 +25,7 @@ _require_scratch_casefold()
                _notrun "$FSTYP does not support casefold feature"
        fi
 
-       if ! _scratch_mkfs_casefold &>>seqres.full; then
+       if ! _scratch_mkfs_casefold &>> $seqres.full ; then
                _notrun "$FSTYP userspace tools do not support casefold"
        fi
 
@@ -33,7 +33,7 @@ _require_scratch_casefold()
        # defined by the userspace tools.  This will fail if
        # the userspace tool used a more recent encoding than the one
        # supported in kernel space.
-       if ! _try_scratch_mount &>>seqres.full; then
+       if ! _try_scratch_mount &>> $seqres.full ; then
                _notrun "kernel can't mount filesystem with the encoding set by userspace"
        fi
        _scratch_unmount