52768 Commits

Author SHA1 Message Date
Adrien Destugues
0b90f99bc3 Mail server: fix disabling notifications
* The default notifier didn't always take the setting into account.
* The mail server was not using the setting from the settings file and
instead waiting for a message that wasn't sent anywhere.

Fixes #10852.
hrev48678
2015-01-14 16:27:33 +01:00
Adrien Destugues
d8853b4953 Add mail provider data for hotmail.com.
Servers only accept SSL connections, so the MX entry isn't enough to
autoconfigure. Moreover, hotmail.com MX still points to mx3.hotmail.com,
while outlook.com suggests to use pop3.live.com.
2015-01-14 15:07:56 +01:00
Adrien Destugues
6394d0e838 Mail Preferences: use correct message constant
Would crash the SMTP add-on as the message sent would end up trying to
toggle a non-existing checkbox.
2015-01-14 14:01:55 +01:00
Adrien Destugues
1736cb1d59 driver_settings: fix allocating an empty settings
I misread the condition and broke this in 0687a01. Thanks to Axel for
reviewing!
* Refactor the code again to move all the error checking at the top of
the function, to make it easier to read.
hrev48677
2015-01-14 13:39:35 +01:00
Adrien Destugues
bcb793d37b Fix driver_settings in kernel mode outside of drivers.
The API allows to create driver settings which are not added to the
global list, however those were left partially uninitialized, and there
was no way to cleanly delete them.

Tag such unattached settings with a ref_count of -1, and have
delete_driver_settings check for this and handle the case correctly.

Note: #10494 comment 2 says the settings for packagefs shouldn't be
added to the kernel driver settings list, which is why I went with this
solution. An alternative would be always using the list and the
reference counting, but I don't know what the consequences are.

Fixes #10494.
hrev48676
2015-01-14 11:53:19 +01:00
Adrien Destugues
0687a01b53 driver_settings: don't strdup(NULL)
* This is not allowed by strdup POSIX specs and GCC may use its builtin
strdup which doesn't check for it.
* also refactor parse_driver_settings_string to create the
settings_handle using settings_new, to reduce code duplication.
2015-01-14 11:53:18 +01:00
PulkoMandy
98731302d8 fssh_api_wrapper: fix build on non-Haiku.
* I'm not sure why strings.h needs to be included before <new>, but it
wouldn't work otherwise.
hrev48675
2015-01-14 10:16:32 +01:00
Adrien Destugues
6e35da8308 WebPositive: parse "host:port" as a valid URL
* Web+ would not understand this and do a search engine query instead.
* Fixes #11726
* Also add some comments to _SmartURLHandler to make it clearer how it
handles URLs.
hrev48674
2015-01-14 10:16:56 +01:00
Adrien Destugues
e95068dfa8 ext2: fix logic error.
* Thanks to Ingo and Jérôme for review.
* The Remove can't fail after a succesful Lookup so don't check for that
* Return B_OK on success
hrev48673
2015-01-13 22:53:37 +01:00
Humdinger
89678b6b5a Updated youtube-dl package. hrev48672 2015-01-13 19:12:00 +01:00
Adrien Destugues
749bd21c45 rootfs: fs_shel build fix attempt.
Sorry, I can't test all cases when building from Haiku.

Including <new> after the fs shell wrapper makes the compiler fail
because new needs a size_t argument (not an fssh_size_t). But including
it before also fails because it includes C++ typedefs without the fssh
wrapper, leading to conflicts.

