2011-07-19 Joel Sherrill <joel.sherrilL@OARcorp.com>

PR 1838/filesystem
	* libcsupport/src/fchmod.c: fchmod() does not need a writeable file
	descriptor.
This commit is contained in:
Joel Sherrill
2011-07-19 13:14:09 +00:00
parent 01eb27f0d0
commit 343304a644
2 changed files with 7 additions and 4 deletions

View File

@@ -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> 2011-07-14 Gene Smith <gene.smith@siemens.com>
PR 1381/networking PR 1381/networking

View File

@@ -1,7 +1,7 @@
/* /*
* fchmod() - POSIX 1003.1b 5.6.4 - Change File Modes * fchmod() - POSIX 1003.1b 5.6.4 - Change File Modes
* *
* COPYRIGHT (c) 1989-1999. * COPYRIGHT (c) 1989-2011.
* On-Line Applications Research Corporation (OAR). * On-Line Applications Research Corporation (OAR).
* *
* The license and distribution terms for this file may be * The license and distribution terms for this file may be
@@ -38,9 +38,6 @@ int fchmod(
/* /*
* Now process the fchmod(). * Now process the fchmod().
*/ */
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
if ( !iop->handlers->fchmod_h ) if ( !iop->handlers->fchmod_h )
rtems_set_errno_and_return_minus_one( ENOTSUP ); rtems_set_errno_and_return_minus_one( ENOTSUP );