[PATCH] imfs: check return value from mkdir

Gedare Bloom gedare at rtems.org
Thu Sep 5 18:13:57 UTC 2013


---
 cpukit/libfs/src/imfs/imfs_load_tar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cpukit/libfs/src/imfs/imfs_load_tar.c b/cpukit/libfs/src/imfs/imfs_load_tar.c
index 723699b..abb9f46 100644
--- a/cpukit/libfs/src/imfs/imfs_load_tar.c
+++ b/cpukit/libfs/src/imfs/imfs_load_tar.c
@@ -104,7 +104,7 @@ int rtems_tarfs_load(
       if (full_filename[strlen(full_filename)-1] != '/')
         strcat(full_filename, "/");
       strcat(full_filename, filename);
-      mkdir(full_filename, S_IRWXU | S_IRWXG | S_IRWXO);
+      rv = mkdir(full_filename, S_IRWXU | S_IRWXG | S_IRWXO);
     }
     /*
      * Create a LINEAR_FILE node
-- 
1.7.1




More information about the devel mailing list