You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2020/02/07 07:30:52 UTC

[mynewt-core] 01/03: fs/fatfs: Fix opendir return code

This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 15cf70edae2285b065875272e5a22212f3982efe
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Thu Feb 6 13:52:12 2020 +0100

    fs/fatfs: Fix opendir return code
    
    In case of open dir failure (no directory) return
    error code was ignored and function returned FS_EOK instead.
---
 fs/fatfs/src/mynewt_glue.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/fatfs/src/mynewt_glue.c b/fs/fatfs/src/mynewt_glue.c
index bc7e0a5..a08b3f0 100644
--- a/fs/fatfs/src/mynewt_glue.c
+++ b/fs/fatfs/src/mynewt_glue.c
@@ -423,7 +423,7 @@ out:
         if (dir) free(dir);
         if (out_dir) free(out_dir);
     }
-    return FS_EOK;
+    return rc;
 }
 
 static int