claws.git
3 years agofix disabling prefs_common.warn_sending_many_recipients_num by unchecking the 'show...
Paul [Wed, 1 Mar 2017 13:13:24 +0000 (13:13 +0000)]
fix disabling prefs_common.warn_sending_many_recipients_num by unchecking the 'show this msg again' checkbox in the dialogue

3 years agoMake 'Save all...' report more accurate
Ricardo Mones [Wed, 1 Mar 2017 09:45:49 +0000 (10:45 +0100)]
Make 'Save all...' report more accurate

Thanks Woody for nitpicking.

3 years agobump copyright year
Paul [Wed, 1 Mar 2017 08:02:03 +0000 (08:02 +0000)]
bump copyright year

3 years agoDocument hidden pref 'warn_sending_many_recipients_num'
Ricardo Mones [Mon, 27 Feb 2017 23:00:26 +0000 (00:00 +0100)]
Document hidden pref 'warn_sending_many_recipients_num'

3 years agoSimplify hidden prefs for too many recipients
Ricardo Mones [Mon, 27 Feb 2017 22:59:19 +0000 (23:59 +0100)]
Simplify hidden prefs for too many recipients

3 years agoFix bug #3775, wrong plural form string.
wwp [Mon, 27 Feb 2017 12:36:58 +0000 (13:36 +0100)]
Fix bug #3775, wrong plural form string.

3 years agoFix memory leak
Olivier Brunel [Sat, 25 Feb 2017 20:06:21 +0000 (21:06 +0100)]
Fix memory leak

Signed-off-by: Olivier Brunel <jjk@jjacky.com>
3 years agoRemove duplicated code and include
Ricardo Mones [Sat, 25 Feb 2017 12:14:35 +0000 (13:14 +0100)]
Remove duplicated code and include

3 years agoReplace verbosity boolean flag with a bitfield of flags.
Andrej Kacian [Sat, 25 Feb 2017 10:43:26 +0000 (11:43 +0100)]
Replace verbosity boolean flag with a bitfield of flags.

Currently, there are two - whether or not to show error dialogs
and whether or not to show a feed rename dialog after subscribing.

We use same enum typedef for subscribing and fetching/updating
for consistency, the second flag only has effect in rssyl_subscribe().

3 years agoRemove rssyl_feed_subscribe_new(), it was redundant.
Andrej Kacian [Sat, 25 Feb 2017 10:32:52 +0000 (11:32 +0100)]
Remove rssyl_feed_subscribe_new(), it was redundant.

rssyl_subscribe() is almost identical, so it is used instead.
Some minor usability issues that arise from this change will
be fixed in next commit(s).

3 years agoFix bug #3741: Deleting an account doesn't delete imapcache
Ricardo Mones [Tue, 21 Feb 2017 18:05:19 +0000 (19:05 +0100)]
Fix bug #3741: Deleting an account doesn't delete imapcache

Based on initial patch by Paul and in exchange of a reviewed
patch for 3582 ;-)

3 years agoRemove internal libytnef and require an external one instead.
Andrej Kacian [Wed, 22 Feb 2017 09:26:09 +0000 (10:26 +0100)]
Remove internal libytnef and require an external one instead.

3 years agoDo not hardcode resolv.conf location
Ricardo Mones [Thu, 16 Feb 2017 21:57:37 +0000 (22:57 +0100)]
Do not hardcode resolv.conf location

3 years agouse xdg-open as default mime_open_command
Paul [Thu, 16 Feb 2017 13:49:00 +0000 (13:49 +0000)]
use xdg-open as default mime_open_command

3 years agoFix 'Apply' when changing scaling options only
Ricardo Mones [Wed, 15 Feb 2017 23:40:46 +0000 (00:40 +0100)]
Fix 'Apply' when changing scaling options only

3 years agoRemove spurious comment
Ricardo Mones [Tue, 14 Feb 2017 00:00:56 +0000 (01:00 +0100)]
Remove spurious comment

3 years agoMigrate icon filename stored in toolbar XML files
Ricardo Mones [Mon, 13 Feb 2017 23:58:59 +0000 (00:58 +0100)]
Migrate icon filename stored in toolbar XML files

Thanks Paul for the hint.
Completes commit 50bd87f2e13a9dbdb2a1a449823ff16ae87239f8.

