53653d743a
- Update to version 2.6.6 - rebase following patches: * man-db-2.6.3.dif * man-db-2.6.3-security4.dif * man-db-2.6.3-firefox.dif * man-db-2.6.3-zio.dif - enable checks OBS-URL: https://build.opensuse.org/request/show/229380 OBS-URL: https://build.opensuse.org/package/show/Base:System/man?expand=0&rev=54
41 lines
1012 B
Plaintext
41 lines
1012 B
Plaintext
---
|
|
src/man.c | 10 ++++++----
|
|
1 file changed, 6 insertions(+), 4 deletions(-)
|
|
|
|
diff --git src/man.c src/man.c
|
|
index 10bcd4f..5c164ad 100644
|
|
--- src/man.c
|
|
+++ src/man.c
|
|
@@ -2316,22 +2316,24 @@ static void format_display (pipeline *decomp,
|
|
if (!status)
|
|
break;
|
|
}
|
|
- if (!candidate)
|
|
- error (CHILD_FAIL, 0,
|
|
- "couldn't execute any browser from %s",
|
|
- html_pager);
|
|
free (browser_list);
|
|
if (chdir (old_cwd) == -1) {
|
|
error (0, errno, _("can't change to directory %s"),
|
|
old_cwd);
|
|
chdir ("/");
|
|
}
|
|
+ if (!status)
|
|
+ sleep(5); /* firefox runs into background to fast */
|
|
if (remove_directory (htmldir, 0) == -1)
|
|
error (0, errno, _("can't remove directory %s"),
|
|
htmldir);
|
|
free (htmlfile);
|
|
free (htmldir);
|
|
free (old_cwd);
|
|
+ if (!candidate)
|
|
+ error (CHILD_FAIL, 0,
|
|
+ "couldn't execute any browser from %s",
|
|
+ html_pager);
|
|
} else
|
|
#endif /* TROFF_IS_GROFF */
|
|
/* TODO: check format_cmd status too? */
|
|
--
|
|
1.8.4.5
|
|
|