From 1e1404db2a7b0fee36475fb07508799814d1af76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Schmidt?= Date: Fri, 5 Apr 2002 19:35:41 +0000 Subject: [PATCH] Dont quit prematurely when writing from stdin... --- usr.sbin/burncd/burncd.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/usr.sbin/burncd/burncd.c b/usr.sbin/burncd/burncd.c index 5b74029b0442..051d53413e1a 100644 --- a/usr.sbin/burncd/burncd.c +++ b/usr.sbin/burncd/burncd.c @@ -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,7 +304,10 @@ 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; - tracks[notracks].file_size = sb.st_size; + 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;