3 years agoFix impossible action duplication: don't check for duplicate action name
wwp [Mon, 13 Feb 2017 17:55:28 +0000 (18:55 +0100)]
Fix impossible action duplication: don't check for duplicate action name
when saving/duplicating (we're not doing this elsewhere and I don't see
the point in doing it here).

3 years agoadd Bcc to default headers in drop-down
Paul [Mon, 13 Feb 2017 15:20:53 +0000 (15:20 +0000)]
add Bcc to default headers in drop-down

3 years agoFix pixmap name to reflect what it really does
Ricardo Mones [Sat, 11 Feb 2017 15:47:50 +0000 (16:47 +0100)]
Fix pixmap name to reflect what it really does

Will break your themes, nothing a mv cannot fix ;-)

3 years agoFix wrong return value type.
wwp [Wed, 8 Feb 2017 22:33:38 +0000 (23:33 +0100)]
Fix wrong return value type.

3 years agoSet same size as its companions (new and unread)
Ricardo Mones [Wed, 8 Feb 2017 19:22:14 +0000 (20:22 +0100)]
Set same size as its companions (new and unread)

3 years agoFix included header
Ricardo Mones [Tue, 7 Feb 2017 20:07:16 +0000 (21:07 +0100)]
Fix included header

Error message was:
stock_pixmap.c:26:26: fatal error: librsvg/rsvg.h: No such file or directory

Thanks Paul for reporting!

3 years agoUser interface for SVG preferences
Ricardo Mones [Mon, 6 Feb 2017 23:56:29 +0000 (00:56 +0100)]
User interface for SVG preferences

3 years agoAdd SVG icon scaling/rendering preferences
Ricardo Mones [Tue, 31 Jan 2017 23:27:19 +0000 (00:27 +0100)]
Add SVG icon scaling/rendering preferences

• 'enable_alpha_svg' to use alpha channel when rendering
• 'enable_pixmap_scaling' to bypass SVG's own natural size
• 'pixmap_scaling_auto' to compute a PPI or use a user defined value
• 'pixmap_scaling_ppi' to set a user defined value for PPI

3 years agoRender SVG scaled to default icon size
Ricardo Mones [Mon, 30 Jan 2017 22:22:20 +0000 (23:22 +0100)]
Render SVG scaled to default icon size

Default icon sizes are parsed from icon data, which is suboptimal
since these sizes can be known at compile time.

3 years agoLoad SVG files the deprecated way
Ricardo Mones [Sat, 28 Jan 2017 20:29:30 +0000 (21:29 +0100)]
Load SVG files the deprecated way

3 years agoConfigure SVG library
Ricardo Mones [Fri, 27 Jan 2017 22:41:15 +0000 (23:41 +0100)]
Configure SVG library

• New feature flag HAVE_SVG, enabled by default if dependencies
  are available (librsvg-2.0 >= 2.36.0).
• New item in About window's Features tab for librSVG.

3 years agoRemove generated file
Ricardo Mones [Mon, 6 Feb 2017 14:14:40 +0000 (15:14 +0100)]
Remove generated file

and ignore it properly :-)

3 years agoA bit more room for alertpanel messages
Ricardo Mones [Mon, 6 Feb 2017 13:24:57 +0000 (14:24 +0100)]
A bit more room for alertpanel messages

And same room for all of them. The current sizes were so small that
a somewhat large list of failed-to-load plugins appeared truncated
in the warning message.

3 years agoremove unused variable
Paul [Sun, 5 Feb 2017 08:46:24 +0000 (08:46 +0000)]
remove unused variable

3 years agono tranlslation needed here
Paul [Sun, 5 Feb 2017 08:38:57 +0000 (08:38 +0000)]
no tranlslation needed here

3 years agoFix build when using alternate addressbook
Michael Rasmussen [Sun, 5 Feb 2017 00:13:03 +0000 (01:13 +0100)]
Fix build when using alternate addressbook

3 years agoMake --disable-dillo-plugin actually do something.
Andrej Kacian [Sat, 4 Feb 2017 17:31:45 +0000 (18:31 +0100)]
Make --disable-dillo-plugin actually do something.

3 years agoUnify display of event times in vCalendar's mimeviewer on Windows and Unix.
Andrej Kacian [Sat, 4 Feb 2017 16:35:20 +0000 (17:35 +0100)]
Unify display of event times in vCalendar's mimeviewer on Windows and Unix.

We now use g_date_time_format() on both. Also, display
timezone abbreviation (%Z) instead of offset (%z) in the
strings.

