Lines Matching refs:stat_buf
305 struct stat stat_buf;
341 ret = fstat(fd, &stat_buf);
348 if (!S_ISREG(stat_buf.st_mode)) {
355 if (stat_buf.st_uid != 0 || stat_buf.st_gid != 0 ||
356 (stat_buf.st_mode & ~S_IFMT) != 0644) {
364 if (stat_buf.st_size > PW_RESET_MSG_MAX_SIZE) {
370 msg_buf = malloc(stat_buf.st_size + 1);
378 total_len = sss_atomic_read_s(fd, msg_buf, stat_buf.st_size);
392 if (total_len != stat_buf.st_size) {
394 stat_buf.st_size));
399 msg_buf[stat_buf.st_size] = '\0';