blob: 6c04cd4979061dce65fba7fad3ac733c0a0bfd2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#! /bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2018 Red Hat Inc. All Rights Reserved.
#
# FS QA Test 452
#
# Test xfs_db by bad character in field list selector string. The issue
# has been fixed by xfsprogs 945e47e2.
#
. ./common/preamble
_begin_fstest auto db
# Import common functions.
. ./common/filter
# Modify as appropriate.
_supported_fs xfs
_require_scratch
_scratch_mkfs_xfs >> $seqres.full 2>&1
inum=`_scratch_xfs_get_metadata_field rootino "sb 0"`
echo "= check bad character * ="
_scratch_xfs_db -c "inode $inum" -c "print core.*"
echo "= check bad character trailing slash ="
_scratch_xfs_db -c "inode $inum" -c "print core.\\"
echo "= check missing closing quote ="
_scratch_xfs_db -c "inode $inum" -c "print core.\""
# success, all done
status=0
exit
|