Date: Wed, 26 Apr 1995 09:10:01 -0700 From: John Capo <jc@irbs.com> To: freebsd-bugs Subject: bin/364: Interrupting man results in half-baked man page Message-ID: <199504261610.JAA15400@freefall.cdrom.com> In-Reply-To: Your message of Wed, 26 Apr 1995 12:04:40 -0400 <199504261604.MAA01894@irbs.irbs.com>
index | next in thread | previous in thread | raw e-mail
>Number: 364
>Category: bin
>Synopsis: Interrupting man results in half-baked man page
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs (FreeBSD bugs mailing list)
>State: open
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Apr 26 09:10:01 1995
>Originator: John Capo
>Organization:
IRBS Engineering
>Release: FreeBSD 2.1-current i386
>Environment:
>Description:
Interrupting man while it is waiting for the page to be formatted
results in a zero length file or a half-baked file.
>How-To-Repeat:
Inetrrupt man while it is formatting a page.
>Fix:
Pay more attention to the return value from the system command.
*** gnu/usr.bin/man/man/man.c.orig Tue Apr 11 22:09:32 1995
--- gnu/usr.bin/man/man/man.c Wed Apr 26 11:50:16 1995
***************
*** 1063,1069 ****
status = do_system_command (command);
! if (!status) {
fprintf(stderr, "Failed.\n");
unlink(temp);
exit(1);
--- 1063,1069 ----
status = do_system_command (command);
! if (status <= 0) {
fprintf(stderr, "Failed.\n");
unlink(temp);
exit(1);
>Audit-Trail:
>Unformatted:
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504261610.JAA15400>
