state: Fix lseek error check in state_backend_bucket_direct_read()
This ports the following barebox commit:

| commit 219b954
| Author: Andrey Smirnov <andrew.smirnov@gmail.com>
| Date:   Wed Mar 6 23:49:21 2019 -0800
|
|     state: Fix lseek error check in state_backend_bucket_direct_read()
|
|     Don't use 'int' to store lseek()'s return value to avoid problems with
|     large seek offsets. While at it, make sure to populate return error
|     code from 'errno'.
|
|     Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
|     Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
1 parent 634317c commit ef7355cccc3a17bf09bb2a4f75de3f9ed360f97c
@Ulrich Ölmann Ulrich Ölmann authored on 30 Sep 2019
Roland Hieber committed on 11 Oct 2019
Showing 1 changed file
View
src/barebox-state/backend_bucket_direct.c