summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/pipe
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libfs/src/pipe')
-rw-r--r--cpukit/libfs/src/pipe/pipe.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/cpukit/libfs/src/pipe/pipe.c b/cpukit/libfs/src/pipe/pipe.c
index 0cc8c9acdb..a7a78e95fa 100644
--- a/cpukit/libfs/src/pipe/pipe.c
+++ b/cpukit/libfs/src/pipe/pipe.c
@@ -30,20 +30,11 @@ int pipe_create(
int filsdes[2]
)
{
- rtems_filesystem_location_info_t loc;
rtems_libio_t *iop;
int err = 0;
- /* Create /tmp if not exists */
- /* FIXME: We should use a general mkdir function for this */
- if (rtems_filesystem_evaluate_path("/tmp", 3, RTEMS_LIBIO_PERMS_RWX, &loc, TRUE)
- != 0) {
- if (errno != ENOENT)
- return -1;
- if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0)
- return -1;
- }
- else
- rtems_filesystem_freenode(&loc);
+
+ if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)
+ return -1;
/* /tmp/.fifoXXXX */
char fifopath[15];