summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-07-19 13:10:31 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-07-19 13:10:31 +0000
commit4bcf2c2a5e5af336f121493ef490fe670b4282ba (patch)
treed13865dbfaaf1b0f441c5bcefa0bd1ca6aea08b5 /cpukit
parent2011-07-19 Ricardo Aguirre <el.mastin@ymail.com> (diff)
downloadrtems-4bcf2c2a5e5af336f121493ef490fe670b4282ba.tar.bz2
2011-07-19 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1838/filesystem * libcsupport/src/fchmod.c: fchmod() does not need a writeable file descriptor.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/ChangeLog6
-rw-r--r--cpukit/libcsupport/src/fchmod.c5
2 files changed, 7 insertions, 4 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index f01823a237..c91d05de1c 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,3 +1,9 @@
+2011-07-19 Joel Sherrill <joel.sherrilL@OARcorp.com>
+
+ PR 1838/filesystem
+ * libcsupport/src/fchmod.c: fchmod() does not need a writeable file
+ descriptor.
+
2011-07-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/src/msgqcreate.c: Make packet size check consistent with
diff --git a/cpukit/libcsupport/src/fchmod.c b/cpukit/libcsupport/src/fchmod.c
index 867f40f1f8..e90a155bdb 100644
--- a/cpukit/libcsupport/src/fchmod.c
+++ b/cpukit/libcsupport/src/fchmod.c
@@ -1,7 +1,7 @@
/*
* fchmod() - POSIX 1003.1b 5.6.4 - Change File Modes
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2011.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -38,8 +38,5 @@ int fchmod(
/*
* Now process the fchmod().
*/
-
- rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
-
return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode );
}