Migrate machine and hostname identification from fishd.cpp to

env_universal_common.cpp, so that fish can use it
This commit is contained in:
ridiculousfish
2014-04-25 17:44:49 -07:00
parent a475dd15e6
commit bf14668b2a
5 changed files with 141 additions and 116 deletions

View File

@@ -495,3 +495,14 @@ void env_universal_get_names(wcstring_list_t &lst,
show_exported,
show_unexported);
}
bool synchronizes_via_fishd()
{
if (program_name && ! wcscmp(program_name, L"fishd"))
{
/* fishd always wants to use fishd */
return true;
}
return false;
}