Undefining size_t just for the include of <new> isn't very clean, but
seems to work. new gets a size_t argument as it should and the other
typedefs aren't conflicting.
hrev48671
2015-01-13 16:21:14 +01:00
Adrien Destugues
a7d444d145 Remove old block cache implementation
This was not used anywhere except the tests written for it (which is
also removed).
hrev48670
2015-01-13 15:48:59 +01:00
Adrien Destugues
ace74964f1 Remove khash from the sources.
Fixes #9552.
2015-01-13 15:48:58 +01:00
Adrien Destugues
bb3092b298 rootfs: convert to BOpenHashTable.
* Add an fs-shell compatible version of BOpenHashTable in the fs_shell
to keep it working. The header is renamed to KOpenHashTable to avoid a
conflict with the OpenHashTable.h available in private/shared which is
not API compatible.
2015-01-13 15:48:58 +01:00
Adrien Destugues
9d053f5975 BOpenHashTable: document some subtleties
Mainly the interaction of resizing the table with iterators.
2015-01-13 15:48:57 +01:00
Adrien Destugues
9d1c3b8d4b block cache: convert to BOpenHashTable. 2015-01-13 15:48:56 +01:00
Rene Gollent
be60c04c89 modules: Fix #11746.
- When normalizing paths of the preloaded modules to their final mounted
  path, remove them from the hash table before updating their path. Otherwise,
  the remove would fail due to the hash no longer matching, which in turn
  would cause the code in question to introduce an infinite loop in the
  hash table's internal link list due to manually rewriting the next link.
hrev48669
2015-01-12 19:08:24 -05:00
Hamish Morrison
683cf2ff58 BMediaRecorder: fix a few issues, fix style, remove unused SoundUtils
* Use the preferred time source (GetTimeSource) for the node
* Fix node releasing when creating the connection fails
* Add virtual slots and padding
* Refactor _Connect method
hrev48668
2015-01-12 18:31:27 +00:00
Barrett
739fd34cf5 Replace SoundCounsumer with modified BMediaRecorder.
Signed-off-by: Hamish Morrison <hamishm53@gmail.com>
2015-01-12 18:31:20 +00:00
Adrien Destugues
3395fdcd6a gcc4 build fix.
* offsetof is not allowed on non-POD types so we need to use
offset_of_member (gcc2 accepts offsetof, and C++11 relaxed the
constraints on where it is allowed so it should work there too)
* we have offset_of_member as a workaround until we switch to C++11,
move it from khash (which is soon to be removed) to list.h which is the
other place where it is used (for this one single call in our whole
codebase)

Also fix a typo in vfs.cpp.
hrev48667
2015-01-12 19:04:33 +01:00
Adrien Destugues
63fdcb8e7e ext2: migrate to BOpenHashTable. hrev48666 2015-01-12 18:23:46 +01:00
Adrien Destugues
f9defd4526 VFS: migrate to BOpenHashTable. 2015-01-12 18:23:45 +01:00
Adrien Destugues
6235b4967b More useless inclusions of khash.h 2015-01-12 18:23:45 +01:00
Adrien Destugues
79b12613f5 legacy_drivers: convert to BOpenHashTable. 2015-01-12 18:23:44 +01:00
Adrien Destugues
887be0ac6a kernel/module: fully convert to BOpenHashTable 2015-01-12 18:23:44 +01:00
Adrien Destugues
c921f4a7a1 HIG: replace "Options" with "Settings"
* The HIG uses "Options" while all bundled Haiku apps consistently use
"Settings". Make the HIG match the real world on this.
* Replace ... with the correct … for menu item samples.
* Some 80-column formatting on the touched paragraphs.

