Commit 471a0d00 authored by Thomas Schmitt's avatar Thomas Schmitt

Bug fix on FreeBSD: Piped input was falsely attributed a small fixed size

parent f5b556db
#define Cdrskin_timestamP "2010.02.15.125922"
#define Cdrskin_timestamP "2010.02.16.194147"
......@@ -89,7 +89,9 @@ static off_t file_size(struct burn_source *source)
if (fs->fixed_size > 0)
return fs->fixed_size;
if (fstat(fs->datafd, &buf) == -1)
if (fstat(fs->datafd, &buf) != 0)
return (off_t) 0;
if ((buf.st_mode & S_IFMT) != S_IFREG)
return (off_t) 0;
return (off_t) buf.st_size;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment