libvfs: vfs_fd: correctly set errno = ENOENT on FS_ERR_NOTFILE release2017-03-08
authorSimon Gerber <simon.gerber@inf.ethz.ch>
Tue, 7 Mar 2017 13:49:10 +0000 (14:49 +0100)
committerSimon Gerber <simon.gerber@inf.ethz.ch>
Tue, 7 Mar 2017 13:49:10 +0000 (14:49 +0100)
Signed-off-by: Simon Gerber <simon.gerber@inf.ethz.ch>

lib/vfs/vfs_fd.c

index aece30a..51805d2 100644 (file)
@@ -59,6 +59,7 @@ int vfsfd_open(const char *pathname, int flags)
 
         switch(err_no(err)) {
         case FS_ERR_NOTFOUND:
+        case FS_ERR_NOTFILE:
             errno = ENOENT;
             break;