Fixes to Coverity defects:
72643 72645 72655 72656 72657 72658 72664 72698 72712
This commit is contained in:
@ -269,7 +269,17 @@ MAXKEYS key;
|
||||
errno,
|
||||
strerror(errno))));
|
||||
}
|
||||
chmod(secret_file, S_IRUSR);
|
||||
|
||||
if( chmod(secret_file, S_IRUSR) < 0)
|
||||
{
|
||||
LOGIF(LE, (skygw_log_write_flush(
|
||||
LOGFILE_ERROR,
|
||||
"Error : failed to change the permissions of the"
|
||||
"secret file [%s]. Error %d, %s.",
|
||||
secret_file,
|
||||
errno,
|
||||
strerror(errno))));
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user