diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-26 23:11:02 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-26 23:11:02 +0000 |
commit | 983546a83ac3d4d6e80f9801d17fb3cebccbe9ce (patch) | |
tree | 60359e586dfdea37b803c0ca23f2adf9111ac1d4 /nuttx/fs/fat | |
parent | 9aa229270fa7eb834950b6648bbe077fc8fecb62 (diff) | |
download | px4-nuttx-983546a83ac3d4d6e80f9801d17fb3cebccbe9ce.tar.gz px4-nuttx-983546a83ac3d4d6e80f9801d17fb3cebccbe9ce.tar.bz2 px4-nuttx-983546a83ac3d4d6e80f9801d17fb3cebccbe9ce.zip |
Fixes to get clean i.MXADS build
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3533 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/fat')
-rw-r--r-- | nuttx/fs/fat/fs_fat32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/fs/fat/fs_fat32.c b/nuttx/fs/fat/fs_fat32.c index 25354e936..2d880dabc 100644 --- a/nuttx/fs/fat/fs_fat32.c +++ b/nuttx/fs/fat/fs_fat32.c @@ -216,6 +216,7 @@ static int fat_open(FAR struct file *filep, const char *relpath, if ((oflags & (O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL)) { /* Already exists -- can't create it exclusively */ + ret = -EEXIST; goto errout_with_semaphore; } @@ -251,7 +252,6 @@ static int fat_open(FAR struct file *filep, const char *relpath, } /* fall through to finish the file open operations */ - } else if (ret == -ENOENT) { |