mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-19 15:33:56 +00:00
Close this PR:
>Number: 364 >Category: bin >Synopsis: Interrupting man results in half-baked man page >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. Submitted by: John Capo <jc@irbs.com>
This commit is contained in:
parent
f465ace952
commit
4b1e0d1665
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=8088
@ -1063,7 +1063,7 @@ make_cat_file (path, man_file, cat_file)
|
||||
|
||||
status = do_system_command (command);
|
||||
|
||||
if (!status) {
|
||||
if (status <= 0) {
|
||||
fprintf(stderr, "Failed.\n");
|
||||
unlink(temp);
|
||||
exit(1);
|
||||
|
Loading…
Reference in New Issue
Block a user