Commit Graph

59178 Commits

Author SHA1 Message Date
Michael Lotz
14b0498cfa arp: Trim the reply buffer to the filled length.
We reuse the incoming request buffer to send our reply. We did however
not trim that buffer to the length we actually filled out, allowing
any extraneous incoming data to remain in that buffer and be sent back.
2018-11-17 00:34:49 +01:00
Alexander von Gluck IV
76392ecac7 3rdparty/configure.py: Add warning to generated BuildConfig
Change-Id: I00110260efebf07aef81bc618d7e07c73aa07fa4
2018-11-16 16:19:28 -06:00
Humdinger
1eb0122fc7 pkgman: a bit more detail on usage
I forgot that there are special usage texts for the individual
pkgman commands. Make that a bit clearer in the usage text now.

Change-Id: Ia6641b2aa20d03a67d9dedddabf3a1f34d324322
Reviewed-on: https://review.haiku-os.org/702
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-11-16 16:11:50 +00:00
Augustin Cavalier
a5297c5905 build: Add SYS:NAME attribute to all folders handled by Tracker.
Mail and Deskbar folders are still TODO.
2018-11-15 22:36:35 -05:00
Augustin Cavalier
9283f47bec ImageRules: Fix adding directory attrs.
There is no variable "dir" in this rule, only "directory".
2018-11-15 22:23:06 -05:00
Augustin Cavalier
795f1571b3 Move data/image_directories to src/data/directory_attrs.
These data files are used in the generation of build targets,
so moving them to src/data alongside the package_infos & etc.
makes more sense.

They don't seem to be activated properly though (I added some tracing
to try and figure out why they aren't used but haven't gotten to the
bottom of that yet.)
2018-11-15 21:20:24 -05:00
Augustin Cavalier
ee355c32c7 packages/Haiku: Remove liblocale.so -> libbe.so symlink.
It has not been in /system/develop/lib for a long time, and all
applications have been rebuilt multiple times since PM, so this
isn't needed anymore.
2018-11-15 20:43:42 -05:00
Augustin Cavalier
17640964db build_haiku_image: Remove obsolete copyright concatenator.
All third-party software is now packaged and we ship the licenses
directory.
2018-11-15 20:32:22 -05:00
Augustin Cavalier
a4dcbfcef1 Mail: Detect URLs by parsing ahead instead of checking every character.
This is a *massive* performance improvement; some longer emails that
took 45+ seconds to load before now take < 1 second, at the cost
of a completely rewritten URL detector. This means some URLs that
were detected before (e.g. anything starting with "www", emails
without "mailto:", etc.) are now not detected, though support
for detecting them could be reinstated in the future.

Fixes #4816.
2018-11-15 20:21:35 -05:00
Alexander von Gluck IV
4d182b9b57 3rdparty/configure.py: Allow infinite architecture additions
Change-Id: Icdc2cb6cd63a1cd425f71d05d2f6dec72c0a3a07
2018-11-15 16:32:22 -06:00
Alexander von Gluck IV
cf62f22ad0 3rdparty/configure.py: Fill out BuildConfig and Jamfile
Change-Id: I57eb5081710b0b8b596a997a460d4d607e97d543
2018-11-15 14:45:30 -06:00
Alexander von Gluck IV
535dbc1368 3rdparty/configure.py: Experimental python configure script
Change-Id: I91c3fc194ca8e8c870f6f1b27c747d9e4d468ecc
2018-11-15 13:36:29 -06:00
Murai Takashi
f54b080275 fwcontrol: Fix PVS 1655
Fix char pointer *nodestr was compared with the '\0' value.

Change-Id: Ie6b0beb8b94b35d6824ab205688ce1a54bcd6a74
Reviewed-on: https://review.haiku-os.org/688
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2018-11-15 19:14:19 +00:00
Murai Takashi
63757dbb24 TGATranslator: Fix PVS 2332-2337, 2341-2346
* Use new(std::nothrow) so that NULL check for allocated memory makes sense.
* Other new() without NULL check is replaced with new(std::nothrow).

Change-Id: Ida53be936d14ce63b3bc60442408ec5044df5344
Reviewed-on: https://review.haiku-os.org/699
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Reviewed-by: Stephan Aßmus <superstippi@gmx.de>
2018-11-15 08:22:48 +00:00
Peter Kosyh
e0dbea8a60 mail: use MAIL:status instead of deprecated MAIL:read to query new e-mails
Change-Id: I758cb2b4c3111a300500976d7711e93f9d838a0b
Reviewed-on: https://review.haiku-os.org/687
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-11-14 00:34:47 +00:00
Peter Kosyh
239566d908 mail: simpler query for new e-mails
Before this patch, the BEOS:type was used in query. But in Haiku
the BEOS:type index is not created by default. So, this feature
dis not work.

