diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2014-10-21 16:31:17 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2014-11-03 18:35:30 +0100 |
commit | ae8f7f687f037c46a9fc61cab5bdfea34419df26 (patch) | |
tree | 0ba973b3f72ba1161251c0026e7dd1e94b25d34e /INSTALL | |
parent | 34ed841dcdeaab301be89feebe2632a8f74ee2c0 (diff) |
btrfs-progs: Fix number of arguments check of 'btrfs fi df'
'btrfs fi df' needs exactly one arguments as mount option,
but as 3.17 we can run 'btrfs fi df' without any argument,
and it will error as "ERROR: can't access '%s'" which means
the argument number does not do what it should.
The bug is caused by manually modify the optind and use check_argc_max()
instead of the original check_argc_exact().
This patch fixes it by not modifying the optind and use check_argc_exact()
again.
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'INSTALL')
0 files changed, 0 insertions, 0 deletions