Browse Source

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

tags/ZeroSevenEight
Thomas Schmitt 10 years ago
parent
commit
471a0d0058
2 changed files with 4 additions and 2 deletions
  1. +1
    -1
      cdrskin/cdrskin_timestamp.h
  2. +3
    -1
      libburn/file.c

+ 1
- 1
cdrskin/cdrskin_timestamp.h View File

@@ -1 +1 @@
#define Cdrskin_timestamP "2010.02.15.125922"
#define Cdrskin_timestamP "2010.02.16.194147"

+ 3
- 1
libburn/file.c View File

@@ -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;
}


Loading…
Cancel
Save