[RTEMS Project] #4282: pwdgrp.c: Unchecked return value from library error spotted by Coverity
RTEMS trac
trac at rtems.org
Tue Mar 2 15:01:37 UTC 2021
#4282: pwdgrp.c: Unchecked return value from library error spotted by Coverity
------------------------+--------------------
Reporter: Ryan Long | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone: 6.1
Component: lib | Version: 6
Severity: normal | Keywords:
Blocked By: | Blocking:
------------------------+--------------------
CID 1255518: Unchecked return value from library in pwdgrp_init().
{{{
65 /*
66 * Do the best to create this directory.
67 */
CID 1255518 (#1 of 1): Unchecked return value from library
(CHECKED_RETURN)1. check_return: Calling mkdir("/etc", 493U) 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.]
68 mkdir("/etc", S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH);
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/4282>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list