Added TODO highlighted by flawfinder.
This commit is contained in:
@@ -90,6 +90,7 @@ int main(int argc, char **argv)
|
|||||||
*/
|
*/
|
||||||
if (opts->pidfile != NULL) {
|
if (opts->pidfile != NULL) {
|
||||||
FILE *pidfptr;
|
FILE *pidfptr;
|
||||||
|
/* TODO: safe open to temp file, rename to pidfile */
|
||||||
pidfptr = fopen(opts->pidfile, "w");
|
pidfptr = fopen(opts->pidfile, "w");
|
||||||
if (NULL == pidfptr) {
|
if (NULL == pidfptr) {
|
||||||
/*@-mustfreefresh@ *//* see above */
|
/*@-mustfreefresh@ *//* see above */
|
||||||
|
|||||||
Reference in New Issue
Block a user