diff options
author | Marcus Prebble <marcus.prebble@axis.com> | 2012-10-16 13:51:01 +0200 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-10-26 16:55:57 +0300 |
commit | 334221cf5a94ec3a75c7620661eb5b7b5332256c (patch) | |
tree | 51bf303c959d04e4de539017a41f2e6eb2142675 /sumtool.c | |
parent | 17f66065837415e0b1b4d619f12a2219af987c80 (diff) |
mkfs.ubifs: Improve error handling of is_contained()
The is_contained() function returns -1 if an error occurs when
canonicalizing the output file path/root directory. This resulted in the
confusing error message 'Error: The output file cannot be in the UBIFS
root' when specifying a non-existent directory for the output.
This patch changes the error handling to display a different error
message for the case when is_contained() returns -1.
Additionally it frees all memory allocated by is_contained().
Signed-off-by: Marcus Prebble <marcus.prebble@axis.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'sumtool.c')
0 files changed, 0 insertions, 0 deletions