David Adam
2aac8e5dde
Further fixes to universal variable server socket management
...
- 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.
2014-08-07 18:53:16 +08:00
David Adam
209d8b7f2f
Fix for CVE-2014-2905 - fishd restart required.
...
- 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.
2014-08-07 18:53:16 +08:00
David Adam
26663e042f
Revert "Check effective credentials of socket peers"
...
This reverts commit aea9ad4965
.
Just checking the credentials of the peer turns out to be
insufficient.
See https://github.com/fish-shell/fish-shell/issues/1436 .
2014-08-07 18:52:27 +08:00
David Adam
aea9ad4965
Check effective credentials of socket peers
...
Fix for CVE-2014-2905.
Code for getpeereid() on non-BSD systems imported from the PostgreSQL
project under a BSD-style license.
2014-04-27 12:23:13 +08:00
ridiculousfish
437b4397b9
Mark stdin as nonblocking if we get EWOULDBLOCK, and before handing it off to child processes when either starting them or moving them to the foreground.
...
https://github.com/fish-shell/fish-shell/issues/176
2013-04-07 12:40:08 -07:00
ridiculousfish
dc54ec5b2b
Migrate connection_t from storing a huge buffer to a std::vector
2013-02-16 01:28:46 -08:00
ridiculousfish
b682c4102e
Eliminate next pointer from connection_t, turn connections into a std::list
2013-02-16 00:32:15 -08:00
ridiculousfish
6d522e6ed6
First round of fixes based on cppcheck
...
https://github.com/fish-shell/fish-shell/issues/575
2013-02-16 00:02:40 -08:00
ridiculousfish
2a7fc9c3a5
Clean up env_var_table_t. Switch from storing var_uni_entry_t* to var_uni_entry_t. Various other cleanups.
2013-02-11 23:16:50 -08:00
ridiculousfish
1879dc4b59
Initial set of changes working to make fish robust against running out of file descriptors
2013-01-30 02:22:38 -08:00
ridiculousfish
e07de09460
Big cleanup of env_set. Changed var_table_t to use direct var_entry_t instead of pointers. Changed some ints to bools.
2013-01-19 13:32:06 -08:00
ridiculousfish
edb973fadc
Hack around xdm's dumb assumption that the login shell is POSIX compliant so we no longer kill OpenSUSE
...
https://github.com/fish-shell/fish-shell/issues/367
Also fix some formatting
2013-01-04 13:09:01 -08:00
ridiculousfish
705793eae6
Make fish more robust when multiple instances are started at once
2012-12-27 20:26:16 -08:00
ridiculousfish
9992b8eb0e
Apply new indentation, brace, and whitespace style
2012-11-18 16:30:30 -08:00
Łukasz Niemier
47df1ae40a
Remove trailing whitespaces and change tabs to spaces
2012-11-18 11:23:22 +01:00
ridiculousfish
51de26960c
Make escaping consistent for fish <-> fishd protocol
...
Fix fork guards to work in fishd
https://github.com/fish-shell/fish-shell/issues/339
2012-10-08 14:47:25 -07:00
ridiculousfish
175249b455
Adopt wcstring in env_set
2012-05-09 03:06:10 -07:00
ridiculousfish
268fb37517
Cleanup proc_had_barrier
...
Ensure we don't try to do a universal barrier off of the main thread
2012-03-31 15:33:34 -07:00
ridiculousfish
79a22b1f8d
Replace some string_buffer_t
2012-03-03 23:01:42 -08:00
Siteshwar Vashisht
8232857d07
Modified env_get_string() to accept wcstring instead of wchar_t*.
2012-02-24 00:58:01 +05:30
ridiculousfish
2206e221bd
Removed array_list_t (!)
2012-02-21 10:47:21 -08:00
Siteshwar Vashisht
6e58c9f7c8
Switched to std::map instead of hash_table_t in env.cpp and env_universal_common.cpp.
2012-02-18 00:25:29 +05:30
ridiculousfish
46fa2dd2f0
Migration of screen away from ad-hoc lists
2011-12-27 18:41:38 -08:00
ridiculousfish
7c7aba1202
Fix to migrate the universal variable server off of dyn_queue_t
2011-12-26 21:39:08 -08:00
ridiculousfish
8d2f107d61
Some changes to migrate towards C++ and a multithreaded model
2011-12-26 19:18:46 -08:00
ridiculousfish
3f16ace678
Initial C++ conversion
2011-12-26 19:11:54 -08:00