Change-Id: Ib57b528eb852d256b7e0b7d203659af01e077801
Reviewed-on: https://review.haiku-os.org/684
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2018-11-13 19:31:53 -05:00
Peter Kosyh
1f41c99ffa mail: IMAP inbound protocol destructor fix
This should fix crashes of mailer_daemon in IMAP workers.
This patch makes IMAPConnection destructor wait for all working threads to finish.
Also, do not call _Connect for QuitCommand (it speedups shutdown procedure).

Change-Id: Idffcc00d3459a96a85a8a073a343bcf4cd4984be
Reviewed-on: https://review.haiku-os.org/686
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-11-13 19:31:23 -05:00
Murai Takashi
71103e733c StyledEdit: Fix PVS 1167
Use new(std::nothrow) so that NULL check for allocated memory makes sense.

Change-Id: I6c0e66c63adda430686727a4085132c4e40c7530
Reviewed-on: https://review.haiku-os.org/692
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2018-11-13 19:58:08 +00:00
Murai Takashi
82bbd737a1 sis7018: Fix PVS 1617
Use new(std::nothrow) so that NULL check for allocated memory makes sense.

Change-Id: Iab5efa869b83f5a312a1eaf8851a9e99888ff075
Reviewed-on: https://review.haiku-os.org/691
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2018-11-13 19:58:08 +00:00
Murai Takashi
6c8b0b3724 PNGTranslator: Fix PVS 2237-2241
* Use new(std::nothrow) so that NULL check for allocated memory makes sense.
* Other new() without NULL check is replaced with new(std::nothrow).

Change-Id: I23df98e58ea1960463e86a75ff69d67855f59074
Reviewed-on: https://review.haiku-os.org/690
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2018-11-13 19:58:08 +00:00
Murai Takashi
99b0a7e0ed OpenSound: Fix PVS 2232, 2233
Use new(std::nothrow) so that NULL check for allocated memory
makes sense.

Change-Id: I690a796ac5a9a7a61440ccccf19f93fc6bf2d328
Reviewed-on: https://review.haiku-os.org/689
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2018-11-13 19:58:08 +00:00
Augustin Cavalier
05f730b0f8 More WriteAttr -> WriteAttrString cleanup across the tree.
Some of these were correct as they were ... but most weren't.
There are a variety of other correct ones I didn't change over yet
that someone else probably should (GCI task?).
2018-11-11 16:22:10 -05:00
Augustin Cavalier
5f5cc39c2c STXTTranslator: Fix truncated "be:encoding" attribute write.
Same issue as the mail_util fix.

Also while I'm here, alter behavior so that the Be-style attribute
gets overwritten with the Haiku-style one, instead of getting left
as is.

Should potentially help with #14674.
2018-11-11 15:58:45 -05:00
Peter Kosyh
398bb93961 mail: fixes of default notifier (reset)
This fixes POP3 notification messages.

Change-Id: Ic7d9c0bb23c4dc9814f6c4bade0aba367fa28db1
Reviewed-on: https://review.haiku-os.org/685
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-11-11 20:36:28 +00:00
Peter Kosyh
fea29e79c7 write_read_attr: fix truncated B_MAIL_ATTR_STATUS
This fix garbage attributes on e-mail messages on status changes.

Change-Id: I5293a0e71a1b84c04889fa3375488b0075aad12e
Reviewed-on: https://review.haiku-os.org/682
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2018-11-11 14:26:55 +00:00
Augustin Cavalier
23623eee9a registrar: Remove now-unused non-Haiku code. 2018-11-10 15:16:25 -05:00
Augustin Cavalier
387609c3be shortcuts: Remove #if __INTEL__.
This isn't true on x86_64 (so we were displaying the wrong key names there).
The actual names of the keys should probably be fetched from the selected
keyboard.
2018-11-10 15:02:04 -05:00
Augustin Cavalier
3bf15c7f86 shortcut_catcher: Remove non-Haiku code. 2018-11-10 15:01:45 -05:00
Augustin Cavalier
231ee3b8ad mail: Remove regex match limitation from the BeOS days.
It was still enabled on 32-bit x86...
2018-11-10 15:00:49 -05:00
Augustin Cavalier
1801b9565c BuildSetup: Don't define __x86_64__, GCC/Clang do this automatically. 2018-11-10 14:52:07 -05:00
Augustin Cavalier
d8b0a13568 build_cross_tools: export ACLOCAL to stop GCC from trying to use it.
This should fix the build of the crosstools on Haiku, CentOS, and
other platforms with versions of autofools too old or too new for
GCC 7.
2018-11-10 14:41:55 -05:00
Augustin Cavalier
68d50ca8a3 mail_daemon: Replace own_image with the one from PowerStatus.
We probably should make this a common function...

Fixes the mail status icon not appearing on x86_64, as __INTEL__ is
not defined there.
2018-11-10 14:28:26 -05:00
Augustin Cavalier
494a6e4e8e kernel/vm: Remove hacky stack dumper from vm_page_fault.
As the TODO said, we now have good userland debugging facilities, so
this isn't needed (and has been if 0'd out for almost a decade now.)
The dprintf on page faults may still be useful under rare circumstances,
but we already have a "TRACE_FAULTS" configuration for this file,
so guard it behind that.

