Lines Matching refs:statbuf
242 struct stat statbuf; in tftp_request() local
248 if (stat(daemon->namebuff, &statbuf) == -1 || !S_ISDIR(statbuf.st_mode)) in tftp_request()
294 struct stat statbuf; in check_tftp_fileperm() local
315 if (fstat(fd, &statbuf) == -1) in check_tftp_fileperm()
321 if (!(statbuf.st_mode & S_IROTH)) in check_tftp_fileperm()
325 else if ((daemon->options & OPT_TFTP_SECURE) && uid != statbuf.st_uid) in check_tftp_fileperm()
334 if (t->file->dev == statbuf.st_dev && in check_tftp_fileperm()
335 t->file->inode == statbuf.st_ino && in check_tftp_fileperm()
350 file->size = statbuf.st_size; in check_tftp_fileperm()
351 file->dev = statbuf.st_dev; in check_tftp_fileperm()
352 file->inode = statbuf.st_ino; in check_tftp_fileperm()