[Commits] [SCM] claws branch, master, updated. 3.14.1-114-gb15774d

wwp at claws-mail.org wwp at claws-mail.org
Tue Jan 10 16:19:56 CET 2017


The branch, master has been updated
       via  b15774d1938ab443b3d7ff0ebdca19e746871a97 (commit)
      from  72625ef0e7aa36459e76733fb34ced337e17f748 (commit)

Summary of changes:
 src/plugins/clamd/libclamd/clamd-plugin.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)


- Log -----------------------------------------------------------------
commit b15774d1938ab443b3d7ff0ebdca19e746871a97
Author: wwp <wwp at free.fr>
Date:   Tue Jan 10 16:19:29 2017 +0100

    Don't #undefine UNIX_PATH_MAX, move #define's up.

diff --git a/src/plugins/clamd/libclamd/clamd-plugin.c b/src/plugins/clamd/libclamd/clamd-plugin.c
index a305229..a45860a 100644
--- a/src/plugins/clamd/libclamd/clamd-plugin.c
+++ b/src/plugins/clamd/libclamd/clamd-plugin.c
@@ -56,6 +56,10 @@
 #include "alertpanel.h"
 #include "clamd-plugin.h"
 
+#ifndef UNIX_PATH_MAX
+#define UNIX_PATH_MAX 108
+#endif
+
 /* needs to be generic */
 static const gchar* config_dirs[] = { 
 	"/etc", 
@@ -301,14 +305,10 @@ static int create_socket() {
 			}
 			debug_print("socket file (create): %d\n", new_sock);
 			addr_u.sun_family = AF_UNIX;
-#ifndef UNIX_PATH_MAX
-#define UNIX_PATH_MAX 108
-#endif
 			if (strlen(Socket->socket.path) > UNIX_PATH_MAX) {
 				g_error("socket path longer than %d-char: %s",
 					UNIX_PATH_MAX, Socket->socket.path);
 				new_sock = -2;
-#undef UNIX_PATH_MAX
 			} else {
 				memcpy(addr_u.sun_path, Socket->socket.path, 
 						strlen(Socket->socket.path));

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list