From b30d395ec288508f9c787af11d0f52e9df26e39f Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Sat, 6 Feb 2010 23:36:26 +0100 Subject: [PATCH] get_file_type() should use stat(), not lstat() We care about the device, not the potential link we are passed. Reported-by: "H. Tolley" Signed-off-by: Jens Axboe --- filesetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filesetup.c b/filesetup.c index cbef672e..c1889813 100644 --- a/filesetup.c +++ b/filesetup.c @@ -770,7 +770,7 @@ static void get_file_type(struct fio_file *f) 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)) -- 2.25.1