aboutsummaryrefslogtreecommitdiffhomepage
path: root/fishd.cpp
Commit message (Collapse)AuthorAge
* Use a symlink instead of a hard link for fishd.socket compatibility pathGravatar ridiculousfish2015-02-09
| | | | | On OS X, work around filesystem corruption triggered by having hard links in /tmp, by using a symlink instead.
* Ignore SIGPIPE in fishd. Fixes #1084Gravatar ridiculousfish2014-09-24
|
* Further fixes to universal variable server socket managementGravatar David Adam2014-08-04
| | | | | | | - Change fishd_path to std::string - Warn, rather than exiting with an error, if the universal variable server path is not available, and provide more useful advice. - Export the new __fishd_runtime_dir variable.
* Fix for CVE-2014-2905 - fishd restart required.Gravatar David Adam2014-08-03
| | | | | | | | | | | | | | | | - Use a secure path for sockets (some code used under license from tmux). - Provide the secure path in the environment as $__fish_runtime_dir. - Link the new path to the old path to ease migration from earlier versions. Closes #1359. After installing fish built from or after this commit, you MUST terminate all running fishd processes (`killall fishd`, `pkill fishd` or similar). Distributors are encouraged to do this from within their packaging scripts. fishd will restart automatically, and no data should be lost.
* Revert "Check effective credentials of socket peers"Gravatar David Adam2014-07-31
| | | | | | | This reverts commit 8412c867a501e3a68e55fef6215e86d3ac9f617b. Just checking the credentials of the peer turns out to be insufficient. See https://github.com/fish-shell/fish-shell/issues/1436.
* Check effective credentials of socket peersGravatar David Adam2014-04-27
| | | | | | | Fix for CVE-2014-2905. Code for getpeereid() on non-BSD systems imported from the PostgreSQL project under a BSD-style license.
* Remove problems with fishd under Cygwin.Gravatar Konrad Borowski2013-08-12
| | | | | | | | | Yes, it's an awful hack, but IPC support (and fork support as well - even FAQ mentions that, and suggests "restarting process" to solve the problem (http://cygwin.com/faq/faq.html#faq.using.fixing-fork-failures), but let's ignore that for now) is simply broken in Cygwin. Having to try to do exactly same thing in Cygwin, just so perhaps it will work is a completely normal thing (not). I love Windows.
* Generate version numbers dynamicallyGravatar David Adam (zanchey)2013-08-11
| | | | | | | | This commit hooks the Makefile up to generate a FISH_BUILD_VERSION symbol and kills off PACKAGE_VERSION in .cpp files. It also modifies the tarball generation script to add the necessary version file for releases.
* Mark stdin as nonblocking if we get EWOULDBLOCK, and before handing it off ↵Gravatar ridiculousfish2013-04-07
| | | | | | to child processes when either starting them or moving them to the foreground. https://github.com/fish-shell/fish-shell/issues/176
* Large set of changes to how PATH is handled. Changed fish to no longer ↵Gravatar ridiculousfish2013-02-19
| | | | | | modify PATH in share/config.fish. Introduced variable fish_user_paths, and a glue function __fish_reconstruct_path that splices together PATH with fish_user_paths. Changed fish to no longer validate changes to PATH unless the paths are new (i.e. don't recheck what's already there). Modified certain sets to store const wchar_t instead of wcstring to save a few allocations. https://github.com/fish-shell/fish-shell/issues/527
* More cleanup based on static analysisGravatar ridiculousfish2013-02-16
| | | | https://github.com/fish-shell/fish-shell/issues/575
* Eliminate next pointer from connection_t, turn connections into a std::listGravatar ridiculousfish2013-02-16
|
* First round of fixes based on cppcheckGravatar ridiculousfish2013-02-16
| | | | https://github.com/fish-shell/fish-shell/issues/575
* Clean up env_var_table_t. Switch from storing var_uni_entry_t* to ↵Gravatar ridiculousfish2013-02-11
| | | | var_uni_entry_t. Various other cleanups.
* Make fishd base its variable files on the MAC address instead of hostnameGravatar ridiculousfish2013-01-08
| | | | Fixes https://github.com/fish-shell/fish-shell/issues/183
* Eliminate str2wcsGravatar ridiculousfish2012-12-19
|
* Fix indentation of switch statementsGravatar ridiculousfish2012-11-19
|
* Apply new indentation, brace, and whitespace styleGravatar ridiculousfish2012-11-18
|
* Remove trailing whitespaces and change tabs to spacesGravatar Łukasz Niemier2012-11-18
|
* Make escaping consistent for fish <-> fishd protocolGravatar ridiculousfish2012-10-08
| | | | | Fix fork guards to work in fishd https://github.com/fish-shell/fish-shell/issues/339
* Additional warnings cleanup, effective C++ violations, dead code removalGravatar ridiculousfish2012-08-05
|
* Cleaned up lots of typecasts, simplified some string handlingGravatar ridiculousfish2012-08-04
|
* Lots of work towards making fish build without warnings on Mountain Lion, ↵Gravatar ridiculousfish2012-08-04
| | | | mostly in terms of using size_t instead of int
* Lots of modernization changedGravatar ridiculousfish2012-05-09
| | | | Removed wcsdupcat
* Fix lots of bugs related to the static analyzerGravatar ridiculousfish2012-03-26
| | | | Improved how screen.cpp interacts with output_set_writer()
* Added some missing calls to setup_fork_guards() in utilities.Gravatar ridiculousfish2012-03-07
| | | | Made echo a builtin
* Some initial changes to use CLO_EXEC, with an eye towards some day using it ↵Gravatar Peter Ammon2012-03-02
| | | | correctly.
* Final removal of halloc. It's like Christmas Morning.Gravatar ridiculousfish2012-02-09
|
* More const and signed correctness. Warnings now fit on one page!Gravatar Peter Ammon2012-01-14
|
* Improved const-correctness, eliminating warnings.Gravatar Peter Ammon2012-01-14
| | | | Migrated some int to size_t
* Incorporate Siteshwar's patch for building on LinuxGravatar ridiculousfish2012-01-05
|
* Fixed a build failureGravatar ridiculousfish2011-12-26
| | | | Added a thread assertion to function.cpp
* Migrated some more data structures to the STL. Removed some ad-hoc data ↵Gravatar ridiculousfish2011-12-26
| | | | structure implementations.
* Some changes to migrate towards C++ and a multithreaded modelGravatar ridiculousfish2011-12-26
|
* Initial C++ conversionGravatar ridiculousfish2011-12-26