Dont quit prematurely when writing from stdin...

This commit is contained in:
Søren Schmidt 2002-04-05 19:35:41 +00:00
parent 11bb39259c
commit 1e1404db2a

View File

@ -48,7 +48,7 @@
struct track_info {
int file;
char *file_name;
int file_size;
u_int file_size;
int block_size;
int block_type;
int pregap;
@ -304,6 +304,9 @@ add_track(char *name, int block_size, int block_type, int nogap)
err(EX_IOERR, "fstat(%s)", name);
tracks[notracks].file = file;
tracks[notracks].file_name = name;
if (file == STDIN_FILENO)
tracks[notracks].file_size = -1;
else
tracks[notracks].file_size = sb.st_size;
tracks[notracks].block_size = block_size;
tracks[notracks].block_type = block_type;