From 0f255cd8af26286d1c83ef4c031ecf3e2361b8aa Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Wed, 26 Nov 2008 22:27:07 +0000 Subject: Various fixes. --- mdocml.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mdocml.c') diff --git a/mdocml.c b/mdocml.c index 9d48fee7..d70aad13 100644 --- a/mdocml.c +++ b/mdocml.c @@ -1,4 +1,4 @@ -/* $Id: mdocml.c,v 1.11 2008/11/25 12:14:02 kristaps Exp $ */ +/* $Id: mdocml.c,v 1.12 2008/11/26 22:27:07 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -184,7 +184,7 @@ begin_bufs(const struct md_args *args, if (-1 == fstat(in->fd, &stin)) { warn("%s", in->name); return(1); - } else if (0 == stin.st_size) { + } else if (STDIN_FILENO != in->fd && 0 == stin.st_size) { warnx("%s: empty file", in->name); return(1); } else if (-1 == fstat(out->fd, &stout)) { -- cgit v1.2.3