Fix crash with absurdly but not impossibly deeply nested device stacks
authorKen Raeburn <raeburn@permabit.com>
Tue, 29 Jan 2013 09:18:13 +0000 (10:18 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 29 Jan 2013 09:18:13 +0000 (10:18 +0100)
commit4b919f7740f4875d73c0619a08d269d5c679e19f
tree64f276b48147d939132f2e3af9dc110ac7a4fd5d
parent899fab33f71cd9fd7037ee4c0df707daa86a0bbd
Fix crash with absurdly but not impossibly deeply nested device stacks

Use the proper PATH_MAX for the max path for disk util, and use
snprintf() to avoid potentially overwriting it.

Modified by Jens to return NULL instead of exiting.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
diskutil.c
diskutil.h