skill: Check the return value of fstat().
This commit is contained in:
parent
858df7cc89
commit
37547e9f5f
3
skill.c
3
skill.c
@ -187,7 +187,8 @@ static void check_proc(int pid, struct run_time_conf_t *run_time)
|
|||||||
xwarn(_("cannot open file %s"), buf);
|
xwarn(_("cannot open file %s"), buf);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
fstat(fd, &statbuf);
|
if (fstat(fd, &statbuf) != 0)
|
||||||
|
goto closure;
|
||||||
if (uids) {
|
if (uids) {
|
||||||
/* check the EUID */
|
/* check the EUID */
|
||||||
i = uid_count;
|
i = uid_count;
|
||||||
|
Loading…
Reference in New Issue
Block a user