From nobody Fri Sep 5 08:00:50 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C000EB64DD for ; Tue, 18 Jul 2023 04:02:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230168AbjGRECZ (ORCPT ); Tue, 18 Jul 2023 00:02:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbjGRECX (ORCPT ); Tue, 18 Jul 2023 00:02:23 -0400 X-Greylist: delayed 1068 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 17 Jul 2023 21:02:20 PDT Received: from Atcsqr.andestech.com (60-248-80-70.hinet-ip.hinet.net [60.248.80.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAFD518D; Mon, 17 Jul 2023 21:02:20 -0700 (PDT) Received: from Atcsqr.andestech.com (localhost [127.0.0.2] (may be forged)) by Atcsqr.andestech.com with ESMTP id 36I3iV83007226; Tue, 18 Jul 2023 11:44:31 +0800 (+08) (envelope-from minachou@andestech.com) Received: from mail.andestech.com (ATCPCS16.andestech.com [10.0.1.222]) by Atcsqr.andestech.com with ESMTP id 36I3i5uO007200; Tue, 18 Jul 2023 11:44:05 +0800 (+08) (envelope-from minachou@andestech.com) Received: from swlinux02.andestech.com (10.0.15.183) by ATCPCS16.andestech.com (10.0.1.222) with Microsoft SMTP Server id 14.3.498.0; Tue, 18 Jul 2023 11:44:01 +0800 From: Hui Min Mina Chou To: , , CC: , , , , , Subject: [PATCH] selftests/filesystems: Add six consecutive 'x' characters to mktemp Date: Tue, 18 Jul 2023 11:43:51 +0800 Message-ID: <20230718034351.1373857-1-minachou@andestech.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.0.15.183] X-DNSRBL: X-MAIL: Atcsqr.andestech.com 36I3iV83007226 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" In busybox, the mktemp requires that the generated filename be suffixed with at least six consecutive 'X' characters. Otherwise, it will return an "Invalid argument" error. Signed-off-by: Hui Min Mina Chou Reviewed-by: Javier Martinez Canillas --- tools/testing/selftests/filesystems/fat/run_fat_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/filesystems/fat/run_fat_tests.sh b/too= ls/testing/selftests/filesystems/fat/run_fat_tests.sh index 7f35dc3d15df..d61264d4795d 100755 --- a/tools/testing/selftests/filesystems/fat/run_fat_tests.sh +++ b/tools/testing/selftests/filesystems/fat/run_fat_tests.sh @@ -12,7 +12,7 @@ set -u set -o pipefail =20 BASE_DIR=3D"$(dirname $0)" -TMP_DIR=3D"$(mktemp -d /tmp/fat_tests_tmp.XXXX)" +TMP_DIR=3D"$(mktemp -d /tmp/fat_tests_tmp.XXXXXX)" IMG_PATH=3D"${TMP_DIR}/fat.img" MNT_PATH=3D"${TMP_DIR}/mnt" =20 --=20 2.34.1