Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

#4365 closed defect (fixed)

main_cp.c: Ignore return value from stat()

Reported by: Ryan Long Owned by: Ryan Long <ryan.long@…>
Priority: normal Milestone: 6.1
Component: lib Version: 6
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

CID 26051: Unchecked return value from library in main_cp().

257                        if (Rflag && (Lflag || Hflag))
   CID 26051 (#1 of 1): Unchecked return value from library (CHECKED_RETURN)34. check_return: Calling stat(*argv, &tmp_stat) without checking return value. This library function may fail and return an error code. [Note: The source code implementation of the function has been overridden by a builtin model.]
258                                stat(*argv, &tmp_stat);

Change History (1)

comment:1 Changed on 05/28/21 at 17:29:44 by Ryan Long <ryan.long@…>

Owner: set to Ryan Long <ryan.long@…>
Resolution: fixed
Status: newclosed

In [changeset:"f29b312ea4bcfe063d5fa443138df4508103fd82/rtems" f29b312e/rtems]:

main_cp.c: Ignore return value from stat()

CID 26051: Unchecked return value from library in main_cp().

Closes #4365

Note: See TracTickets for help on using tickets.