/[pkgs]/rpms/man/devel/man-1.6f-tty.patch
ViewVC logotype

Contents of /rpms/man/devel/man-1.6f-tty.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Mon Jun 2 12:10:21 2008 UTC (17 months, 3 weeks ago) by varekova
Branch: MAIN
CVS Tags: man-1_6f-13_fc11, F-12-split, man-1_6f-21_fc12, F-10-split, man-1_6f-19_fc12, man-1_6f-11_fc10, F-11-split, man-1_6f-18_fc12, man-1_6f-10_fc10, man-1_6f-9_fc10, man-1_6f-22_fc12, man-1_6f-15_fc11, man-1_6f-20_fc12, man-1_6f-16_fc11, man-1_6f-17_fc11, man-1_6f-8_fc10, man-1_6f-7_fc10, man-1_6f-12_fc11, man-1_6f-23_fc13, man-1_6f-14_fc11, HEAD
File MIME type: text/x-patch
- Resolves: #448049
  Error messages will exhibit when quit from mount man page
1 diff -up man-1.6f/src/man.c.pom man-1.6f/src/man.c
2 --- man-1.6f/src/man.c.pom 2008-06-02 13:52:45.000000000 +0200
3 +++ man-1.6f/src/man.c 2008-06-02 13:55:08.000000000 +0200
4 @@ -923,8 +923,11 @@ display_man_file(const char *path, const
5 if (do_troff)
6 command = my_xsprintf ("(cd \"%S\" && %s)", path, roff_command);
7 else
8 - command = my_xsprintf ("(cd \"%S\" && %s | %s)", path,
9 + if (isatty(1))
10 + command = my_xsprintf ("(cd \"%S\" && %s | %s)", path,
11 roff_command, pager);
12 + else
13 + command = my_xsprintf ("(cd \"%S\" && %s)", path, roff_command);
14
15 return !do_system_command (command, 0);
16 }

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2