mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
Merge pull request #12497 from xokdvium/fix/dont-override-default-man-search-paths
Don't override default man search paths
This commit is contained in:
commit
dfb5b2c7cb
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ std::filesystem::path getNixManDir()
|
||||||
void showManPage(const std::string & name)
|
void showManPage(const std::string & name)
|
||||||
{
|
{
|
||||||
restoreProcessContext();
|
restoreProcessContext();
|
||||||
setEnv("MANPATH", getNixManDir().c_str());
|
setEnv("MANPATH", (getNixManDir().string() + ":").c_str());
|
||||||
execlp("man", "man", name.c_str(), nullptr);
|
execlp("man", "man", name.c_str(), nullptr);
|
||||||
if (errno == ENOENT) {
|
if (errno == ENOENT) {
|
||||||
// Not SysError because we don't want to suffix the errno, aka No such file or directory.
|
// Not SysError because we don't want to suffix the errno, aka No such file or directory.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue