[rtems commit] imfs: check return value from mkdir
Gedare Bloom
gedare at rtems.org
Thu Sep 5 19:07:52 UTC 2013
Module: rtems
Branch: master
Commit: 97ae1eeb38a6521cfd52171cf6b816bdebf59f6b
Changeset: http://git.rtems.org/rtems/commit/?id=97ae1eeb38a6521cfd52171cf6b816bdebf59f6b
Author: Gedare Bloom <gedare at rtems.org>
Date: Thu Sep 5 14:13:32 2013 -0400
imfs: check return value from mkdir
---
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
More information about the vc
mailing list