2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2018 Red Hat Inc. All Rights Reserved.
7 # Test xfs_db by bad character in field list selector string. The issue
8 # has been fixed by xfsprogs 945e47e2.
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
16 status=1 # failure is the default!
17 trap "_cleanup; exit \$status" 0 1 2 3 15
25 # get standard environment, filters and checks
29 # remove previous $seqres.full before test
32 # Modify as appropriate.
36 _scratch_mkfs_xfs >> $seqres.full 2>&1
37 inum=`_scratch_xfs_get_metadata_field rootino "sb 0"`
39 echo "= check bad character * ="
40 _scratch_xfs_db -c "inode $inum" -c "print core.*"
41 echo "= check bad character trailing slash ="
42 _scratch_xfs_db -c "inode $inum" -c "print core.\\"
43 echo "= check missing closing quote ="
44 _scratch_xfs_db -c "inode $inum" -c "print core.\""