mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-10-03 22:45:26 +00:00
Wed, 25 Feb 1998 21:41:18 +0100 [Vincent]
- if man:/usr/man/manX/foo.X doesn't exist, check if man:/usr/man/manX/foo.X.gz does.
This commit is contained in:
parent
966e17c168
commit
adfb743a83
|
@ -3640,7 +3640,15 @@ static char *search_manpath(char *name)
|
|||
}
|
||||
strmaxcpy(smfbuf, manpath[i], LARGE_STR_MAX);
|
||||
strmaxcat(smfbuf, name, LARGE_STR_MAX);
|
||||
if (stat(smfbuf, &stbuf) !=-1) return smfbuf;
|
||||
if (stat(smfbuf, &stbuf) !=-1) {
|
||||
return smfbuf;
|
||||
} else {
|
||||
strmaxcpy(smfbuf, manpath[i], LARGE_STR_MAX);
|
||||
strmaxcat(smfbuf, name, LARGE_STR_MAX);
|
||||
strmaxcat(smfbuf, ".gz", LARGE_STR_MAX);
|
||||
if (stat(smfbuf, &stbuf) !=-1)
|
||||
return smfbuf;
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue