All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] casefold: Fix expansion of seqres variable
@ 2022-05-11  0:25 Gabriel Krisman Bertazi
  2022-05-11  4:55 ` Dave Chinner
  0 siblings, 1 reply; 3+ messages in thread
From: Gabriel Krisman Bertazi @ 2022-05-11  0:25 UTC (permalink / raw)
  To: zlang; +Cc: fstests, Gabriel Krisman Bertazi

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>
---
 common/casefold | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/casefold b/common/casefold
index 9172d818125a..7e8f941211db 100644
--- a/common/casefold
+++ b/common/casefold
@@ -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
-- 
2.35.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-05-11  9:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-11  0:25 [PATCH] casefold: Fix expansion of seqres variable Gabriel Krisman Bertazi
2022-05-11  4:55 ` Dave Chinner
2022-05-11  9:26   ` Zorro Lang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.