[RTEMS Project] #1516: typo in fchmod

RTEMS trac trac at rtems.org
Sun Nov 23 19:06:38 UTC 2014


#1516: typo in fchmod
-----------------------+----------------------------
 Reporter:  nbkolchin  |       Owner:  joel.sherrill
     Type:  defect     |      Status:  closed
 Priority:  normal     |   Milestone:  4.10
Component:  cpukit     |     Version:  4.10
 Severity:  normal     |  Resolution:  fixed
 Keywords:             |
-----------------------+----------------------------
Changes (by joel.sherrill):

 * version:  unknown => 4.10


Old description:

> Code:
>
>   if ( !iop->handlers->fchmod_h )
>     rtems_set_errno_and_return_minus_one( ENOTSUP );
>
>   return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode );
>
> Should be:
>
>   if ( !iop->pathinfo.handlers->fchmod_h ) // added pathinfo
>     rtems_set_errno_and_return_minus_one( ENOTSUP );
>
>   return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode );

New description:

 Code:

   if ( !iop->handlers->fchmod_h )
     rtems_set_errno_and_return_minus_one( ENOTSUP );

   return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode );

 Should be:

   if ( !iop->pathinfo.handlers->fchmod_h ) // added pathinfo
     rtems_set_errno_and_return_minus_one( ENOTSUP );

   return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode );

--

--
Ticket URL: <http://devel.rtems.org/ticket/1516#comment:4>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list