diff options
author | Karel Zak | 2006-12-07 00:25:41 +0100 |
---|---|---|
committer | Karel Zak | 2006-12-07 00:25:41 +0100 |
commit | eb63b9b8f4cecb34c2478282567862bc48ef256d (patch) | |
tree | 99243f8eecb44c2bb6a559982b99c680fcb649e7 /text-utils/more.c | |
parent | Imported from util-linux-2.9v tarball. (diff) | |
download | kernel-qcow2-util-linux-eb63b9b8f4cecb34c2478282567862bc48ef256d.tar.gz kernel-qcow2-util-linux-eb63b9b8f4cecb34c2478282567862bc48ef256d.tar.xz kernel-qcow2-util-linux-eb63b9b8f4cecb34c2478282567862bc48ef256d.zip |
Imported from util-linux-2.10f tarball.
Diffstat (limited to 'text-utils/more.c')
-rw-r--r-- | text-utils/more.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/text-utils/more.c b/text-utils/more.c index 4c2a179b6..771c8d2ae 100644 --- a/text-utils/more.c +++ b/text-utils/more.c @@ -32,9 +32,10 @@ - more nls translatable strings 1999-05-09 aeb - applied a RedHat patch (setjmp->sigsetjmp); without it a second ^Z would fail. - 1999-05-09 aeb - undone Kars' work, so that more works without libcurses - (and hence can be in /bin with libcurses being in /usr/lib which may not - be mounted). However, when termcap is not present curses can still be used. + 1999-05-09 aeb - undone Kars' work, so that more works without + libcurses (and hence can be in /bin with libcurses being in /usr/lib + which may not be mounted). However, when termcap is not present curses + can still be used. */ #include <stdio.h> @@ -56,7 +57,7 @@ #include <locale.h> #include "nls.h" -#define HELPFILE "/usr/lib/more.help" +/* #define MOREHELPFILE "/usr/lib/more.help" */ #define VI "/usr/bin/vi" #define Fopen(s,m) (Currline = 0,file_pos=0,fopen(s,m)) @@ -1259,7 +1260,7 @@ int command (char *filename, register FILE *f) break; case '?': case 'h': - if ((helpf = fopen (HELPFILE, "r")) == NULL) + if ((helpf = fopen (MOREHELPFILE, "r")) == NULL) error (_("Can't open help file")); if (noscroll) doclear (); copy_file (helpf); |