common: env: properly propagate error code
Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
0569bb12a6
commit
13517cbcf0
|
@ -245,7 +245,7 @@ int envfs_load(const char *filename, char *dir, unsigned flags)
|
||||||
envfd = open(filename, O_RDONLY);
|
envfd = open(filename, O_RDONLY);
|
||||||
if (envfd < 0) {
|
if (envfd < 0) {
|
||||||
printf("Open %s %s\n", filename, errno_str());
|
printf("Open %s %s\n", filename, errno_str());
|
||||||
return -1;
|
return envfd;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* read superblock */
|
/* read superblock */
|
||||||
|
|
Loading…
Reference in New Issue