summaryrefslogtreecommitdiffstats
path: root/misc-utils/whereis.c
diff options
context:
space:
mode:
authorKarel Zak2015-02-02 11:15:47 +0100
committerKarel Zak2015-02-02 11:15:47 +0100
commitdb0ccb761dca25632a93d8fbe30af3ad96562bf5 (patch)
tree5c7c2deb045075a891b47dfb91ea306f01c5ca7e /misc-utils/whereis.c
parentsfdisk: actually translate the table headers by calling gettext() (diff)
downloadkernel-qcow2-util-linux-db0ccb761dca25632a93d8fbe30af3ad96562bf5.tar.gz
kernel-qcow2-util-linux-db0ccb761dca25632a93d8fbe30af3ad96562bf5.tar.xz
kernel-qcow2-util-linux-db0ccb761dca25632a93d8fbe30af3ad96562bf5.zip
whereis: lookup also info docs
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/whereis.c')
-rw-r--r--misc-utils/whereis.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/misc-utils/whereis.c b/misc-utils/whereis.c
index e6f5b4166..9fc5ee7ee 100644
--- a/misc-utils/whereis.c
+++ b/misc-utils/whereis.c
@@ -154,6 +154,7 @@ static const char *mandirs[] = {
"/usr/X11/man/*",
"/usr/TeX/man/*",
"/usr/interviews/man/mann",
+ "/usr/share/info",
NULL
};
@@ -193,8 +194,8 @@ static void __attribute__((__noreturn__)) usage(FILE *out)
fputs(USAGE_OPTIONS, out);
fputs(_(" -b search only for binaries\n"), out);
fputs(_(" -B <dirs> define binaries lookup path\n"), out);
- fputs(_(" -m search only for manuals\n"), out);
- fputs(_(" -M <dirs> define man lookup path\n"), out);
+ fputs(_(" -m search only for manuals and infos\n"), out);
+ fputs(_(" -M <dirs> define man and info lookup path\n"), out);
fputs(_(" -s search only for sources\n"), out);
fputs(_(" -S <dirs> define sources lookup path\n"), out);
fputs(_(" -f terminate <dirs> argument list\n"), out);
@@ -372,7 +373,7 @@ static int filename_equal(const char *cp, const char *dp)
{
int i = strlen(dp);
- /*DBG(printf("compare '%s' and '%s'", cp, dp));*/
+ DBG(SEARCH, ul_debug("compare '%s' and '%s'", cp, dp));
if (dp[0] == 's' && dp[1] == '.' && filename_equal(cp, dp + 2))
return 1;