skill: Check the return value of fstat().

This commit is contained in:
Qualys Security Advisory 1970-01-01 00:00:00 +00:00 committed by Craig Small
parent 858df7cc89
commit 37547e9f5f

View File

@ -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;