3 years agoHandle timezones correctly in vCalendar.
Andrej Kacian [Sat, 4 Feb 2017 16:33:07 +0000 (17:33 +0100)]
Handle timezones correctly in vCalendar.

We convert DTSTART and DTEND to UTC as soon as possible,
using the VTIMEZONE info. The convert_to_utc() function
should be able to handle several timezone definitions and
events using those several different timezones in one ical
file, picking the correct one for converting each event.

3 years agoUse PLUGIN_NAME macro instead of "vCalendar" string literal internally.
Andrej Kacian [Sat, 4 Feb 2017 13:18:03 +0000 (14:18 +0100)]
Use PLUGIN_NAME macro instead of "vCalendar" string literal internally.

3 years agoOops! forgot one themeable icon in pdf_viewer
Ricardo Mones [Sat, 4 Feb 2017 11:55:21 +0000 (12:55 +0100)]
Oops! forgot one themeable icon in pdf_viewer

Completes commit 89d34855ea0a9213c0ab133cc0a7a0511086ad64.

3 years agoMake a relative signature_path relative to home directory.
Andrej Kacian [Fri, 3 Feb 2017 18:03:19 +0000 (19:03 +0100)]
Make a relative signature_path relative to home directory.

This applies only if corresponding signature_type is SIG_FILE.

3 years agoMoved found_in_addressbook() from plugins to core.
Andrej Kacian [Fri, 3 Feb 2017 16:48:02 +0000 (17:48 +0100)]
Moved found_in_addressbook() from plugins to core.

Four identical copies of the same functions removed
from four plugins and put into addr_compl.[ch].

3 years agoMake all headers abide by config and features
Ricardo Mones [Fri, 3 Feb 2017 11:56:31 +0000 (12:56 +0100)]
Make all headers abide by config and features

3 years agoRe-introducing the Dillo plugin. Tested against Dillo 3.0.4.1/3.0.5.
wwp [Thu, 2 Feb 2017 17:06:27 +0000 (18:06 +0100)]
Re-introducing the Dillo plugin. Tested against Dillo 3.0.4.1/3.0.5.

3 years agoRemove obsolete font prefs
Ricardo Mones [Tue, 31 Jan 2017 19:02:51 +0000 (20:02 +0100)]
Remove obsolete font prefs

3 years agoGeneralise theme extension handling
Ricardo Mones [Mon, 30 Jan 2017 23:11:47 +0000 (00:11 +0100)]
Generalise theme extension handling

3 years agovCalendar plugin: use external libical
Paul [Fri, 27 Jan 2017 15:56:47 +0000 (15:56 +0000)]
vCalendar plugin: use external libical

closes bug #3764
patch by flo.xfce@gmx-topmail.de

3 years agosensitise trayicon's 'get mail' and 'exit'
Paul [Fri, 27 Jan 2017 15:40:27 +0000 (15:40 +0000)]
sensitise trayicon's 'get mail' and 'exit'

patch by Olivier Brunel

3 years agoadd shadow to rule list (like everywhere else)
Paul [Fri, 27 Jan 2017 15:37:06 +0000 (15:37 +0000)]
add shadow to rule list (like everywhere else)

patch by Olivier Brunel

3 years agowhen renaming folder, only update summaryview folder name if the current folder is...
Paul [Fri, 27 Jan 2017 15:32:11 +0000 (15:32 +0000)]
when renaming folder, only update summaryview folder name if the current folder is being renamed

patch by Olivier Brunel