Thanks to Janus for spotting this in #11733.
hrev48665
2015-01-12 11:47:32 +01:00
Adrien Destugues
756ce47ea9 launch_speedup: convert to BOpenHashTable. hrev48664 2015-01-12 10:13:57 +01:00
Adrien Destugues
c4718ea973 Missing std::nothrow on new
Forgot to add this when migrating to BOpenHashTable.
2015-01-12 09:46:40 +01:00
Adrien Destugues
b8039c141e Add RCS package. hrev48663 2015-01-11 18:18:05 +01:00
Stephan Aßmus
57e51fff75 HaikuDepot: Fix failing to show some packages after refreshing.
Since the package information is refreshed asynchronously, some packages
may fit the current filter parameters. Check for this situation more
generically in the MSG_PACKAGE_CHANGED notification. Before, it was only
done for prominent packages to make them appear in the Featured packages
view. The problem was visible by for example selecting a category and then
refreshing packages. Many of the previously shown packages would be missing
and magically appear when changing filter parameters slightly and back
to what they were.
hrev48662
2015-01-11 17:22:17 +01:00
Stephan Aßmus
1b5e65f587 HaikuDepot: Adopt selected Depot/Category...
... in FilterView::AdoptModel(). Otherwise the selection is reset
after refreshing packages from the Tools menu. Fixes #10990.
2015-01-11 17:21:19 +01:00
Stephan Aßmus
15eb4c43c9 HaikuDepot: Added RemovePackage() method...
... to PackagedListView.
2015-01-11 17:21:00 +01:00
Stephan Aßmus
18b941b46c HaikuDepot: Added RemovePackage() method...
... to FeaturedPackagesView.
2015-01-11 17:20:22 +01:00
Stephan Aßmus
fed7859a71 HaikuDepot: Quitting while contents were populated dead-locked.
Fixes #11737
hrev48661
2015-01-11 16:26:15 +01:00
kushalsingh007
a15d13d9bb ActivityMonitor: use string_for_rate
* Network speed was previously always shown as Kb/s, now it can switch
to Mb/s when needed.
* Fixes #11053.

Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>
hrev48660
2015-01-11 12:47:14 +01:00
Stephan Aßmus
2098842047 HaikuDepot: Temporary solution for empty contents tab
Display a message (quick solution: a BStringItem) that package contents are
not available for remote packages.
hrev48659
2015-01-11 00:23:35 +01:00
Stephan Aßmus
788144656e HaikuDepot: Fixed package content extraction
When trying to find a matching parent item, we cannot rely on cached
pointers to BPackageEntries, since those are re-used per entry level
from the BPackageReader. Instead, we build the package entry path as
a string and store that with the list item.

Removed debug output.
hrev48658
2015-01-11 00:12:01 +01:00
Stephan Aßmus
84316965ed HaikuDepot: Populate package contents asynchronously
Also remove debugging output with O(n*n) runtime. The problem for which I
write this is already understood, but it is not yet fixed.
hrev48657
2015-01-10 23:39:27 +01:00
Stephan Aßmus
09f8290534 HaikuDepot: Always init the thread ids...
... also in case creating the semaphores fails.
2015-01-10 23:39:27 +01:00
Stephan Aßmus
05bffa62e6 HaikuDepot: Check thread ids before waiting for threads.
These threads are not created if creating a semaphore failed, so
it's not fixing a bug which anyone has likely encountered.
2015-01-10 23:39:26 +01:00
Jérôme Duval
d52ab7d045 disable debug build for userland_server
* it fails on gcc2 with inline functions requiring kernel symbols.
hrev48656
2015-01-10 23:36:43 +01:00
Jérôme Duval
683d99b0a6 app_server: fix build with Freetype 2.5.5. hrev48655 2015-01-10 19:35:40 +01:00
Jérôme Duval
85d8fa4988 Updated bash packages. hrev48654 2015-01-10 18:11:35 +01:00
Jérôme Duval
2e386f20b7 Updated freetype packages hrev48653 2015-01-10 17:20:31 +01:00
Jérôme Duval
6c1c9aa2b3 openssl: security update
Fix for CVE-2014-3571
Fix for CVE-2015-0206
Fix for CVE-2014-3569
Fix for CVE-2014-3572
Fix for CVE-2015-0204
Fix for CVE-2015-0205
Fix for CVE-2014-8275
Fix for CVE-2014-3570
hrev48652
2015-01-10 14:34:20 +01:00
Fredrik Holmqvist
1c355970ab Only add global handlers on debug.
It is only useful for ACPI devs. If the need ever arise it can
easily be reworked to be enabled / disabled at runtime.
For everyone else it was just syslog garbage.
hrev48651
2015-01-10 12:58:47 +01:00
Adrien Destugues
18d6754608 Remove leftover varialbe declaration.
Thanks to Oliver for watching.
hrev48650
2015-01-10 11:47:38 +01:00
Adrien Destugues
c50131cd6a Complete and rework BJoystick docs. hrev48649 2015-01-10 11:44:58 +01:00
mandar
c8e6696716 Add documentation for the Open method in the joystick class. 2015-01-10 11:31:02 +01:00
Adrien Destugues
d1644d7e4f Fix another misuse of BOpenHashTable::Iterator
* This ioctl is used only in the arp command, but still we should keep
it working
* Similar to the problem in elf.cpp, this relied on entry being set to
NULL when trying to iterate after the last element.
hrev48648
2015-01-10 10:48:43 +01:00