Avoid strange error message in case of corrupted manual page files.
This commit is contained in:
parent
c8dbbf25b2
commit
04a7d6cb3e
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: makewhatis.c,v 1.16 2001/04/10 21:00:00 tron Exp $ */
|
/* $NetBSD: makewhatis.c,v 1.17 2001/11/23 13:18:54 tron Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||||
|
@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1999 The NetBSD Foundation, Inc.\n\
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
__RCSID("$NetBSD: makewhatis.c,v 1.16 2001/04/10 21:00:00 tron Exp $");
|
__RCSID("$NetBSD: makewhatis.c,v 1.17 2001/11/23 13:18:54 tron Exp $");
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
@ -510,7 +510,6 @@ nroff(gzFile *in)
|
||||||
if ((bytes < 0) ||
|
if ((bytes < 0) ||
|
||||||
(lseek(tempfd, 0, SEEK_SET) < 0) ||
|
(lseek(tempfd, 0, SEEK_SET) < 0) ||
|
||||||
(pipe(pipefd) < 0)) {
|
(pipe(pipefd) < 0)) {
|
||||||
perror(getprogname());
|
|
||||||
(void)close(tempfd);
|
(void)close(tempfd);
|
||||||
(void)unlink(tempname);
|
(void)unlink(tempname);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue