Commit Graph
53874 Commits
Author SHA1 Message Date
Philippe Saint-Pierre 494fe5a431 CID 1273484: Use bitwise operator to verify bitmask 2015-07-01 21:26:00 -04:00
Philippe Saint-Pierre f4a699af83 CID 1273539: Use right variable in construction check 2015-07-01 21:19:12 -04:00
Philippe Saint-Pierre ee056a089c match new[] operator with delete[] operator
The string ends up being deleted with the [] variant later on.

CID 602975.
2015-07-01 20:34:57 -04:00
Philippe Saint-Pierre 93bd491fb7 Logic error in TaskLoop::RunIfNeeded()
The ! operator would have priority over < and would transform currentTime before the
comparison. Moreso, the logic was reversed. It is supposed to return false if it's
not time yet to run the task, not the opposite.

CID 1273447.
2015-07-01 19:32:55 -04:00
Philippe Saint-Pierre 2bdea08d38 Check for malloc result done on wrong variable.
CID 1255090
2015-07-01 19:32:55 -04:00
Philippe Saint-Pierre ee1265c58e Memleak in HPDirectJet printer transport
CID 605747
2015-07-01 19:32:54 -04:00
Philippe Saint-Pierre 385d90724e Memory leaks in Cortex
CID 605755, 605756, 605757 and 605758.
2015-07-01 19:32:54 -04:00
Augustin Cavalier 82652e65f7 licenses: Remove UnRAR, only used by one port.
The "unrar" port now has its own copy.
2015-07-01 18:24:27 -04:00
Augustin Cavalier aa1c93fcd9 licenses: Remove 'Unicode', it's now part of the ICU license...
... that's in the HaikuPorts tree.
2015-07-01 18:24:24 -04:00
Augustin Cavalier f7061938a4 licenses: Remove MkDepend, just the MIT license.
Recipe already uses "MIT".
2015-07-01 18:24:22 -04:00
Augustin Cavalier e225789777 licenses: Remove ICU, only used by one program and outdated. 2015-07-01 18:24:19 -04:00
Augustin Cavalier b52caddca9 licenses: Remove Info-ZIP, only used by one program. 2015-07-01 18:24:16 -04:00
Augustin Cavalier 5eac24a148 licenses: Remove "Expat", it's just the MIT License.
The recipe already uses "MIT".
2015-07-01 18:24:14 -04:00
Augustin Cavalier d54a7812f6 licenses: Get rid of the two versions of the Artisic License.
They're the same thing. The "Perl" one has better formatting, though,
so keep that one.
2015-07-01 18:24:11 -04:00
Augustin Cavalier dd29ef00f8 licenses: Public Domain: Include the full text. 2015-07-01 18:24:08 -04:00
Philippe Saint-Pierre 45888dab83 Crash fix in BMessage::ReplaceData()
The call to _CopyForWrite() invalidated the pointer previously assigned.
There was also an unrelated null-pointer derefence situation in the copy constructor.

Fixes #3074 and CID 610886 and CID 610887.
2015-07-01 15:16:31 -04:00
Philippe Saint-Pierre 4cb7d0e75f AboutWindow: Set initial font color in the TextView 2015-07-01 15:16:30 -04:00
Humdinger 4f2669e7ea Added package Clipdinger - a history for the sytem clipboard
see http://humdingerb.github.io/clipdinger/
2015-07-01 12:33:32 +02:00
Julian Harnath a73795ff61 Revert "BNetworkAddressResolver: fix setting AI_ADDRCONFIG flag"
B_UNCONFIGURED_ADDRESS_FAMILIES is not a mapping to AI_ADDRCONFIG,
it's the opposite...

This reverts commit a8962b392a.
2015-06-30 20:13:20 +02:00
Philippe Saint-Pierre e62d9cf8c5 StyledEdit: Rework of the font color system
1) The default font color is now B_DOCUMENT_TEXT_COLOR
2) The font color menu now shows a palette
3) The font color menu now includes a "default" item, set
to B_DOCUMENT_TEXT_COLOR
4) Added a Todo mentionning it would be ideal to not save the default color
itself, but instead saving the fact the default color was used. Maybe allow the
StyleBuffer to use a Null color or something similar.
2015-06-30 13:32:45 -04:00
Philippe Saint-Pierre 8083e779cf Use B_CONTROL_HIGHLIGHT_COLOR to draw outline
In Tracker's TitleView, use an user defined color to draw outline when
moving columns rather than hardcoded color.
2015-06-30 13:32:44 -04:00
Julian Harnath a8962b392a BNetworkAddressResolver: fix setting AI_ADDRCONFIG flag
* Condition was the wrong way
2015-06-30 18:04:26 +02:00
Julian Harnath 0fc8084a13 BNetworkAddressResolver: fix getting address of given family
* Fix wrong nesting of loops which are supposed to skip the first
  (*cookie) number of elements and those with the wrong address
  family

* With a start value of first = 0 (the usual case), the old code
  would always just return the first element of the addrinfo list, no
  matter which address family was actually requested
2015-06-30 18:04:20 +02:00
Augustin Cavalier a8438bc200 ReadMe: HaikuPorts has moved to GitHub. 2015-06-30 10:03:49 -04:00
Augustin Cavalier 896c0b7543 Move doc from src/kits/network to docs/net.
Thanks Adrien for reviewing!
2015-06-30 09:34:02 -04:00
Augustin Cavalier a46dbfb55f netresolv: Delete unused Makefiles. 2015-06-30 09:33:59 -04:00
Axel Dörfler ad5d4c9944 fat: Cleared the confusion between ctime, and crtime...
... the previous commit introduced.

* Minor cleanup, disabled the useless fs_ioctl() function.
* This closes #11120.
2015-06-30 13:27:02 +02:00
Matej Horvat b56120409d Add support for creation times
Signed-off-by: Axel Dörfler <[email protected]>
2015-06-30 13:15:08 +02:00
Alexander von Gluck IV f3d8d34616 Updated libedit package for x86_64 2015-06-29 21:52:21 -05:00
Augustin Cavalier 26de45da21 posixtestsuite: Delete from tree.
The Open POSIX Testsuite can now be found at
https://github.com/haiku/open_posix_testsuite - most of the patches
can be found in "master", and the full Git history of this directory
can be found in the "from_haiku_trunk" branch (the patches there
should eventually be merged to "master", whenever someone has time
to look at it.)
2015-06-29 16:46:10 -04:00
Augustin Cavalier fd2c0fa425 ReadMe: update URL of Landon Fuller's Grok, minor fixes. 2015-06-29 11:45:34 -04:00
Augustin Cavalier b75bd04b4a netresolv: Add a quick document on how to synchronize with NetBSD. 2015-06-29 11:37:40 -04:00
Augustin Cavalier 3cc9802e89 netresolv/COPYRIGHT: Add BSD license, as it's in some of the sources. 2015-06-29 11:37:38 -04:00
Augustin Cavalier 4ae91d30cb netresolv/isc: get rid of duplicate base64.c. 2015-06-29 11:37:35 -04:00
Augustin Cavalier cd88c756f3 netresolv: remove nonexistent directory from Jamfile. 2015-06-29 11:37:32 -04:00
Augustin Cavalier 08336907db netresolv: Get rid of BSD strsep compat code.
We already have this in our libbsd.
2015-06-29 11:37:29 -04:00
Augustin Cavalier 24a60d9b9a netresolv/resolv: Merge remaining patches from 2013 to current HEAD.
Commits merged from the semi-official Git mirror of NetBSD
trunk (https://github.com/IIJ-NetBSD/netbsd-src/ - NetResolv
is in the tree at lib/libc/netresolv/).

Commit authors/messages in chronological order follow:
---------------------------------------
From: wiz <[email protected]>
Date: Mon, 9 Dec 2013 09:35:17 +0000
Subject: Fix typo ("then" instead of "than")

From: christos <[email protected]>
Date: Tue, 16 Sep 2014 01:30:00 +0000
Subject: close on exec hostaliases

From: christos <[email protected]>
Date: Tue, 11 Nov 2014 03:29:24 +0000
Subject: PR/48475: YAMAGUCHI Takanori: EDNS option broken with
 unbound. struct querybuf in net/gethnamaddr.c defines MAXPACKET to 64K. This
 in turn gets passed down until it reached res_nopt(..., answer, anslen), where
 the size of the buffer must fit in 16 bits. Unfortunately we end up
 being one more than the max so we end up sending a 0 as the size and
 unbound does not like that. Instead we clip now to 64K - 1, and everyone
 is happy.
 XXX: Pullup to 7.

From: christos <[email protected]>
Date: Tue, 24 Feb 2015 17:57:08 +0000
Subject: belated removal of the advertising clause.
2015-06-29 11:37:26 -04:00
Augustin Cavalier f1b36c9050 netresolv/inet: Merge remaining patches from 2013 to current HEAD.
Commits merged from the semi-official Git mirror of NetBSD
trunk (https://github.com/IIJ-NetBSD/netbsd-src/ - inet
is in the tree at lib/libc/inet/).

Commit authors/messages in chronological order follow:
---------------------------------------
From: christos <[email protected]>
Date: Mon, 10 Feb 2014 16:29:30 +0000
Subject: PR/48585: Henning Petersen: Always set errno when returning NULL.

From: christos <[email protected]>
Date: Mon, 10 Feb 2014 16:30:54 +0000
Subject: remove unneeded code, and kill parens from return
2015-06-29 11:37:23 -04:00
Philippe Saint-Pierre ffc3c6172b Incorrect font applied in Add-on submenu
When accessing the Tracker Add-on menu from ContainerWindow's top menu, the
font in Add-Ons submenu would change from its parent menu.
2015-06-29 11:27:50 -04:00
Philippe Saint-Pierre ee87fbc421 Do not hardcode tab height in ResizeToFit() 2015-06-28 19:02:30 -04:00
Hamish Morrison 227af8c052 netresolv: ensure pthread_rwlock is initialized before use
Under some circumstances the pthread_rwlock protecting the name service
configuration was not initialized, and the calls to rdlock/wrlock would
silently fail.
2015-06-28 23:23:14 +01:00
Axel Dörfler 67c816c41c libnetwork: Fixed getifaddrs() implementation.
* It overwrote the request buffer, and tried to access its previous
    contents afterwards.
* It incorrectly copied sockaddrs.
* It did not initialize all members.
* It did not check for error codes from ioctl().
* It did not properly set errno in many cases, but just returned an
  error right away.
* This hopefully fixes bug #12156. Adrien obviously had a bad day :-)
2015-06-28 23:28:32 +02:00
Augustin Cavalier 8306064d44 cmedia: update to newer spinlock API. 2015-06-28 14:32:57 -04:00
Rene Gollent 37248a2fff Debugger: Add address column to functions list.
ImageFunctionsView:
- For function nodes, also display the start address of the function in
  question. Makes it somewhat more convenient to determine which function a
  function pointer actually refers to.
2015-06-27 13:20:14 -04:00
Rene Gollent 299f564e06 Debugger: Fix potential crash in VariablesView.
VariableTableModel:
- When attempting to retrieve the type for a given node, ensure
  that it actually has a value node first. This might not necessarily
  be the case if no appropriate type handler was found.
2015-06-27 12:53:26 -04:00
Rene Gollent 55c1477fbc Debugger: Minor adjustment to address value node.
AddressValueNode:
- If the address node is pointing to a function, don't bother creating
  a child, as there isn't really any useful information that can be displayed
  for such a node besides its target address, which is already shown by the
  address node anyways.
2015-06-27 12:47:19 -04:00
autonielx 6d7a90882c Update translations from Pootle 2015-06-27 06:30:55 +02:00
Philippe Saint-Pierre 2b0dad2c7e Fix segfault in Top utility
Could occur whenever the terminal exceed 96 columns (write beyond end of string).
2015-06-25 22:35:06 -04:00
Philippe Saint-Pierre 1443b2798f CID 1249930: Don't scanf uninitialized buffer
Would happen in case of a missing config file, for instance.
2015-06-25 19:29:13 -04:00
Philippe Saint-Pierre 6b05e9db3d CID 1273486: change from boolean to bitwise operator
Typo confirmed by looking at the corresponding source file from elsewhere.
+ some style fixes
2015-06-25 18:03:41 -04:00