From 4bcf2c2a5e5af336f121493ef490fe670b4282ba Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 19 Jul 2011 13:10:31 +0000 Subject: 2011-07-19 Joel Sherrill PR 1838/filesystem * libcsupport/src/fchmod.c: fchmod() does not need a writeable file descriptor. --- cpukit/libcsupport/src/fchmod.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'cpukit/libcsupport') 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 ); } -- cgit v1.2.3