Blame SOURCES/0032-fish-Use-UNIX_PATH_MAX-instead-of-hard-coded-value-f.patch

022f11
From 9392c0f95695bd83ec5805f35b32d9d1f5c09d7c Mon Sep 17 00:00:00 2001
022f11
From: "Richard W.M. Jones" <rjones@redhat.com>
022f11
Date: Wed, 9 Oct 2013 12:07:39 +0100
022f11
Subject: [PATCH] fish: Use UNIX_PATH_MAX instead of hard-coded value for max
022f11
 length of socket buf.
022f11
022f11
(cherry picked from commit 9f1bcbca55661632176dea4e1dadc4dea0ca7f21)
022f11
---
022f11
 fish/rc.c | 4 ++--
022f11
 1 file changed, 2 insertions(+), 2 deletions(-)
022f11
022f11
diff --git a/fish/rc.c b/fish/rc.c
022f11
index bbaaee7..aa4b849 100644
022f11
--- a/fish/rc.c
022f11
+++ b/fish/rc.c
022f11
@@ -180,7 +180,7 @@ close_stdout (void)
022f11
 void
022f11
 rc_listen (void)
022f11
 {
022f11
-  char sockpath[128];
022f11
+  char sockpath[UNIX_PATH_MAX];
022f11
   pid_t pid;
022f11
   struct sockaddr_un addr;
022f11
   int sock, s;
022f11
@@ -336,7 +336,7 @@ rc_remote (int pid, const char *cmd, size_t argc, char *argv[],
022f11
   guestfish_hello hello;
022f11
   guestfish_call call;
022f11
   guestfish_reply reply;
022f11
-  char sockpath[128];
022f11
+  char sockpath[UNIX_PATH_MAX];
022f11
   struct sockaddr_un addr;
022f11
   int sock;
022f11
   FILE *fp;
022f11
-- 
022f11
1.8.3.1
022f11