]> git.ipfire.org Git - thirdparty/util-linux.git/commit
findmnt: revise the code for -I and -D option
authorMasatake YAMATO <yamato@redhat.com>
Fri, 5 Apr 2024 13:40:36 +0000 (22:40 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Tue, 9 Apr 2024 13:35:14 +0000 (22:35 +0900)
commit38493c7681a82cd4cd1e88f9a9e483eb0ff00a16
tree80dbd704e73ba52e4e0d8eae9bb0904b52d1d781
parent5de7172a3e59b6861bff0b7baa6f0cad321ab3ff
findmnt: revise the code for -I and -D option

Fixes #2913.

3dd79293b5b655da9d913dedd8facb08959a7826 added -I option.
However, the code used bit flags (FL_DF and FL_DF_INODES) wrongly;
the code broke the output of -D option.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
(cherry picked from commit aa0c45e8686df509c169121473d2cfb4fe18c3ea)
misc-utils/findmnt.c
misc-utils/findmnt.h
tests/expected/findmnt/df-options [new file with mode: 0644]
tests/ts/findmnt/df-options [new file with mode: 0755]