[PATCH] mtd: mkfs.ubifs: Improve error handling of is_contained()

Artem Bityutskiy dedekind1 at gmail.com
Fri Oct 26 09:56:28 EDT 2012


On Tue, 2012-10-16 at 13:51 +0200, Marcus Prebble wrote:
> mtd: mtd-utils/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 at axis.com>

Pushed to mtd-utils.git, thanks!

-- 
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20121026/b7d27484/attachment.sig>


More information about the linux-mtd mailing list