3 years agoFix typos and a wrong switch expression (coverity CID #1399549).
wwp [Tue, 24 Jan 2017 06:41:39 +0000 (07:41 +0100)]
Fix typos and a wrong switch expression (coverity CID #1399549).

3 years agoBetter error handling and feedback for save all attachments
Ricardo Mones [Mon, 23 Jan 2017 22:48:18 +0000 (23:48 +0100)]
Better error handling and feedback for save all attachments

3 years agoUpdate French translation.
wwp [Mon, 23 Jan 2017 19:52:13 +0000 (20:52 +0100)]
Update French translation.

3 years agoNo need to test what g_malloc returns, as if it fails, it stops the
wwp [Sat, 21 Jan 2017 22:51:31 +0000 (23:51 +0100)]
No need to test what g_malloc returns, as if it fails, it stops the
program.

3 years agoAlways show a notice dialog after delete-dupes, even if nothing has
wwp [Sat, 21 Jan 2017 14:12:43 +0000 (15:12 +0100)]
Always show a notice dialog after delete-dupes, even if nothing has
been deleted. Make a better notice when it's about marking as delete
(for later deletion when execute is done). Always say we're deleting
dupes, in status bar.
Fix toolbar item sensibility even though if it's not perfect since
the whole button dropdown menu can't be accessed if current folder
can't be searched for dupes.

3 years agoShow attachments total size in compose window's relevant tab (only counts
wwp [Sat, 21 Jan 2017 11:58:50 +0000 (12:58 +0100)]
Show attachments total size in compose window's relevant tab (only counts
attachments size, not encoding or body part, it is not the email
total size).

3 years agoMain window's toolbar delete dupes button is now a dropdown, allowing
wwp [Fri, 20 Jan 2017 22:18:56 +0000 (23:18 +0100)]
Main window's toolbar delete dupes button is now a dropdown, allowing
both duplication in selected folder and in all folders. Clicking the
button still raises the deletion in selected (current) folder.

3 years agoUpdate func name in g_warning message (_full() may matter since
wwp [Fri, 20 Jan 2017 17:02:09 +0000 (18:02 +0100)]
Update func name in g_warning message (_full() may matter since
this _func() function is also called directly).

3 years agoNormalize rfc822 date handling by using decent buffer sizes everywhere (128,
wwp [Fri, 20 Jan 2017 09:48:08 +0000 (10:48 +0100)]
Normalize rfc822 date handling by using decent buffer sizes everywhere (128,
which is way more than what RFC822 says: 37 max) and specific buffers.

3 years agoMore work on default pixmaps theme, few details in corners to get
wwp [Thu, 19 Jan 2017 15:39:28 +0000 (16:39 +0100)]
More work on default pixmaps theme, few details in corners to get
icons look nicer on dark and light backgrounds.

3 years agoAdd "Delete duplicates" (delete duplicated messages in current folder) to
wwp [Thu, 19 Jan 2017 13:49:06 +0000 (14:49 +0100)]
Add "Delete duplicates" (delete duplicated messages in current folder) to
the main window's toolbar, including a brand new (not so shining) icon.

3 years agoFix a memory leak.
wwp [Thu, 19 Jan 2017 13:26:06 +0000 (14:26 +0100)]
Fix a memory leak.

3 years agoMake few edit fields wider in matcher dialog, better suit their
wwp [Wed, 18 Jan 2017 20:55:02 +0000 (21:55 +0100)]
Make few edit fields wider in matcher dialog, better suit their
use (addressbook name, command-line, etc.).

3 years agoFix bug 3762, 'redirect fails'
wwp [Wed, 18 Jan 2017 20:48:50 +0000 (21:48 +0100)]
Fix bug 3762, 'redirect fails'
by removing an check added at 3.14.1.39-g989b3a3, thought I was hardening
sanity checks and I changed the logics, making it fail while in normal
situation. Removed few more extraneous checks.

3 years agoImprovements and fixes in the folder search: prevent changes in
wwp [Tue, 17 Jan 2017 21:44:30 +0000 (22:44 +0100)]
Improvements and fixes in the folder search: prevent changes in
criterias while the search is performing (disable appropriate widgets).
Better disabling/enabling of widgets when changing search modes or
state.
Discard current cached search when switching from/to advanced
search or changing the case sensitivity or changing the matching
any/all mode.

3 years agoPartially revert "Spanish translation: fix headers to be shown in UI"
Ricardo Mones [Tue, 17 Jan 2017 13:10:06 +0000 (14:10 +0100)]
Partially revert "Spanish translation: fix headers to be shown in UI"

This reverts the wrong bits in commit 4ac7eb950e352aa10da1e362fda72f1a918f1241

3 years agoFix bug 3251, 'A translated In-Reply-To header is sent translated'
wwp [Tue, 17 Jan 2017 12:41:52 +0000 (13:41 +0100)]
Fix bug 3251, 'A translated In-Reply-To header is sent translated'
by making sure we're always storing untranslated headers.
Optimize and sanitize a bit the code around it, too.

3 years agoFix more header names in French.
wwp [Tue, 17 Jan 2017 12:39:01 +0000 (13:39 +0100)]
Fix more header names in French.

3 years agoSpanish translation: fix headers to be shown in UI
Ricardo Mones [Tue, 17 Jan 2017 12:12:20 +0000 (13:12 +0100)]
Spanish translation: fix headers to be shown in UI

Also leave X- headers untranslated.

3 years agoBetter English (thanks Paul for reference)
Ricardo Mones [Tue, 17 Jan 2017 10:09:16 +0000 (11:09 +0100)]
Better English (thanks Paul for reference)

3 years agoUpdate quicksearch info to cope with rfe 2260…
Ricardo Mones [Mon, 16 Jan 2017 23:59:27 +0000 (00:59 +0100)]
Update quicksearch info to cope with rfe 2260…

…until it's really fixable, if ever.

3 years agoUpdate French translation and fix translated header names (no space).
wwp [Mon, 16 Jan 2017 22:19:43 +0000 (23:19 +0100)]
Update French translation and fix translated header names (no space).

3 years agoFix Coverity CIDs #1398812, #1398813, #1398814.
wwp [Mon, 16 Jan 2017 17:29:15 +0000 (18:29 +0100)]
Fix Coverity CIDs #1398812, #1398813, #1398814.
Will convert compose_convert_header needs for fixed buffers later.

3 years agoFix bug 3571, 'recipient list lost and truncated'
wwp [Mon, 16 Jan 2017 15:35:13 +0000 (16:35 +0100)]
Fix bug 3571, 'recipient list lost and truncated'
by replacing lots of fixed-size buffers with dynamically
allocated ones.
Also enforce checks by adding or fixing few sanity tests,
fix returned value of some functions in some tricky cases.

3 years agoFix g4850949 (use correct API calls).
wwp [Mon, 16 Jan 2017 11:57:36 +0000 (12:57 +0100)]
Fix g4850949 (use correct API calls).

3 years agoFix yet another average leak in matcher.c when parsing headers (valgrind).
wwp [Mon, 16 Jan 2017 10:54:24 +0000 (11:54 +0100)]
Fix yet another average leak in matcher.c when parsing headers (valgrind).

3 years agofix bug 3734, 'undefined symbol error with flex-2.6.2'
Paul [Mon, 16 Jan 2017 10:30:17 +0000 (10:30 +0000)]
fix bug 3734, 'undefined symbol error with flex-2.6.2'

Patch by Ashish Gupta

3 years agoFix another (not so big but still common) leak, thanks to valgrind.
wwp [Mon, 16 Jan 2017 10:03:35 +0000 (11:03 +0100)]
Fix another (not so big but still common) leak, thanks to valgrind.

3 years agoFix big leaks (thanks to valgrind) in filtering/matching by headers,
wwp [Mon, 16 Jan 2017 09:33:05 +0000 (10:33 +0100)]
Fix big leaks (thanks to valgrind) in filtering/matching by headers,
saved (lots of) megabytes here.

3 years agoMerge branch 'master' of ssh+git://git.claws-mail.org/home/git/claws
wwp [Sat, 14 Jan 2017 07:37:04 +0000 (08:37 +0100)]
Merge branch 'master' of ssh+git://git.claws-mail.org/home/git/claws

3 years agoRevert part of 3.14.1-128-g498b61c, fixing Coverity CID #1398594.
wwp [Sat, 14 Jan 2017 07:34:57 +0000 (08:34 +0100)]
Revert part of 3.14.1-128-g498b61c, fixing Coverity CID #1398594.
Instead of really fixing the wrong call to g_strdup_printf, I prefer
not touching libical code, we'll see later what to do w/ it.

3 years agoMerge branch 'master' of ssh+git://git.claws-mail.org/home/git/claws
Michael Rasmussen [Fri, 13 Jan 2017 21:41:08 +0000 (22:41 +0100)]
Merge branch 'master' of ssh+git://git.claws-mail.org/home/git/claws

3 years agoFix bug #3673. Patch provided by Perry E. Metzger
Michael Rasmussen [Fri, 13 Jan 2017 21:39:10 +0000 (22:39 +0100)]
Fix bug #3673. Patch provided by Perry E. Metzger

3 years agoFix build on OSX. Patch provided by Perry E. Metzger
Michael Rasmussen [Fri, 13 Jan 2017 21:39:10 +0000 (22:39 +0100)]
Fix build on OSX. Patch provided by Perry E. Metzger

3 years agoPrefer dynamically allocated buffers to fixed-size ones, use the same
wwp [Fri, 13 Jan 2017 08:19:41 +0000 (09:19 +0100)]
Prefer dynamically allocated buffers to fixed-size ones, use the same

3 years agoDon't dump more than 100 char in g_warnings about missing HTML tags errors
wwp [Fri, 13 Jan 2017 07:46:13 +0000 (08:46 +0100)]
Don't dump more than 100 char in g_warnings about missing HTML tags errors
while parsing, unless --debug mode is set.

3 years agoRevert ga0fbaac (3.14.1-88) as it gets things worse in folder search,
wwp [Fri, 13 Jan 2017 07:45:16 +0000 (08:45 +0100)]
Revert ga0fbaac (3.14.1-88) as it gets things worse in folder search,
waiting for a proper fix.

3 years agoWarn when sending to more than N recipients. This features obeys
wwp [Thu, 12 Jan 2017 16:26:30 +0000 (17:26 +0100)]
Warn when sending to more than N recipients. This features obeys
to a couple of hidden prefs:
 warn_sending_many_recipients (TRUE/FALSE)
 warn_sending_many_recipients_num (1-1000)

3 years agoAdd context missing info to few system call errors (mostly:
wwp [Thu, 12 Jan 2017 15:31:10 +0000 (16:31 +0100)]
Add context missing info to few system call errors (mostly:
file operations).

3 years agoRemove dead code, fixing Coverity CID #1398568.
wwp [Thu, 12 Jan 2017 09:06:22 +0000 (10:06 +0100)]
Remove dead code, fixing Coverity CID #1398568.

3 years agoRework logics, remove dead code. Solves Coverity CID #1220297.
wwp [Wed, 11 Jan 2017 22:19:22 +0000 (23:19 +0100)]
Rework logics, remove dead code. Solves Coverity CID #1220297.

3 years agoKill dead code, fixing Coverity CID #1220511.
wwp [Wed, 11 Jan 2017 21:41:28 +0000 (22:41 +0100)]
Kill dead code, fixing Coverity CID #1220511.

3 years agoRemove accidentally added xpm file.
wwp [Wed, 11 Jan 2017 15:38:31 +0000 (16:38 +0100)]
Remove accidentally added xpm file.

3 years agoAdd deallocation call.
wwp [Wed, 11 Jan 2017 15:35:05 +0000 (16:35 +0100)]
Add deallocation call.

3 years agoQuit function if no connection instead of assigning variable that
wwp [Wed, 11 Jan 2017 15:09:08 +0000 (16:09 +0100)]
Quit function if no connection instead of assigning variable that
will be overwriten right after.
Fixes Coverity CID #1372370.

3 years agoRework icon antialiasing to look OK on dark and light themes.
wwp [Wed, 11 Jan 2017 10:03:56 +0000 (11:03 +0100)]
Rework icon antialiasing to look OK on dark and light themes.

3 years agoPOPPLER_ACTION_MOVIE was not introduced w/ Poppler 0.14.0, but in
wwp [Wed, 11 Jan 2017 00:56:22 +0000 (01:56 +0100)]
POPPLER_ACTION_MOVIE was not introduced w/ Poppler 0.14.0, but in
a version so old that even my grandma was using it (0.3.0 in fact).

3 years agoRework icon antialiasing to look OK on dark and light themes.
wwp [Wed, 11 Jan 2017 00:31:05 +0000 (01:31 +0100)]
Rework icon antialiasing to look OK on dark and light themes.

3 years agoDon't #undefine UNIX_PATH_MAX, move #define's up.
wwp [Tue, 10 Jan 2017 15:19:29 +0000 (16:19 +0100)]
Don't #undefine UNIX_PATH_MAX, move #define's up.

3 years agoBe more clear about what 108 means here towards the Unix socket
wwp [Tue, 10 Jan 2017 14:58:05 +0000 (15:58 +0100)]
Be more clear about what 108 means here towards the Unix socket
path value lenght: rely on UNIX_PATH_MAX and fallback to its common
value '108' in not defined in un.h (caution, on other systems, it could
be 104, etc. down to 92).

3 years agoFail if attempting to create a UNIX socket w/ path len >108c.
wwp [Tue, 10 Jan 2017 13:51:09 +0000 (14:51 +0100)]
Fail if attempting to create a UNIX socket w/ path len >108c.
Add few checks more for socket operations, and reduce few duplicate
initializations.
Saves us warnings and sikves Civerity #1372360.

3 years agoFix Coverity CIDs: 1220259 1364687 (and discarded 1220496) and added more checks...
wwp [Tue, 10 Jan 2017 09:10:05 +0000 (10:10 +0100)]
Fix Coverity CIDs: 1220259 1364687 (and discarded 1220496) and added more checks for returned
values.