Fixes part of #14360.
2018-11-10 14:12:18 -05:00
Adrien Destugues
e4425315dd Proofread and update the HIG
- Use neutral they to make the user (and in one instance, the
  'stereotypical lazy developer') gender neutral. Thanks to hacker news
  commenters for raising the issue.
- Various updates and clarifications on cursors (not restricted to black
  and white anymore), toolbars & about boxes (we now have a standard
  implementation for them), zooming (exemple more strongly showing that
  it should be "fit to contents" especially on modern high resolution
  displays)
- Reword english in some places

Change-Id: Ic8a392665c08e5186a1fb8aa95e4b741862a8dd7
Reviewed-on: https://review.haiku-os.org/681
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-11-09 21:43:21 +00:00
Adrien Destugues
d02879c185 HIG: rewrap
This will ease managing the doc and reviewing upcoming changes.
2018-11-09 20:48:44 +01:00
Adrien Destugues
c4bb4fbb7e Devices: remove "not implemented" driver line
This just confuses users. Let's re-add it when we have implemented it.
2018-11-09 20:30:39 +01:00
Adrien Destugues
0ca6ba69fa screenmode: remove leftover debug print. 2018-11-09 20:29:35 +01:00
Autocomitter
adba659760 Update translations from Pootle 2018-11-08 21:45:32 +00:00
Adrien Destugues
4c8208af52 ffmpeg: fix crash at end of video stream
Mixing new and old style decoding APIs won't work. And we were still
using the old API for managing the end of videos.

Change-Id: Ic194ab98721455658ecefde4f951c3f1e43ae1be
Reviewed-on: https://review.haiku-os.org/679
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-11-08 20:09:08 +00:00
Peter Kosyh
2e8be594e7 mail_daemon: IMAPConnectionWorker missing ::WorkerQuit() on errors
This fixes some crashes.

In _Worker thread on connect or process errors fOwner.WorkerQuit(this) was not called, leaving destroyed thread object in fWorkerMap and fWorkers.

Moreover, on connection problem the imap mailboxes was never checked on next planned sync because of non empty fWorkers.

Change-Id: I55ce6474b655fad5ddd8024225fc8f633bc35c48
Reviewed-on: https://review.haiku-os.org/678
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-11-08 14:26:03 +00:00
waddlesplash
2cf9765df8 Revert "add-ons/mail_daemon: IMAP: limit UIDs in UID FETCH"
This reverts commit ed08b22dec.

See discussion on the commits mailing list (and on IRC.)
2018-11-07 19:03:30 -05:00
Peter Kosyh
3a469b95be mail_daemon: IMAP remove trailing space in flags list
This fixes STORE FLAGS request and gmail

Change-Id: I28c507244788e2e56e46bef428a465bd8d798d51
Reviewed-on: https://review.haiku-os.org/673
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-11-06 00:06:38 +00:00
Andrew Lindesay
4b30bf30b8 HaikuDepot : Handling for NULL Identity URLs on Repository Sources
Change-Id: I0f0094cf2ed38750dca4783b41f061977d833cea
Reviewed-on: https://review.haiku-os.org/677
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-11-06 00:06:10 +00:00
Axel Dörfler
419bc0a2ca Deskbar: Made the leaf scale with the font size
* It's now a vector icon as well.
* Vertical mode doesn't look that good anymore with higher font sizes,
  but I didn't understand how to do it properly.

Change-Id: I0eed0e2873b270c349dfd3af117cfcb751e590a1
Reviewed-on: https://review.haiku-os.org/671
Reviewed-by: Stephan Aßmus <superstippi@gmx.de>
2018-11-06 00:05:42 +00:00
Axel Dörfler
b791e997bf Tracker: Improved NavIcon spacing
* The spacing between icon and text now scales with the font size, too.
2018-11-05 22:41:32 +00:00
Axel Dörfler
a55e9f5235 Tracker: NavMenu icons scale with font size
* Moved icon size computation into separate utility function.
2018-11-05 22:20:55 +00:00
Axel Dörfler
fa584266d5 Tracker: Simplified test; fColumnList cannot be NULL 2018-11-05 22:20:55 +00:00
Peter Kosyh
f2d9de4577 mail_daemon: IMAP Settings.h DeleteRemoteWhenLocal forgotten prototype
this fixes broken build, sorry

Change-Id: I2d6dd152739ae1d7aefdf0c98732b9f302b90025
Reviewed-on: https://review.haiku-os.org/676
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2018-11-05 19:57:22 +00:00
Kacper Kasper
35a074e071 BStringView: fix #14680 2018-11-05 19:41:38 +01:00
Peter Kosyh
eef12cec97 mail_daemon: IMAP delete messages on the server only when delete_remote_when_local setting is set
Change-Id: I88fcc7a185cede080af7c3b85f9466a02f895809
Reviewed-on: https://review.haiku-os.org/674
Reviewed-by: Stephan Aßmus <superstippi@gmx.de>
2018-11-05 17:30:09 +00:00