diff options
author | Marek BehĂșn <marek.behun@nic.cz> | 2019-05-02 15:28:43 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-05-03 07:30:31 -0400 |
commit | cd22e34c11e7211c54d31f854672fa26185990a5 (patch) | |
tree | d9965dcf8d54d31d19588f0597d6d44796c6d9b8 /lib/vsprintf.c | |
parent | 72c69ea8d603fd2448dd1d7c399c4f77b77773b7 (diff) |
fs: btrfs: fix btrfs methods return values on failure
The btrfs implementation methods .ls(), .size() and .read() returns 1 on
failure, but the command handlers expect values <0 on failure.
For example if given a nonexistent path, the load command currently
returns success, and hush scripting does not work.
Fix this by setting return values of these methods to -1 instead of 1 on
failure.
Signed-off-by: Marek BehĂșn <marek.behun@nic.cz>
Diffstat (limited to 'lib/vsprintf.c')
0 files changed, 0 insertions, 0 deletions