fs/vfs: Fix negative errno set in fs_open.c

This commit is contained in:
Michał Łyszczek 2018-04-20 17:05:42 -06:00 committed by Gregory Nutt
parent 459b9ec262
commit 94b4a86aa6
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
/****************************************************************************
* fs/vfs/fs_open.c
*
* Copyright (C) 2007-2009, 2011-2012, 2016-2017 Gregory Nutt. All rights
* Copyright (C) 2007-2009, 2011-2012, 2016-2018 Gregory Nutt. All rights
* reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
@ -169,7 +169,7 @@ int open(const char *path, int oflags, ...)
fd = block_proxy(path, oflags);
if (fd < 0)
{
ret = fd;
ret = -fd;
goto errout_with_search;
}