diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-07-19 13:14:09 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-07-19 13:14:09 +0000 |
commit | 343304a644f3e5ebc4606db1fb715ac1ade7b7b7 (patch) | |
tree | 128bdeca2cde092fe529276a74d987efe6ebffe8 | |
parent | 2011-07-15 Till Straumann <strauman@slac.stanford.edu> (diff) | |
download | rtems-343304a644f3e5ebc4606db1fb715ac1ade7b7b7.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.
-rw-r--r-- | cpukit/ChangeLog | 6 | ||||
-rw-r--r-- | cpukit/libcsupport/src/fchmod.c | 5 |
2 files changed, 7 insertions, 4 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index c2a6f942ac..e11a32862f 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-14 Gene Smith <gene.smith@siemens.com> PR 1381/networking diff --git a/cpukit/libcsupport/src/fchmod.c b/cpukit/libcsupport/src/fchmod.c index 11d9c0e723..341b10bdfb 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,9 +38,6 @@ int fchmod( /* * Now process the fchmod(). */ - - rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); - if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); |