get_file_type() should use stat(), not lstat()
We care about the device, not the potential link we are passed.
Reported-by: "H. Tolley" <h_tolley@hotmail.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/filesetup.c b/filesetup.c
index cbef672..c188981 100644
--- a/filesetup.c
+++ b/filesetup.c
@@ -770,7 +770,7 @@
else
f->filetype = FIO_TYPE_FILE;
- if (!lstat(f->file_name, &sb)) {
+ if (!stat(f->file_name, &sb)) {
if (S_ISBLK(sb.st_mode))
f->filetype = FIO_TYPE_BD;
else if (S_ISCHR(sb.st_mode))