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.
13 # Import common functions.
16 # Modify as appropriate.
20 _scratch_mkfs_xfs >> $seqres.full 2>&1
21 inum=`_scratch_xfs_get_metadata_field rootino "sb 0"`
23 echo "= check bad character * ="
24 _scratch_xfs_db -c "inode $inum" -c "print core.*"
25 echo "= check bad character trailing slash ="
26 _scratch_xfs_db -c "inode $inum" -c "print core.\\"
27 echo "= check missing closing quote ="
28 _scratch_xfs_db -c "inode $inum" -c "print core.\""